summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-09 20:00:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-09 20:00:25 +0800
commitb151664ddac55237a849db18779d7636e1cd04d9 (patch)
tree620a66732ecd733ffb7b995cd6307264c9d46c52 /script/core
parent92203d2c8141682470d9a366bebdeb9d1b3e2552 (diff)
downloadlua-language-server-b151664ddac55237a849db18779d7636e1cd04d9.zip
cleanup
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 90ccf5e2..b9a6aa9a 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -2080,13 +2080,13 @@ end
---@async
local function completion(uri, position, triggerCharacter)
- --tracy.ZoneBeginN 'completion cache'
- --local results = getCache(uri, position)
- --tracy.ZoneEnd()
- --if results then
- -- return results
- --end
- --await.delay()
+ tracy.ZoneBeginN 'completion cache'
+ local results = getCache(uri, position)
+ tracy.ZoneEnd()
+ if results then
+ return results
+ end
+ await.delay()
tracy.ZoneBeginN 'completion #1'
local state = files.getState(uri)
local text = files.getText(uri)
@@ -2120,7 +2120,7 @@ local function completion(uri, position, triggerCharacter)
end
tracy.ZoneBeginN 'completion #3'
- --makeCache(uri, position, results)
+ makeCache(uri, position, results)
tracy.ZoneEnd()
return results
end