diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-06-22 20:22:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-06-22 20:22:31 +0800 |
commit | 3c4203ac592c00fa8f3072faf77e1966149a7860 (patch) | |
tree | 2fde9c1c7bcfa3f2905bbb7f141a94c35334d8b1 /script/method | |
parent | 4ed6db9faaa9614489b0b724a0640792cc3fc454 (diff) | |
download | lua-language-server-3c4203ac592c00fa8f3072faf77e1966149a7860.zip |
fix #174
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/initialized.lua | 4 |
1 files changed, 1 insertions, 3 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 -- 请求配置 |