Is your feature request related to a problem? Please describe.
Let's say I have foobar as one of the current completion candidates, with the current line being foo|ar (| represents the cursor position). If I select that completion I'd expect to end up with foobar|, not foobar|ar.
Just as an example:
->
Describe the solution you'd like
Avoid inserting all the trailing characters of the inserted completion that match the text right after the current cursor position.
Additional context
Since this seems to be already happening when editing Rust files I suspect it's actually vscode-json-languageserver's fault for not properly setting the textEdit field of the returned CompletionItems.
If that's the case, could a new option be added to enable client-side character lookahead when inserting completions? It'd be off by default, w/ the ability to turn it on for specific languages through language_overrides.
Is your feature request related to a problem? Please describe.
Let's say I have
foobar
as one of the current completion candidates, with the current line beingfoo|ar
(|
represents the cursor position). If I select that completion I'd expect to end up withfoobar|
, notfoobar|ar
.Just as an example:
->
Describe the solution you'd like
Avoid inserting all the trailing characters of the inserted completion that match the text right after the current cursor position.
Additional context
Since this seems to be already happening when editing Rust files I suspect it's actually
vscode-json-languageserver
's fault for not properly setting thetextEdit
field of the returnedCompletionItem
s.If that's the case, could a new option be added to enable client-side character lookahead when inserting completions? It'd be off by default, w/ the ability to turn it on for specific languages through
language_overrides
.