diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-21 19:47:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-21 19:47:58 +0800 |
commit | 364371362ffce9a90d09bd6f60c3a6a20d006fc7 (patch) | |
tree | 08ddfa34301ed87c43a46df6947fb22d2e8839f2 /script/provider/diagnostic.lua | |
parent | d1eda840b2a15d00d5916f267d90b3f0e13d00e2 (diff) | |
download | lua-language-server-364371362ffce9a90d09bd6f60c3a6a20d006fc7.zip |
syntax errors in `LuaDoc` are shown as `Warning`
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, |