Skip to content

Using Save as in VSCode results in Virtual script not found #2603

@matthew-dean

Description

@matthew-dean

I thought I filed an issue for this but apparently not.

If you have a .vue file open, and you do Save As... and choose a new file name, your new file will be broken permanently until you restart Volar.

The Script tag will have a blue underline with: Virtual script not found, may missing <script lang="ts"> / "allowJs": true / jsconfig.json.

Even though this is the same error message as #1786, it only happens when saving as a new file, with the current version of Volar (1.2.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions