]> Sergey Matveev's repositories - vim-lsp.git/commit
Fix additionalTextEdits being ignored
authorMagnus Groß <magnus@mggross.com>
Mon, 4 Sep 2023 18:16:43 +0000 (20:16 +0200)
committerMagnus Groß <magnus@mggross.com>
Mon, 4 Sep 2023 18:18:48 +0000 (20:18 +0200)
commitddadd03eb9848d281c584eda8b001fd639a95ffd
tree6debc14bfc29cfe3a9de5ff36fd058ef4f1554d2
parentb44a475085d6a87b04e8b7f55c32fe0a8ee5da47
Fix additionalTextEdits being ignored

Regression was introduced in 6f4fdc7bcc3a1ba041c6196b85b506bd0c207cf0.
The logic was still fine if the LSP server delayed the
additionalTextEdits field, but if we already got it, we ended up
ignoring it.

Fix this by checking for additionalTextEdits outside the delayed-resolve
condition.

Also see #389
autoload/lsp/completion.vim