diff options
-rw-r--r-- | script-beta/provider/semantic-tokens.lua | 6 | ||||
-rw-r--r-- | script/capability/semantic.lua | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/script-beta/provider/semantic-tokens.lua b/script-beta/provider/semantic-tokens.lua index 96db324e..17985bcd 100644 --- a/script-beta/provider/semantic-tokens.lua +++ b/script-beta/provider/semantic-tokens.lua @@ -28,14 +28,14 @@ local function enable() registrations = { { id = 'semantic-tokens', - method = 'textDocument/semanticTokens/full', + method = 'textDocument/semanticTokens', registerOptions = { legend = { tokenTypes = toArray(define.TokenTypes), tokenModifiers = toArray(define.TokenModifiers), }, range = true, - full = false, + full = true, }, }, } @@ -52,7 +52,7 @@ local function disable() unregisterations = { { id = 'semantic-tokens', - method = 'textDocument/semanticTokens/full', + method = 'textDocument/semanticTokens', }, } }) diff --git a/script/capability/semantic.lua b/script/capability/semantic.lua index 9fb41e56..2be22be3 100644 --- a/script/capability/semantic.lua +++ b/script/capability/semantic.lua @@ -28,14 +28,14 @@ local function enable(lsp) registrations = { { id = 'semantic', - method = 'textDocument/semanticTokens/full', + method = 'textDocument/semanticTokens', registerOptions = { legend = { tokenTypes = toArray(TokenTypes), tokenModifiers = toArray(TokenModifiers), }, - rangeProvider = false, - documentProvider = false, + range = false, + full = true, }, }, } @@ -52,7 +52,7 @@ local function disable() unregisterations = { { id = 'semantic', - method = 'textDocument/semanticTokens/full', + method = 'textDocument/semanticTokens', }, } }) |