Skip to content

The latest version has a bug in template interpolation highlighting #5656

@syaigc

Description

@syaigc

Vue - Official extension or vue-tsc version

Vue - Official extension

VSCode version

1.104.1

Vue version

3.5.16

TypeScript version

none

System Info

package.json dependencies

Steps to reproduce

Writing JSX code in the script tag。

What is expected?

The recognition of template interpolation should exclude script tags, or be implemented in a better way; it shouldn't be like this now.

What is actually happening?

Writing JSX code in the script tag, the {{}} is actually a literal object, yet it is still recognized by the plugin as template interpolation highlighting. Shouldn’t the plugin avoid recognizing content in the script tag as template interpolation? Is it possible that Vue’s template interpolation would be placed inside the script tag?

Link to minimal reproduction

No response

Any additional comments?

Please fix this bug as soon as possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions