summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-20 11:02:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-20 11:02:48 +0800
commite9ec6c5d7812fb29cda834b2726ad972bd3f0d49 (patch)
treee42578e8a4adbb5cb23b2137224a0e785cf097ff /server/src/service.lua
parent26c9ee2de021c6a08d1472f187ada881c46d9cc3 (diff)
downloadlua-language-server-e9ec6c5d7812fb29cda834b2726ad972bd3f0d49.zip
工作目录与文件变化
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index f7c81317..d6a0daf0 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -113,6 +113,13 @@ function mt:_doDiagnostic()
end
end
+function mt:clearDiagnostics(uri)
+ rpc:notify('textDocument/publishDiagnostics', {
+ uri = uri,
+ diagnostics = {},
+ })
+end
+
function mt:_buildTextCache()
if not next(self._needCompile) then
return