summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-05 22:25:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-05 22:25:39 +0800
commitd940791c73c5d2ebb8aec61a6532161bf9a06fe0 (patch)
tree698388e378efe0dd228f8248e45952b2a1622497 /script/core
parentce90f6591fd134d6773597f5da6af6c47fa520f2 (diff)
downloadlua-language-server-d940791c73c5d2ebb8aec61a6532161bf9a06fe0.zip
update diag sorts
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 4368f51a..369a6ba2 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -6,8 +6,10 @@ local vm = require "vm.vm"
-- 把耗时最长的诊断放到最后面
local diagSort = {
- ['deprecated'] = 98,
- ['undefined-field'] = 99,
+ ['redundant-value'] = 96,
+ ['not-yieldable'] = 97,
+ ['deprecated'] = 98,
+ ['undefined-field'] = 99,
['redundant-parameter'] = 100,
}