diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-12 11:17:21 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-12 11:17:21 +0800 |
commit | f9dde0cfbfc3a76f5fb751e01f7c372d13a302b2 (patch) | |
tree | dc7a4c2e8906b921cd00b518f7c6be0d3ce9a97b /server/src/method/initialized.lua | |
parent | fc9a50fe317d936152b0c1dd26ee436fde281b39 (diff) | |
download | lua-language-server-f9dde0cfbfc3a76f5fb751e01f7c372d13a302b2.zip |
多余的代码
Diffstat (limited to 'server/src/method/initialized.lua')
-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 = { |