Skip to content

Commit 59a9b96

Browse files
committed
disable cache in completion
1 parent 315cba6 commit 59a9b96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

script/core/completion/completion.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,7 @@ local function isValidCache(word, result)
19661966
end
19671967

19681968
local function getCache(uri, position)
1969+
do return nil end
19691970
local cache = workspace.getCache 'completion'
19701971
if not cache.results then
19711972
return nil
@@ -2063,9 +2064,9 @@ local function completion(uri, position, triggerCharacter)
20632064
return nil
20642065
end
20652066

2066-
tracy.ZoneBeginN 'completion #3'
2067-
makeCache(uri, position, results)
2068-
tracy.ZoneEnd()
2067+
--tracy.ZoneBeginN 'completion #3'
2068+
--makeCache(uri, position, results)
2069+
--tracy.ZoneEnd()
20692070
return results
20702071
end
20712072

0 commit comments

Comments
 (0)