summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-03 17:46:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-03 17:46:18 +0800
commitb06ba33652c0c1fd9b496c81df1f252c2c614400 (patch)
tree53048411b8204006ec4d5c4bdd7ce9e2263167d3
parentfb63bf2123b3838690b40c2d46279ac96c78dbbd (diff)
downloadlua-language-server-b06ba33652c0c1fd9b496c81df1f252c2c614400.zip
#435 #437 why not cache generic results?
-rw-r--r--script/parser/guide.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index f5ca1158..cf525104 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1787,7 +1787,6 @@ function m.checkSameSimpleByDocType(status, doc, args)
local pieceResult = stepRefOfGeneric(status, piece, args, 'def')
for _, res in ipairs(pieceResult) do
results[#results+1] = res
- status.hasGenericResult = true
end
else
local pieceResult = stepRefOfDocType(status, piece, 'def')
@@ -3151,10 +3150,6 @@ function m.getRefCache(status, obj, mode)
end
status.share.cacheLock[mode][obj] = {}
return nil, function ()
- if status.hasGenericResult then
- status.share.cacheLock[mode][obj] = nil
- return
- end
sourceCache = {}
local results = status.results
for i = 1, #results do