summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-12 11:17:21 +0800
committersumneko <sumneko@hotmail.com>2019-04-12 11:17:21 +0800
commitf9dde0cfbfc3a76f5fb751e01f7c372d13a302b2 (patch)
treedc7a4c2e8906b921cd00b518f7c6be0d3ce9a97b /server
parentfc9a50fe317d936152b0c1dd26ee436fde281b39 (diff)
downloadlua-language-server-f9dde0cfbfc3a76f5fb751e01f7c372d13a302b2.zip
多余的代码
Diffstat (limited to 'server')
-rw-r--r--server/src/method/initialized.lua10
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 = {