diff options
-rw-r--r-- | changelog.md | 3 | ||||
-rw-r--r-- | script/provider/diagnostic.lua | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index e24dae7d..d119a7a7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # changelog +## 3.2.3 +* `FIX` diagnostic: send empty results to every file after startup + ## 3.2.2 `2022-4-26` * `FIX` diagnostic: `unused-function` cannot handle recursion correctly diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index 458b3764..15b08d49 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -128,6 +128,10 @@ local function mergeDiags(a, b, c) merge(b) merge(c) + if #t == 0 then + return nil + end + return t end @@ -253,9 +257,7 @@ function m.doDiagnostic(uri, isScopeDiag) version = version, diagnostics = full, }) - if #full > 0 then - log.debug('publishDiagnostics', uri, #full) - end + log.debug('publishDiagnostics', uri, #full) end pushResult() |