summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-21 19:47:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-21 19:47:58 +0800
commit364371362ffce9a90d09bd6f60c3a6a20d006fc7 (patch)
tree08ddfa34301ed87c43a46df6947fb22d2e8839f2 /script/provider
parentd1eda840b2a15d00d5916f267d90b3f0e13d00e2 (diff)
downloadlua-language-server-364371362ffce9a90d09bd6f60c3a6a20d006fc7.zip
syntax errors in `LuaDoc` are shown as `Warning`
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua2
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,