summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-04-05 19:30:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-04-05 19:30:57 +0800
commit5d2aee69ef5edd7e3890997cf652cc60737a330f (patch)
tree9f3e5aaa23d7ed1db71451526befccc2248d0f82 /server/src/method
parent5ed7ded384aca2cff4d09401cc852f7943a1ea94 (diff)
downloadlua-language-server-5d2aee69ef5edd7e3890997cf652cc60737a330f.zip
更新Lua解析
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/textDocument/publishDiagnostics.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/method/textDocument/publishDiagnostics.lua b/server/src/method/textDocument/publishDiagnostics.lua
index f2e1a593..fbe65bb3 100644
--- a/server/src/method/textDocument/publishDiagnostics.lua
+++ b/server/src/method/textDocument/publishDiagnostics.lua
@@ -1,6 +1,5 @@
local core = require 'core'
local lang = require 'language'
-local config = require 'config'
local DiagnosticSeverity = {
Error = 1,
@@ -85,9 +84,9 @@ local function buildError(err, lines, uri)
}
if err.version then
if type(err.version) == 'table' then
- diagnostic.message = ('%s(%s)'):format(diagnostic.message, lang.script('DIAG_NEED_VERSION', table.concat(err.version, '/'), config.config.runtime.version))
+ diagnostic.message = ('%s(%s)'):format(diagnostic.message, lang.script('DIAG_NEED_VERSION', table.concat(err.version, '/')))
else
- diagnostic.message = ('%s(%s)'):format(diagnostic.message, lang.script('DIAG_NEED_VERSION', err.version, config.config.runtime.version))
+ diagnostic.message = ('%s(%s)'):format(diagnostic.message, lang.script('DIAG_NEED_VERSION', err.version))
end
end
if err.level == 'error' then