summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-15 19:09:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-15 19:09:47 +0800
commita87e0c7cbd8ff44deb009b12efa8c28473db0470 (patch)
tree7637a3db4a65444b9717c12be9e9c7fa96c7e92e /script-beta/provider
parent674892abc53ad6752326135c8aaf60073f80b632 (diff)
downloadlua-language-server-a87e0c7cbd8ff44deb009b12efa8c28473db0470.zip
添加delay,保证自动完成的优先度最高
Diffstat (limited to 'script-beta/provider')
-rw-r--r--script-beta/provider/diagnostic.lua2
-rw-r--r--script-beta/provider/provider.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/provider/diagnostic.lua b/script-beta/provider/diagnostic.lua
index 28f0cf8e..86d80034 100644
--- a/script-beta/provider/diagnostic.lua
+++ b/script-beta/provider/diagnostic.lua
@@ -212,7 +212,7 @@ end
function m.start()
m._start = true
- --m.diagnosticsAll()
+ m.diagnosticsAll()
end
files.watch(function (env, uri)
diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua
index ba635255..bf96209b 100644
--- a/script-beta/provider/provider.lua
+++ b/script-beta/provider/provider.lua
@@ -319,7 +319,7 @@ proto.on('textDocument/completion', function (params)
if not result then
return nil
end
- local easy = false
+ local easy = true
local items = {}
for i, res in ipairs(result) do
local item = {