mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
![github-actions[bot]](/assets/img/avatar_default.png)
fix(lsp): don't register didChangeWatchedFiles when capability not set
Some LSP servers (tailwindcss, rome) are known to request registration
for `workspace/didChangeWatchedFiles` even when the corresponding client
capability does not advertise support. This change adds an extra check
in the `client/registerCapability` handler not to start a watch unless
the client capability is set appropriately.
(cherry picked from commit 78510add5b
)
Co-authored-by: Jon Huhn <huhnjon@gmail.com>