You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent jedi_completion with snippets enabled client (vim-lsp) #619
The specification forbids changing insertText in resolution phase unless completionItem#resolveSupport lists it:
By default the request can only delay the computation of the detail and documentation properties. Since 3.16.0 the client can signal that it can resolve more properties lazily. This is done using the completionItem#resolveSupport client capability which lists all properties that can be filled in during a ‘completionItem/resolve’ request. All other properties (usually sortText, filterText, insertText and textEdit) must be provided in the textDocument/completion response and must not be changed during resolve
Activity
krassowski commentedon Apr 11, 2025
Currently only an initial set of completion items (by default 25) receive snippets:
python-lsp-server/pylsp/plugins/jedi_completion.py
Lines 262 to 264 in 04fa3e5
And snippets are not resolved in
completionItem/resolve:python-lsp-server/pylsp/plugins/jedi_completion.py
Lines 139 to 156 in 04fa3e5
This might explain it.
krassowski commentedon Apr 11, 2025
The specification forbids changing
insertTextin resolution phase unlesscompletionItem#resolveSupportlists it:So it will only work for clients which do that.