summaryrefslogtreecommitdiff
path: root/script/method/initialize.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-29 17:46:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-29 17:46:11 +0800
commited687309b9630ec655ca339bd6e3c1662d7381bc (patch)
tree8b093bbb25491d3ee4a9255d67583145518a3e5c /script/method/initialize.lua
parent7a89ca71b0d0d6bb8901b59c8f35d14935c3e160 (diff)
downloadlua-language-server-ed687309b9630ec655ca339bd6e3c1662d7381bc.zip
修正工作区失效的问题
Diffstat (limited to 'script/method/initialize.lua')
-rw-r--r--script/method/initialize.lua6
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