summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-03 17:53:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-03 17:53:17 +0800
commit30910942569804491d297053dbf51ccc761a2564 (patch)
treedc34963f20b2cc36cef4967e423eb9ae9fcc684a /script
parent23b01e07a92ed92a40b3ee8dbdcf03174dc82db5 (diff)
downloadlua-language-server-30910942569804491d297053dbf51ccc761a2564.zip
fix hint
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 811dc4e0..0920306e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -834,14 +834,14 @@ do
if not config.get 'Lua.hint.enable' then
return
end
- await.close 'updateHint'
- await.setID 'updateHint'
- await.delay()
- workspace.awaitReady()
local visibles = files.getVisibles(uri)
if not visibles then
return
end
+ await.close 'updateHint'
+ await.setID 'updateHint'
+ await.delay()
+ workspace.awaitReady()
local edits = {}
local hint = require 'core.hint'
local _ <close> = progress.create(lang.script.WINDOW_PROCESSING_HINT, 0.5)