summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-24 14:35:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-24 14:36:26 +0800
commit59a9b96ccc7c251ec46929667c3decc10ba42dd2 (patch)
tree657c67e094a85c67bc8f858479f621feef1c423a /script/core
parent315cba61692efe7f06a5ad88cd1346d07b287a91 (diff)
downloadlua-language-server-59a9b96ccc7c251ec46929667c3decc10ba42dd2.zip
disable cache in completion
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion/completion.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index 472b1118..d98a7c3d 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -1966,6 +1966,7 @@ local function isValidCache(word, result)
end
local function getCache(uri, position)
+ do return nil end
local cache = workspace.getCache 'completion'
if not cache.results then
return nil
@@ -2063,9 +2064,9 @@ local function completion(uri, position, triggerCharacter)
return nil
end
- tracy.ZoneBeginN 'completion #3'
- makeCache(uri, position, results)
- tracy.ZoneEnd()
+ --tracy.ZoneBeginN 'completion #3'
+ --makeCache(uri, position, results)
+ --tracy.ZoneEnd()
return results
end