Skip to content

fix(core): resolve open-in-editor/finder paths against vite cwd#352

Closed
JianJroh wants to merge 1 commit into
vitejs:mainfrom
JianJroh:fix/open-in-editor-cwd-resolution
Closed

fix(core): resolve open-in-editor/finder paths against vite cwd#352
JianJroh wants to merge 1 commit into
vitejs:mainfrom
JianJroh:fix/open-in-editor-cwd-resolution

Conversation

@JianJroh
Copy link
Copy Markdown
Contributor

Description

Clicking "Open in editor" silently does nothing. open-in-editor / open-in-finder resolved relative paths against workspaceRoot (monorepo root) instead of cwd (Vite project root), dropping the sub-package segment.
Regression from #255.

Changes

Before

launchEditor('\\vitejs-devtools\src\components\HelloWorld.vue:10:2')

After

launchEditor('\\vitejs-devtools\packages\core\playground\src\components\HelloWorld.vue:10:2')

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@352
npm i https://pkg.pr.new/@vitejs/devtools-kit@352
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@352
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@352

commit: 6c45931

@JianJroh JianJroh marked this pull request as draft May 19, 2026 03:53
@JianJroh JianJroh closed this May 19, 2026
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

Successfully merging this pull request may close these issues.

1 participant