Custom Editor Opens Correct File but Also Creates an Empty File Named with Line Number
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the launchEditor: 'windsurf' configuration shown in vite.config.js and trace how VueDevTools builds the editor command and line argument. Reproduce the issue with the listed Vite, VueDevTools, Windsurf, and Ubuntu versions, then verify that the target file opens at the requested line without creating an extra file named after the line number.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100