We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc1d5d commit 7beed42Copy full SHA for 7beed42
1 file changed
packages/launch-editor-middleware/index.js
@@ -33,7 +33,8 @@ module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
33
`launch-editor-middleware: required query param "file" is missing.`
34
)
35
} else {
36
- launch(path.resolve(srcRoot, file), specifiedEditor, onErrorCallback)
+ const resolved = file.startsWith('file://') ? file : path.resolve(srcRoot, file)
37
+ launch(resolved, specifiedEditor, onErrorCallback)
38
res.end()
39
}
40
0 commit comments