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

Semantic token setting transition #2598

Closed
hyangah opened this issue Jan 4, 2023 · 4 comments
Closed

Semantic token setting transition #2598

hyangah opened this issue Jan 4, 2023 · 4 comments
Assignees
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Jan 4, 2023

While addressing golang/go#54531 we realized semantic token feature should be controlled by editor.semanticHighlighting.enabled setting (https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#enablement-of-semantic-highlighting), not by the language server specific setting.

Before the next gopls release, we need

@seebs
Copy link

seebs commented Jan 6, 2023

I noticed that one of the previous issues (2286) had a comment:

gopls: allow semantic highlighting to work with large files #1387 @pjweinb can we close this issue now, since gopls is limiting the size of file?

1387 was a request to support doing partial ranges, rather than the full file, specifically to work around gopls limiting the size of the file, and to allow updates to parts of the file at a time.

but also note that gopls is software, and can be modified or configured, and may not always be limiting the size of the file.

as a user who sometimes has large files, i would definitely prefer that the extension use the partial-file range behavior to get semantic tokens rather than just giving up.

@pjweinb
Copy link

pjweinb commented Jan 6, 2023 via email

@pjweinb
Copy link

pjweinb commented Jan 26, 2023

The vscode setting mentioned above (editor.semanticHighlighting.enabled ) does not seem to work, so closing this until there is a way for the client to control semantic tokens without setting a gopls flag.

@pjweinb pjweinb closed this as completed Jan 26, 2023
@findleyr
Copy link
Contributor

If this setting does not work, should we reopen #2286?

@golang golang locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants