go-language-server / protocol

Package protocol implements Language Server Protocol specification in Go
https://pkg.go.dev/go.lsp.dev/protocol
BSD 3-Clause "New" or "Revised" License
97 stars 15 forks source link

Complete SemanticTokensOptions definition #49

Open gamebox opened 8 months ago

gamebox commented 8 months ago

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.