summaryrefslogtreecommitdiff
path: root/script/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-25 14:40:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-25 14:40:23 +0800
commitee84b9ca9b4995309e8af9f1a0b3dd4fb0297592 (patch)
treeafbc8d40baf4b56fb34663d7327f57b67309906a /script/service.lua
parent54269ae67678d3121ea84155c472bfc1337c1688 (diff)
downloadlua-language-server-ee84b9ca9b4995309e8af9f1a0b3dd4fb0297592.zip
修正删除文件后没有立即清除文件内的诊断的bug
Diffstat (limited to 'script/service.lua')
-rw-r--r--script/service.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/service.lua b/script/service.lua
index 1e3f7108..21e8939c 100644
--- a/script/service.lua
+++ b/script/service.lua
@@ -121,6 +121,7 @@ function mt:clearDiagnostics(uri)
diagnostics = {},
})
self._needDiagnostics[uri] = nil
+ log.debug('clearDiagnostics', uri)
end
---@param uri uri
@@ -307,6 +308,7 @@ end
function mt:removeText(uri)
self._files:remove(uri)
self:compileVM(uri)
+ self:clearDiagnostics(uri)
end
function mt:getCachedFileCount()