diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-05-25 14:35:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-05-25 14:35:53 +0800 |
commit | 54269ae67678d3121ea84155c472bfc1337c1688 (patch) | |
tree | 562fe977fc8794629f96e788f63a0e4cde6285b1 /script/method | |
parent | b8a2374374cb242ddb196195e8578c6eff8b0558 (diff) | |
download | lua-language-server-54269ae67678d3121ea84155c472bfc1337c1688.zip |
#165 语言客户端会处理多目录的情况,不需要语言服务器瞎操心
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/init.lua | 1 | ||||
-rw-r--r-- | script/method/initialize.lua | 1 | ||||
-rw-r--r-- | script/method/workspace/didChangeWorkspaceFolders.lua | 20 |
3 files changed, 0 insertions, 22 deletions
diff --git a/script/method/init.lua b/script/method/init.lua index dd662a2d..41ff3ec3 100644 --- a/script/method/init.lua +++ b/script/method/init.lua @@ -27,7 +27,6 @@ init 'textDocument/semanticTokens' init 'textDocument/signatureHelp' init 'workspace/didChangeConfiguration' init 'workspace/didChangeWatchedFiles' -init 'workspace/didChangeWorkspaceFolders' init 'workspace/executeCommand' return method diff --git a/script/method/initialize.lua b/script/method/initialize.lua index 2d60e839..be553325 100644 --- a/script/method/initialize.lua +++ b/script/method/initialize.lua @@ -45,7 +45,6 @@ return function (lsp, params) workspace = { workspaceFolders = { supported = true, - changeNotifications = true, } }, documentOnTypeFormattingProvider = { diff --git a/script/method/workspace/didChangeWorkspaceFolders.lua b/script/method/workspace/didChangeWorkspaceFolders.lua deleted file mode 100644 index 01a28abd..00000000 --- a/script/method/workspace/didChangeWorkspaceFolders.lua +++ /dev/null @@ -1,20 +0,0 @@ -local rpc = require 'rpc' -local lang = require 'language' - -return function () - -- 暂不支持多个工作目录,因此当工作目录切换时,暴力结束服务,让前端重启服务 - rpc:requestWait('window/showMessageRequest', { - type = 3, - message = lang.script('MWS_NOT_SUPPORT', '[Lua]'), - actions = { - { - title = lang.script.MWS_RESTART, - } - } - }, function () - os.exit(true) - end) - ac.wait(5, function () - os.exit(true) - end) -end |