summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
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