Nothing Special   »   [go: up one dir, main page]

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

fix: statically register formatting and semantic tokens capabilities #814

Merged
merged 6 commits into from
Nov 15, 2024

Conversation

MrLego8-9
Copy link
Contributor

A fix for #799.
Instead of dynamically registering formatting and semantic tokens capabilities, register them statically.

The toggles in the config works the same, for formatting and semantic highlighting. This, however, improves compatibility with some editors that do not support dynamic registering in their LSP client implementation.

I have tested the changes in VSCode (CodeOSS), Helix and Kate (does not support dynamic registration).

@Myriad-Dreamin
Copy link
Owner

I have tested it on my vscode, it doesn't not work if we always register them statically, so I turn to register them only if dynamic registering is not supported. Since we have made a mistake, I might delay to merge it in v0.12.2+ to reduce risk to break things.

@MrLego8-9
Copy link
Contributor Author

I have tested it on my vscode, it doesn't not work if we always register them statically, so I turn to register them only if dynamic registering is not supported. Since we have made a mistake, I might delay to merge it in v0.12.2+ to reduce risk to break things.

Sure, no problem, if you think it's better to wait in order not to break things, go ahead.

@Myriad-Dreamin Myriad-Dreamin merged commit d618430 into Myriad-Dreamin:main Nov 15, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants