From 3b76eaf9620585c8f4b3304de030767e61ceb42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 26 Dec 2018 13:28:52 +0800 Subject: =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/workspace/didChangeWorkspaceFolders.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src/method/workspace/didChangeWorkspaceFolders.lua') 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 () -- cgit v1.2.3