vscode-glsl
vscode-glsl copied to clipboard
Language server protocal implementations
First great extension, I like how it is simple and just does one thing and does it good.
Anyway, there is one more thing I would like, that is when there are things like #define and #ifdef etc,
#ifdef WHATEVER code code code #endif
Would be greyed out of the certain value is not defined. The thing that makes this more complex however is some things might be defined extern like with:
#ifdef GL_ES precision highp float; precision highp int; #endif
So it might be good to have in the settings for the extension that an array of certain things can be defined. This should also be a workspace option, cause in one project I might like a certain thing always defined while in another project I want not.
I hope I'm clear, and I hope someone is willing to make this.
This is supported to be provided by a language server, but because of my poor knowledge in language server protocol and language server API of vscode, there is no plan to add such support. But if you are good at language server extensions, you can fork this extension, type your codes, and publish it as your extension or send pull request to me :)
Not good :) Maybe you can leave this issue open and some legend will pick it up someday :)