summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-02 16:10:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-02 16:10:02 +0800
commitc677a1a8a214a55c8527c1f968c81ef090d7c90b (patch)
tree9100ece0bdb1a0c530d20653a9a2e8f0a3fc61f9
parentbced46d1c70c9cb044e2291c67bff392aa908f30 (diff)
downloadlua-language-server-c677a1a8a214a55c8527c1f968c81ef090d7c90b.zip
跟进语义着色的协议更新
-rw-r--r--script/capability/semantic.lua4
-rw-r--r--script/method/init.lua2
-rw-r--r--script/method/textDocument/semanticTokens/full.lua (renamed from script/method/textDocument/semanticTokens.lua)0
3 files changed, 3 insertions, 3 deletions
diff --git a/script/capability/semantic.lua b/script/capability/semantic.lua
index 72c889e1..9fb41e56 100644
--- a/script/capability/semantic.lua
+++ b/script/capability/semantic.lua
@@ -28,7 +28,7 @@ local function enable(lsp)
registrations = {
{
id = 'semantic',
- method = 'textDocument/semanticTokens',
+ method = 'textDocument/semanticTokens/full',
registerOptions = {
legend = {
tokenTypes = toArray(TokenTypes),
@@ -52,7 +52,7 @@ local function disable()
unregisterations = {
{
id = 'semantic',
- method = 'textDocument/semanticTokens',
+ method = 'textDocument/semanticTokens/full',
},
}
})
diff --git a/script/method/init.lua b/script/method/init.lua
index 742590f6..2bdbacc3 100644
--- a/script/method/init.lua
+++ b/script/method/init.lua
@@ -24,7 +24,7 @@ init 'textDocument/onTypeFormatting'
init 'textDocument/publishDiagnostics'
init 'textDocument/rename'
init 'textDocument/references'
-init 'textDocument/semanticTokens'
+init 'textDocument/semanticTokens/full'
init 'textDocument/signatureHelp'
init 'workspace/didChangeConfiguration'
init 'workspace/didChangeWatchedFiles'
diff --git a/script/method/textDocument/semanticTokens.lua b/script/method/textDocument/semanticTokens/full.lua
index bc6d2bcb..bc6d2bcb 100644
--- a/script/method/textDocument/semanticTokens.lua
+++ b/script/method/textDocument/semanticTokens/full.lua