Describe the feature:
In some cases, our autocomplete refuses to produce suggestions when a user starts or continues typing a word. It can also appear not to take into account the characters that have already been typed in the current word. A user must often delete one or more characters and press the space bar to get the suggestions menu open again.
This is confusing behavior and often leaves the user without good suggestions.
Why this happens
Monaco produces suggestions based on various events. Two kinds of events are "Invoke" and "Trigger character" (ref). "Trigger character" means the user enters one of a set of special characters we have configured to pop the suggestions menu open (e.g. ' '). "Invoke" means the user simply starts typing a word.
The inconsistencies in our autocomplete behavior are largely symptomatic of spotty support for "Invoke" style events.
Describe the feature: In some cases, our autocomplete refuses to produce suggestions when a user starts or continues typing a word. It can also appear not to take into account the characters that have already been typed in the current word. A user must often delete one or more characters and press the space bar to get the suggestions menu open again.
https://github.com/user-attachments/assets/f12ff0ae-6b2f-47f5-9fc1-37555308ab95
This is confusing behavior and often leaves the user without good suggestions.
Why this happens
Monaco produces suggestions based on various events. Two kinds of events are "Invoke" and "Trigger character" (ref). "Trigger character" means the user enters one of a set of special characters we have configured to pop the suggestions menu open (e.g.
' '
). "Invoke" means the user simply starts typing a word.The inconsistencies in our autocomplete behavior are largely symptomatic of spotty support for "Invoke" style events.
_
)