Skip to content

Commit 080c695

Browse files
committed
2 parents 4c4212d + cc1fda9 commit 080c695

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/launch-editor.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,11 @@ function getArgumentsForLineNumber(
191191
}
192192

193193
function guessEditor() {
194-
// Explicit config always wins
194+
// WebContainer config always wins
195+
if (process.versions.webcontainer)
196+
return [process.env.EDITOR || "code"]
197+
198+
// Explicit config always wins in non-WebContainer environments
195199
if (process.env.VUE_EDITOR)
196200
return shellQuote.parse(process.env.VUE_EDITOR)
197201

0 commit comments

Comments
 (0)