summaryrefslogtreecommitdiff
path: root/server-beta/src/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-20 14:29:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-20 14:29:39 +0800
commit2e6a5507061758113293e4183ddf53a54a4463a4 (patch)
treee7a00bd8f7dc7802599336703b1aa27c8130279c /server-beta/src/core/diagnostics
parenta9332f149ef1aabc7add67ce6ce6bcab19322d0e (diff)
downloadlua-language-server-2e6a5507061758113293e4183ddf53a54a4463a4.zip
进一步过滤未改变的诊断
Diffstat (limited to 'server-beta/src/core/diagnostics')
-rw-r--r--server-beta/src/core/diagnostics/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/core/diagnostics/init.lua b/server-beta/src/core/diagnostics/init.lua
index c5abff25..0d523f26 100644
--- a/server-beta/src/core/diagnostics/init.lua
+++ b/server-beta/src/core/diagnostics/init.lua
@@ -33,5 +33,9 @@ return function (uri)
check(uri, name, level, results)
end
+ if #results == 0 then
+ return nil
+ end
+
return results
end