summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 14:01:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 14:01:01 +0800
commit37bee650922156a8f2928ea9d95207ab8e973975 (patch)
tree17393e56287782d13db2a1fb8436f6e077d4fb06 /server/src/method/textDocument
parentb4bbfce903852d6c837f9a9a06f00406a5fc86a5 (diff)
downloadlua-language-server-37bee650922156a8f2928ea9d95207ab8e973975.zip
可以快速禁用诊断了
Diffstat (limited to 'server/src/method/textDocument')
-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