summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 20:06:38 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 20:06:38 +0800
commit46e2b37d95bd14394b0a10f7c198e559d209aaa3 (patch)
tree7028e076e78fc8dc69dce14a8c11db53d1969bea /server/src
parentcfcf85156ea3f74e0697421b74cd3f9fdb0f91cf (diff)
downloadlua-language-server-46e2b37d95bd14394b0a10f7c198e559d209aaa3.zip
翻译
Diffstat (limited to 'server/src')
-rw-r--r--server/src/method/textDocument/codeAction.lua2
-rw-r--r--server/src/parser/ast.lua3
2 files changed, 4 insertions, 1 deletions
diff --git a/server/src/method/textDocument/codeAction.lua b/server/src/method/textDocument/codeAction.lua
index 53987d2d..70e875a6 100644
--- a/server/src/method/textDocument/codeAction.lua
+++ b/server/src/method/textDocument/codeAction.lua
@@ -138,7 +138,7 @@ local function solveSyntax(lsp, uri, data, callback)
end
if err.version then
callback {
- title = lang.script.CHANGE_RUNTIME_VERSION,
+ title = lang.script('ACTION_RUNTIME_VERSION', err.version),
kind = 'quickfix',
command = {
title = lang.script.COMMAND_RUNTIME_VERSION,
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index 74f69d3c..1d4d6a23 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -1214,6 +1214,9 @@ local Defs = {
start = start,
finish = start + #'*toclose' - 1,
version = 'Lua 5.4',
+ info = {
+ version = State.Version,
+ }
}
end
}