summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--script/provider/provider.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 0f71fab5..848a00f1 100644
--- a/changelog.md
+++ b/changelog.md
@@ -8,6 +8,7 @@
if x == -- suggest `CONST.X` and `CONST.Y` here
```
+* `FIX` with clients that support LSP 3.17 (VSCode), workspace diagnostics are triggered every time when opening a file.
## 3.2.5
`2022-6-9`
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index ad23ccda..2943c77e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1227,7 +1227,7 @@ m.register 'textDocument/diagnostic' {
workspace.awaitReady(uri)
local core = require 'provider.diagnostic'
-- TODO: do some trick
- core.refresh(uri)
+ core.doDiagnostic(uri)
return {
kind = 'unchanged',