summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
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