Skip to content
New issue

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

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

Already on GitHub? # to your account

use session-unique region keys for semantic tokens #2517

Merged
merged 3 commits into from
Sep 22, 2024
Merged

Conversation

rchl
Copy link
Member

@rchl rchl commented Sep 21, 2024

I've noticed an issue with semantic tokens being removed when restarting a session that doesn't provide semantic tokens, when there is also another session active that provides semantic tokens.

In this case there are both LSP-typescript and LSP-volar sessions active in the view and LSP-typescript is the one that provides semantic tokens. On restarting LSP-volar, semantic tokens disappear and don't show up until changing the document or restarting LSP-typescript:

Screen.Recording.2024-09-21.at.23.37.56.mov

I've made semantic token regions session-specific so that initializing a session doesn't overwrite existing semantic token regions.

@rchl rchl merged commit 9b6ecb6 into main Sep 22, 2024
8 checks passed
@rchl rchl deleted the fix/semantic-regions branch September 22, 2024 15:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants