Unverified Commit ad97ca57 authored by Frederic H-F's avatar Frederic H-F Committed by GitHub

fix(dev-overlay): correct open-in-editor path when using a `src` directory (#94775)

Co-authored-by: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 9fb99c7a
......@@ -402,8 +402,8 @@ export function getOverlayMiddleware({
if (isAppRelativePath) {
const relativeFilePath = searchParams.get('file') || ''
const appPath = path.join(
'app',
isSrcDir ? 'src' : '',
'app',
relativeFilePath
)
openEditorResult = await openFileInEditor(appPath, 1, 1, projectPath)
......
......@@ -647,8 +647,8 @@ export function getOverlayMiddleware(options: {
if (isAppRelativePath) {
const relativeFilePath = searchParams.get('file') || ''
const appPath = path.join(
'app',
isSrcDir ? 'src' : '',
'app',
relativeFilePath
)
openEditorResult = await openFileInEditor(appPath, 1, 1, rootDirectory)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment