Files
neovim/runtime/lua/vim
Mathias Fussenegger b9e6fa7ec8 fix(lsp): use filterText as word if textEdit/label doesn't match
Problem:

With language servers like lemminx, completing xml tags like `<mo` first
shows the right candidates (`modules`) but after typing `d` the
candidates disappear.

This is because the server returns:

    [...]
    filterText = "<module",
    label = "module",
    textEdit = {
      newText = "<module>$1</module>$0",

Which resulted in `module` being used as `word`, and `module` doesn't
match the prefix `<mo`. Typing `d` causes the `complete()` filtering
mechanism to kick in and remove the entry.

Solution:

Use `<module` from the `filterText` as `word` if the textEdit/label
heuristic doesn't match.
2025-01-17 18:34:58 +01:00
..
2024-10-23 14:13:42 +02:00
2025-01-11 10:34:12 +01:00
2024-03-06 10:45:22 +00:00
2025-01-11 10:34:12 +01:00
2024-01-16 09:33:10 +00:00
2025-01-09 09:26:45 -08:00
2024-09-01 13:01:24 -07:00