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

Complete SemanticTokensOptions definition #49

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gamebox
Copy link

@gamebox gamebox commented Jan 1, 2024

Closes #47

Replacing go.lsp.dev/protocol with this repository and the following server capability:

var semanticTokensOptions = lsp.SemanticTokensOptions{
                WorkDoneProgressOptions: lsp.WorkDoneProgressOptions{
                    WorkDoneProgress: false,
                },
                Legend: &lsp.SemanticTokensLegend{
                    TokenTypes: SemanticTokenLegend,
                    TokenModifiers: []lsp.SemanticTokenModifiers{},
                },
                Range: false,
                Full: &lsp.SemanticTokensFullOptions{ Delta: false },
           }

I actually successfully register the SemanticTokensProvider capability with my client.

2024/01/01 09:42:33 [SERVER]: ==========================================
2024/01/01 09:42:33 [SERVER]: Received message for method "textDocument/semanticTokens/full"
2024/01/01 09:42:33 [SERVER]: ------------------------------------------

I know that there is some tagging to be added, and probably a todo for the empty interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

SemanticTokensOptions definition
1 participant