summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-15 20:10:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-15 20:10:00 +0800
commit12d6a9eb75f31b64cbc89eb3265805bc8dad01f0 (patch)
tree031a449c1222ef1705d34fbb22c11ef1ea388ee5 /script/core/diagnostics/init.lua
parentbf8b18fe8d2f3cc470021e32b9d5f11ec765a643 (diff)
downloadlua-language-server-12d6a9eb75f31b64cbc89eb3265805bc8dad01f0.zip
cleanup
Diffstat (limited to 'script/core/diagnostics/init.lua')
-rw-r--r--script/core/diagnostics/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 562b526d..4368f51a 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -82,6 +82,7 @@ local function check(uri, name, isScopeDiag, response)
return
end
mark[result.start] = true
+
result.level = severity or result.level
result.code = name
response(result)