Skip to content

Commit 7ee7d77

Browse files
committed
refactor: make guessEditor the hightest priority
1 parent fdc8e3d commit 7ee7d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/vite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface VitePluginVueDevToolsOptions {
7676
const defaultOptions: VitePluginVueDevToolsOptions = {
7777
appendTo: '',
7878
componentInspector: true,
79-
launchEditor: process.env.LAUNCH_EDITOR ?? (guessEditor()[0] || 'code'),
79+
launchEditor: guessEditor()[0] ?? process.env.LAUNCH_EDITOR ?? 'code',
8080
}
8181

8282
function mergeOptions(options: VitePluginVueDevToolsOptions): VitePluginVueDevToolsOptions {

0 commit comments

Comments
 (0)