summaryrefslogtreecommitdiff
path: root/server/src/method/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 15:45:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 15:45:31 +0800
commite7bd33ff213afb6f4d6d666d215107651ab27a1a (patch)
tree70f9d4135ff0aa8e782fa90c1b0c082afd6c70d8 /server/src/method/workspace
parent266b1d1bae0f45fac30a493e219cb4a5ea779068 (diff)
downloadlua-language-server-e7bd33ff213afb6f4d6d666d215107651ab27a1a.zip
翻译
Diffstat (limited to 'server/src/method/workspace')
-rw-r--r--server/src/method/workspace/executeCommand.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/method/workspace/executeCommand.lua b/server/src/method/workspace/executeCommand.lua
index 173eaa22..0d579848 100644
--- a/server/src/method/workspace/executeCommand.lua
+++ b/server/src/method/workspace/executeCommand.lua
@@ -2,6 +2,7 @@ local fs = require 'bee.filesystem'
local json = require 'json'
local config = require 'config'
local rpc = require 'rpc'
+local lang = require 'language'
local command = {}
@@ -109,7 +110,7 @@ function command.removeSpace(lsp, data)
end
rpc:request('workspace/applyEdit', {
- label = '清除所有后置空格',
+ label = lang.script.COMMAND_REMOVE_SPACE,
edit = {
changes = {
[uri] = textEdit,
@@ -148,7 +149,7 @@ function command.solve(lsp, data)
end
rpc:request('workspace/applyEdit', {
- label = '添加括号',
+ label = lang.script.COMMAND_ADD_BRACKETS,
edit = {
changes = {
[uri] = {