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.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index fd748a96..9a53804d 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -93,13 +93,10 @@ function mt:_doDiagnostic()
local name = 'textDocument/publishDiagnostics'
local res = self:_callMethod(name, data)
if res then
- rpc:notify {
- method = name,
- params = {
- uri = uri,
- diagnostics = res,
- },
- }
+ rpc:notify(name, {
+ uri = uri,
+ diagnostics = res,
+ })
end
end
local passed = os.clock() - clock