When the first option provided by Intellisense is selected, a $1 will be appended to either:
The component's name
The placeholder for an attribute (normal or :binding) or event handler (@)
The placeholder for interpolation {{ }} ($0 in this case)
- The component's name
When importing a component and selecting the first option provided by Intellisense the component is imported with a $1 appended to the end of the Component's name.
Description
It seems this bug was introduced in this commit: https://github.com/vuejs/repl/commit/295c0e809d980fc04dcac86efc3e64044218792a when upgrading the
@volar/monaco
package from1.9.2
to1.10.5
. The first ocurrence of this bug in the Volar.js repo happens after the1.9.2
version and before1.10.0
version. Specifically in this set of commits.How to reproduce
When the first option provided by Intellisense is selected, a
$1
will be appended to either:{{ }}
($0 in this case)- The component's name
When importing a component and selecting the first option provided by Intellisense the component is imported with a $1 appended to the end of the Component's name.
- The placeholder for an attribute
- The placeholder for an event handler
- The placeholder for interpolation