summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-05 21:06:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-05 21:06:16 +0800
commit2d7927e421b46b6f9103b58cff262205fd0fb7a5 (patch)
tree19b86c2d2095ea0cff0cab4a6ac134323b8acb06 /script/provider
parentc2eaa0fa6d31208941d61fac9d93940e08d7a1d3 (diff)
downloadlua-language-server-2d7927e421b46b6f9103b58cff262205fd0fb7a5.zip
fix
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index c01c56b0..a649ce8b 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -208,7 +208,7 @@ function m.doDiagnostic(uri, isScopeDiag)
local syntax = m.syntaxErrors(uri, state)
local diags = {}
- local lastDiag = m.cache[uri]
+ local lastDiag = util.deepCopy(m.cache[uri])
local function pushResult()
tracy.ZoneBeginN 'mergeSyntaxAndDiags'
local _ <close> = tracy.ZoneEnd