diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:02:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:02:48 +0800 |
commit | e9ec6c5d7812fb29cda834b2726ad972bd3f0d49 (patch) | |
tree | e42578e8a4adbb5cb23b2137224a0e785cf097ff /server/src/service.lua | |
parent | 26c9ee2de021c6a08d1472f187ada881c46d9cc3 (diff) | |
download | lua-language-server-e9ec6c5d7812fb29cda834b2726ad972bd3f0d49.zip |
工作目录与文件变化
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 7 |
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 |