diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-20 14:29:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-20 14:29:39 +0800 |
commit | 2e6a5507061758113293e4183ddf53a54a4463a4 (patch) | |
tree | e7a00bd8f7dc7802599336703b1aa27c8130279c /server-beta/src/core | |
parent | a9332f149ef1aabc7add67ce6ce6bcab19322d0e (diff) | |
download | lua-language-server-2e6a5507061758113293e4183ddf53a54a4463a4.zip |
进一步过滤未改变的诊断
Diffstat (limited to 'server-beta/src/core')
-rw-r--r-- | server-beta/src/core/diagnostics/init.lua | 4 |
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 |