diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/method/initialized.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/src/method/initialized.lua b/server/src/method/initialized.lua index cf86427d..521c1cc6 100644 --- a/server/src/method/initialized.lua +++ b/server/src/method/initialized.lua @@ -6,16 +6,6 @@ local function initAfterConfig(lsp, firstScope) lsp.workspace = workspace(lsp, firstScope.name) lsp.workspace:init(firstScope.uri) end - -- 请求工作目录 - rpc:request('workspace/workspaceFolders', nil, function (folders) - if folders then - local folder = folders[1] - if folder then - lsp.workspace = workspace(lsp, folder.name) - lsp.workspace:init(folder.uri) - end - end - end) -- 必须动态注册的事件: rpc:request('client/registerCapability', { registrations = { |