Skip to content

Commit

Permalink
refactor: make guessEditor the hightest priority
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouLion committed Aug 19, 2024
1 parent fdc8e3d commit 7ee7d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface VitePluginVueDevToolsOptions {
const defaultOptions: VitePluginVueDevToolsOptions = {
appendTo: '',
componentInspector: true,
launchEditor: process.env.LAUNCH_EDITOR ?? (guessEditor()[0] || 'code'),
launchEditor: guessEditor()[0] ?? process.env.LAUNCH_EDITOR ?? 'code',
}

function mergeOptions(options: VitePluginVueDevToolsOptions): VitePluginVueDevToolsOptions {
Expand Down

0 comments on commit 7ee7d77

Please sign in to comment.