Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language server protocal implementations #1

Open
clankill3r opened this issue Feb 3, 2022 · 2 comments
Open

Language server protocal implementations #1

clankill3r opened this issue Feb 3, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@clankill3r
Copy link

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.

@GeForceLegend
Copy link
Owner

GeForceLegend commented Feb 9, 2022

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 :)

@clankill3r
Copy link
Author

Not good :)
Maybe you can leave this issue open and some legend will pick it up someday :)

@GeForceLegend GeForceLegend changed the title support for #define etc. Language server protocal implementations Feb 3, 2023
@GeForceLegend GeForceLegend added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants