diff options
Diffstat (limited to 'server/src/method/textDocument/publishDiagnostics.lua')
-rw-r--r-- | server/src/method/textDocument/publishDiagnostics.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/method/textDocument/publishDiagnostics.lua b/server/src/method/textDocument/publishDiagnostics.lua index 9385c657..ed5ea99d 100644 --- a/server/src/method/textDocument/publishDiagnostics.lua +++ b/server/src/method/textDocument/publishDiagnostics.lua @@ -82,6 +82,9 @@ local function buildError(err, lines, uri) source = lang.script.DIAG_SYNTAX_CHECK, message = lang.script('PARSER_'..err.type, err.info) } + if err.version then + diagnostic.message = ('%s(%s)'):format(diagnostic.message, lang.script('DIAG_NEED_VERSION', err.version)) + end if err.level == 'error' then diagnostic.severity = DiagnosticSeverity.Error else |