summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
authorArcanox <arcanox@arcanox.me>2021-09-26 00:01:26 -0500
committerArcanox <arcanox@arcanox.me>2021-09-26 00:01:26 -0500
commit107f9a05ca4969a6f376180a03e8287240ea6d36 (patch)
treec1e89db8934256fd4676117f09afd641592b0685 /script/provider/provider.lua
parentcb60b363f68a966e033a3dcaad95a142e62749b4 (diff)
downloadlua-language-server-107f9a05ca4969a6f376180a03e8287240ea6d36.zip
Semantic highlighting methods cannot return a null response if they're canceled or the editor will clear all the tokens until the next time the request returns a full result
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 9803801b..05202c01 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -692,7 +692,7 @@ proto.on('textDocument/semanticTokens/full', function (params)
return {
data = results
}
-end)
+end, true)
proto.on('textDocument/semanticTokens/range', function (params)
local uri = params.textDocument.uri
@@ -707,7 +707,7 @@ proto.on('textDocument/semanticTokens/range', function (params)
return {
data = results
}
-end)
+end, true)
proto.on('textDocument/foldingRange', function (params)
local core = require 'core.folding'