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
49.42k stars 3.01k forks source link

Error highlighting in glsl webgl #11356

Open sedghi opened 6 months ago

sedghi commented 6 months 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 6 months ago

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

sedghi commented 6 months ago

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

jansol commented 6 months 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 6 months ago

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