-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
Description
Triggering auto-completion on an identifier that is preceded by [ removes the [ itself on candidate insertion.
Repro steps
- Type in the following code.
type Animal = Dog | Cat
let animals = [Do//<- cursor is here-
Trigger
company-completewhile cursor is right after[Do -
Select the
Dogcandidate in company UI.
Expected behavior
Do gets auto-completed to Dog while the leading [ stays intact.
Code before auto-completion
type Animal = Dog | Cat
let animals = [DoCode after auto-completion
type Animal = Dog | Cat
let animals = [DogActual behavior
Do gets auto-completed to Dog while the leading [ is stripped away.
Code before auto-completion
type Animal = Dog | Cat
let animals = [DoCode after auto-completion
type Animal = Dog | Cat
let animals = DogKnown workarounds
Inserting a space between the opening bracket and the first element of the list makes the auto-completion work properly again.
Related information
- Ubuntu 16.04 LTS
- Emacs 24.5.1 & Emacs 27.0.50 (Tested on both)
- Mono 5.10 & .NET Core 2.0.3
Metadata
Metadata
Assignees
Labels
No labels