aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorGrzegorz Rozdzialik <voreny.gelio@gmail.com>2024-08-07 17:28:01 +0200
committerGitHub <noreply@github.com>2024-08-07 17:28:01 +0200
commit7031949be065870f0daf74a9f1be3df47f83312c (patch)
tree0a67e67de699325d6ea4092ed5497659fb94c041 /src/clint.py
parent328ea02eb7dec32286ae6c691ecef71d988c905b (diff)
downloadrneovim-7031949be065870f0daf74a9f1be3df47f83312c.tar.gz
rneovim-7031949be065870f0daf74a9f1be3df47f83312c.tar.bz2
rneovim-7031949be065870f0daf74a9f1be3df47f83312c.zip
fix(lsp): avoid reusing diagnostics from different servers in actions (#30002)
Problem: When preparing the parameters for a code actions LSP request, the code set `context.diagnostics` when processing the first LSP client, and then reused those `context.diagnostics` for subsequent LSP clients. This meant that the second and next LSP clients got diagnostics that did not originate from them, and they did not get the diagnostics that they sent. Solution: Avoid setting `context.diagnostics` (which is referenced by all clients). Instead, set `params.context.diagnostics` directly, which is specific to a single client. Fixes #30001 Caused by #29501
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions