zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
38.89k stars 2k forks source link

Error highlighting in glsl webgl #11356

Open sedghi opened 1 month ago

sedghi commented 1 month ago

Check for existing issues

Describe the feature

I don't see the error highlighting in glsl code when i intentionally introduce an error

If applicable, add mockups / screenshots to help present your vision of the feature

Here i have removed the ; and it doesn't highlight it

CleanShot 2024-05-03 at 10 33 34@2x

jansol commented 1 month ago

I can't check right now but I think this is because syntax errors are not reported by glsl_analyzer?

sedghi commented 1 month ago

There are VS Code extensions for highlighting WebGL errors, so I suppose it is technically possible.

jansol commented 1 month ago

It is possible and Zed supports it too, if the language server that is being used reports error spans.

It just seems this particular one does not do that.

sedghi commented 1 month ago

I see, maybe the vscode extensions use another language server, I haven't looked deep