diff options
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r-- | script/provider/diagnostic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index e90d8afb..03b5e179 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -58,7 +58,7 @@ local function buildSyntaxError(uri, err) return { code = err.type:lower():gsub('_', '-'), range = converter.packRange(uri, err.start, err.finish), - severity = define.DiagnosticSeverity.Error, + severity = define.DiagnosticSeverity[err.level], source = lang.script.DIAG_SYNTAX_CHECK, message = message, relatedInformation = relatedInformation, |