Closed
Description
Summary
If you have multiple selections, language completion only affects the first one.
Reproduction Steps
Create a simple JS file and ensure JS LSP is installed.
const be
console.log('to', foo, 'or not to', foo)
- g3g (goto line 3)
- x (select line)
- s +
foo
return (select bothfoo
instances) - c (change)
- b ctrl x (autocomplete: select “be” constant – note: tab doesn’t seem to work with a two-letter autocompletion. Note: behaviour is the same if you use tab with a longer completion.)
What should happen
Both foo
instances should autocomplete to be
:
const be
console.log('to', be, 'or not to', be)
What actually happens
Only the first foo
autocompletes to be
:
const be
console.log('to', be, 'or not to', b)
Helix log
n/a
Platform
Linux (elementary OS 6; based on Ubuntu)
Terminal Emulator
io.elementary.t
Helix Version
helix 22.05-dev (2d4f94e)