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.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 0026fb05..0eb5e625 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -288,6 +288,7 @@ function mt:readLibrary(uri, path, buf, compiled)
self._files:save(uri, buf, 0)
self._files:setLibrary(uri)
self:needCompile(uri, compiled)
+ self:clearDiagnostics(uri)
end
---@param uri uri