diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 16:19:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 16:19:03 +0800 |
commit | 1ce91bc1715601abc63404cd6e9e7f04b36d3aa7 (patch) | |
tree | 364104f32de48def773f96ce05bf0a64134202bd /script/core | |
parent | 8c35c44a9b25f104430936cb68f4daece468ec8a (diff) | |
download | lua-language-server-1ce91bc1715601abc63404cd6e9e7f04b36d3aa7.zip |
由客户端实现多工作目录支持
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/code_action.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/core/code_action.lua b/script/core/code_action.lua index c9203f29..3e8f7582 100644 --- a/script/core/code_action.lua +++ b/script/core/code_action.lua @@ -1,5 +1,7 @@ local lang = require 'language' local library = require 'core.library' +local client = require 'client' +local sp = require 'bee.subprocess' local function disableDiagnostic(lsp, uri, data, callback) callback { @@ -124,7 +126,7 @@ local function solveTrailingSpace(lsp, uri, data, callback) kind = 'quickfix', command = { title = lang.script.COMMAND_REMOVE_SPACE, - command = 'lua.removeSpace', + command = 'lua.removeSpace:' .. sp:get_id(), arguments = { { uri = uri, @@ -160,7 +162,7 @@ local function solveAmbiguity1(lsp, uri, data, callback) kind = 'quickfix', command = { title = lang.script.COMMAND_ADD_BRACKETS, - command = 'lua.solve', + command = 'lua.solve:' .. sp:get_id(), arguments = { { name = 'ambiguity-1', |