diff options
| author | Caleb White <cdwhite3@pm.me> | 2026-07-08 06:26:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-08 07:26:22 -0400 |
| commit | 653f2092ce5545da3a10743e95aae435d0e0c182 (patch) | |
| tree | 378d46df5d88641826132c589603a09df5cdd170 /test/functional/vimscript/executable_spec.lua | |
| parent | cfd7f29d52e21457951c589265e281d5009c17a0 (diff) | |
| download | rneovim-653f2092ce5545da3a10743e95aae435d0e0c182.tar.gz rneovim-653f2092ce5545da3a10743e95aae435d0e0c182.tar.bz2 rneovim-653f2092ce5545da3a10743e95aae435d0e0c182.zip | |
fix(lsp): refresh document-pull buffers on workspace/diagnostic/refresh #40623
When a server supports both document and workspace pull diagnostics,
`on_refresh` only dispatched a `workspace/diagnostic` request. The
workspace response handler skips buffers with `pull_kind == "document"`
(i.e. all buffers opened by the user), so their diagnostics went stale
until the next `didChange` or `didOpen` event.
Change `on_refresh` to always refresh document-pull buffers via
`textDocument/diagnostic`, regardless of whether the server also
supports workspace diagnostics. This ensures that opened buffers
see updated diagnostics (e.g. after a save triggers an external
tool like PHPStan) without requiring the user to re-enter insert
mode.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions