-
-
Couldn't load subscription status.
- Fork 3.1k
Closed
Labels
A-language-serverArea: Language server clientArea: Language server clientC-bugCategory: This is a bugCategory: This is a bug
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 +
fooreturn (select bothfooinstances) - 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)
janaakhterov, matoous, ChrHorn, Yevgnen, jcornaz and 10 more
Metadata
Metadata
Assignees
Labels
A-language-serverArea: Language server clientArea: Language server clientC-bugCategory: This is a bugCategory: This is a bug