diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 13:28:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 13:28:52 +0800 |
commit | 3b76eaf9620585c8f4b3304de030767e61ceb42c (patch) | |
tree | 1460cf29fa5e4305ab05f601fc18214d54b2c7c3 /server/src/method/workspace/didChangeWorkspaceFolders.lua | |
parent | 1e914171e328c90237b98560cae49f6e386c01cf (diff) | |
download | lua-language-server-3b76eaf9620585c8f4b3304de030767e61ceb42c.zip |
翻译
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 () |