summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/method/initialized.lua4
-rw-r--r--script/workspace.lua2
2 files changed, 1 insertions, 5 deletions
diff --git a/script/method/initialized.lua b/script/method/initialized.lua
index 9e37fb37..ee1cbfc4 100644
--- a/script/method/initialized.lua
+++ b/script/method/initialized.lua
@@ -3,9 +3,7 @@ local rpc = require 'rpc'
--- @param lsp LSP
--- @return boolean
return function (lsp)
- local ws = lsp.workspaces[1]
-
- if ws then
+ for _, ws in ipairs(lsp.workspaces) do
-- 请求工作目录
local uri = ws.uri
-- 请求配置
diff --git a/script/workspace.lua b/script/workspace.lua
index 8a7e4139..75bc27a0 100644
--- a/script/workspace.lua
+++ b/script/workspace.lua
@@ -190,8 +190,6 @@ function mt:init(rootUri)
local logPath = ROOT / 'log' / (rootUri:gsub('[/:]+', '_') .. '.log')
log.info('Log path: ', logPath)
log.init(ROOT, logPath)
-
- self:scanFiles()
end
function mt:isComplete()