From 59a9b96ccc7c251ec46929667c3decc10ba42dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 24 Dec 2021 14:35:22 +0800 Subject: disable cache in completion --- script/core/completion/completion.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script/core/completion/completion.lua') 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 -- cgit v1.2.3