Skip to content

[bug]: $0 or $1 added in placeholders with monaco #250

Closed
@icarusgk

Description

@icarusgk

Description

It seems this bug was introduced in this commit: 295c0e8 when upgrading the @volar/monaco package from 1.9.2 to 1.10.5. The first ocurrence of this bug in the Volar.js repo happens after the 1.9.2 version and before 1.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:

  • 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.

comp

- The placeholder for an attribute

attr

- The placeholder for an event handler

event

- The placeholder for interpolation

inter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions