diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 21:14:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 21:14:23 +0800 |
commit | 1af368f7c8188c2e8406a18823c4fd052c1ad685 (patch) | |
tree | 9267fb5d37abd696f5e159a953f2aa96bdd29f12 | |
parent | d3c2e2c89072b2047b8a8ba1d020db52339a09e2 (diff) | |
download | lua-language-server-1af368f7c8188c2e8406a18823c4fd052c1ad685.zip |
fix so many workspace diagnostics
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/provider/provider.lua | 2 |
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', |