summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 17:03:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 17:03:01 +0800
commit7344986f6bcc7891e60d23396eaf3ee130c435e3 (patch)
tree7c4ba0bcf8b135a26100c01a618b185d79833eb7 /script/provider/provider.lua
parent90c1af3201eda540e1177ae11d105eb110adae92 (diff)
downloadlua-language-server-7344986f6bcc7891e60d23396eaf3ee130c435e3.zip
fix
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 83e2b7da..dc807a7a 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -663,7 +663,6 @@ proto.on('workspace/symbol', function (params)
return symbols
end)
-
proto.on('textDocument/semanticTokens/full', function (params)
local uri = params.textDocument.uri
workspace.awaitReady()
@@ -857,6 +856,9 @@ config.watch(function (key, value)
end)
files.watch(function (ev, uri)
+ if not workspace.isReady() then
+ return
+ end
if ev == 'update'
or ev == 'remove' then
for id, p in pairs(proto.holdon) do