Skip to content

Custom Editor Opens Correct File but Also Creates an Empty File Named with Line Number #873

Open
@aviel-lanzman

Description

@aviel-lanzman

Description:
When using VueDevTools with the launchEditor: 'windsurf' configuration in vite.config.js, the custom editor (Windsurf) opens the specified file correctly. However, an additional empty file is created, named with the line number from the code (e.g., 123 for line 123). This is unexpected and disrupts the development experience.

Configuration:

//vite.config.js
VueDevTools({ launchEditor: 'windsurf' })

Steps to Reproduce:
Configure VueDevTools in vite.config.js with launchEditor: 'windsurf'.
Use VueDevTools to open a file at a specific line in the Windsurf editor.
Observe that the correct file opens, but an empty file named with the line number is also created.

Expected Behavior:
The Windsurf editor should open only the specified file at the correct line without creating additional empty files.

Actual Behavior:
An empty file named with the line number is opened alongside the correct file in the Windsurf editor.

Environment:
Vite version: ^6.2.6
VueDevTools version: ^7.4.6
Editor: Windsurf
OS: Ubuntu 24.04.2

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions