diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-05 21:06:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-05 21:06:16 +0800 |
commit | 2d7927e421b46b6f9103b58cff262205fd0fb7a5 (patch) | |
tree | 19b86c2d2095ea0cff0cab4a6ac134323b8acb06 /script/provider | |
parent | c2eaa0fa6d31208941d61fac9d93940e08d7a1d3 (diff) | |
download | lua-language-server-2d7927e421b46b6f9103b58cff262205fd0fb7a5.zip |
fix
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/diagnostic.lua | 2 |
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 |