summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/codeAction.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/codeAction.lua')
-rw-r--r--server/src/method/textDocument/codeAction.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/server/src/method/textDocument/codeAction.lua b/server/src/method/textDocument/codeAction.lua
index 4c4e85a3..04a07e3b 100644
--- a/server/src/method/textDocument/codeAction.lua
+++ b/server/src/method/textDocument/codeAction.lua
@@ -1,5 +1,4 @@
return function (lsp, params)
- log.debug(table.dump(params))
local uri = params.textDocument.uri
local result = {}
@@ -13,17 +12,17 @@ return function (lsp, params)
title = '测试',
command = 'config',
arguments = {
- key = {'diagnostics', 'disable'},
- action = 'add',
- value = data.code,
+ {
+ key = {'diagnostics', 'disable'},
+ action = 'add',
+ value = data.code,
+ }
}
}
}
end
end
- log.debug(table.dump(result))
-
if #result == 0 then
return nil
end