diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-29 17:46:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-29 17:46:11 +0800 |
commit | ed687309b9630ec655ca339bd6e3c1662d7381bc (patch) | |
tree | 8b093bbb25491d3ee4a9255d67583145518a3e5c /script/method/initialize.lua | |
parent | 7a89ca71b0d0d6bb8901b59c8f35d14935c3e160 (diff) | |
download | lua-language-server-ed687309b9630ec655ca339bd6e3c1662d7381bc.zip |
修正工作区失效的问题
Diffstat (limited to 'script/method/initialize.lua')
-rw-r--r-- | script/method/initialize.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/script/method/initialize.lua b/script/method/initialize.lua index 96f46a6b..98c543b0 100644 --- a/script/method/initialize.lua +++ b/script/method/initialize.lua @@ -23,11 +23,7 @@ return function (lsp, params) log.info(table.dump(params)) log.debug('ProcessID', sp.get_id()) - if params.workspaceFolders and params.workspaceFolders ~= json.null then - for _, folder in ipairs(params.workspaceFolders) do - --lsp:addWorkspace(folder.name, folder.uri) - end - elseif params.rootUri and params.rootUri ~= json.null then + if params.rootUri and params.rootUri ~= json.null then lsp:addWorkspace('root', params.rootUri) end |