diff options
| author | Jeff Martin <jeffmartin@gmail.com> | 2025-11-18 23:03:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 23:03:40 -0800 |
| commit | ff792f8e690854aaae9be627c583b596faf137c0 (patch) | |
| tree | f4c53b575e5520c76a89cf23a1563ff845b14c63 /runtime/lua/vim/lsp/protocol.lua | |
| parent | b65aadc03ee7914081ca4055dc72778fd4d68e7b (diff) | |
| download | rneovim-ff792f8e690854aaae9be627c583b596faf137c0.tar.gz rneovim-ff792f8e690854aaae9be627c583b596faf137c0.tar.bz2 rneovim-ff792f8e690854aaae9be627c583b596faf137c0.zip | |
fix(lsp): enable insertReplaceSupport for use in adjust_start_col #36569
Problem:
With the typescript LSes typescript-language-server and vtsls,
omnicompletion on partial tokens for certain types, such as array
methods, and functions that are attached as attributes to other
functions, either results in no entries populated in the completion menu
(typescript-language-server), or an unfiltered completion menu with all
array methods included, even if they don't share the same prefix as the
partial token being completed (vtsls).
Solution:
Enable insertReplaceSupport and uses the insert portion of the lsp
completion response in adjust_start_col if it's included in the
response.
Completion results are still filtered client side.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
| -rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index 509c203ef7..f367c0a7c3 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -478,6 +478,7 @@ function protocol.make_client_capabilities() preselectSupport = false, deprecatedSupport = true, documentationFormat = { constants.MarkupKind.Markdown, constants.MarkupKind.PlainText }, + insertReplaceSupport = true, resolveSupport = { properties = { 'additionalTextEdits', |