Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aviel-lanzman opened this issue Apr 24, 2025 · 1 comment

Comments

@aviel-lanzman
Copy link

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

@luvletterldl
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants