diff options
Diffstat (limited to 'server/src/method/workspace/didChangeWorkspaceFolders.lua')
-rw-r--r-- | server/src/method/workspace/didChangeWorkspaceFolders.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/method/workspace/didChangeWorkspaceFolders.lua b/server/src/method/workspace/didChangeWorkspaceFolders.lua index 6daca4c6..dc8bb4a1 100644 --- a/server/src/method/workspace/didChangeWorkspaceFolders.lua +++ b/server/src/method/workspace/didChangeWorkspaceFolders.lua @@ -1,13 +1,14 @@ local rpc = require 'rpc' +local lang = require 'language' return function () -- 暂不支持多个工作目录,因此当工作目录切换时,暴力结束服务,让前端重启服务 rpc:requestWait('window/showMessageRequest', { type = 3, - message = '[Lua] dose not support multi workspace for now, I may need to restart to support the new workspace ...', + message = lang.script('MWS_NOT_SUPPORT', '[Lua]'), actions = { { - title = 'Restart' + title = lang.script.MWS_RESTART, } } }, function () |