From 37bee650922156a8f2928ea9d95207ab8e973975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 28 Mar 2019 14:01:01 +0800 Subject: =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=BF=AB=E9=80=9F=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/codeAction.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'server/src/method/textDocument') 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 -- cgit v1.2.3