diff options
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 |