diff options
| author | Rocco Vaccone <25404382+rvaccone@users.noreply.github.com> | 2026-08-04 05:14:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-04 05:14:15 -0400 |
| commit | d0644230f12b1ade01f5cad35531019ac974e225 (patch) | |
| tree | f1a229fce6962657ea9f62bd1f495f70f74efbed /runtime/lua/vim/_stringbuffer.lua | |
| parent | c875b1671418fee3e7a5c04b57208e3e2f88143e (diff) | |
| download | rneovim-d0644230f12b1ade01f5cad35531019ac974e225.tar.gz rneovim-d0644230f12b1ade01f5cad35531019ac974e225.tar.bz2 rneovim-d0644230f12b1ade01f5cad35531019ac974e225.zip | |
fix(lsp): ignore (and log once) invalid documentSelector globs #41055
Problem:
Client:_get_registrations() errors if a documentSelector pattern is not
a valid glob (e.g. "**/**.dart" from dartls). The error discards
already-matched registrations and propagates to supports_method() and
the client/registerCapability handler, disabling capabilities unrelated
to the offending pattern.
Solution:
Skip invalid globs. Treat them as non-matching, and log once per client.
(Similar approach was taken for filewatcher globs: 4d9e5acfb5ee081b5b0761205c8a8c36ed7e49e5)
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions