Skip to content

Commit a8ba229

Browse files
authored
fix(core): disable shortcuts for path-dependent commands (#578)
1 parent 1173db6 commit a8ba229

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/core/src/node/context.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export async function createDevToolsContext(
119119
icon: 'ph:pencil-duotone',
120120
category: 'editor',
121121
showInPalette: false,
122+
allowShortcuts: false,
122123
handler: (path: string) => rpcHost.invokeLocal('vite:core:open-in-editor', path),
123124
})
124125
context.commands.register({
@@ -127,6 +128,7 @@ export async function createDevToolsContext(
127128
icon: 'ph:folder-open-duotone',
128129
category: 'editor',
129130
showInPalette: false,
131+
allowShortcuts: false,
130132
handler: (path: string) => rpcHost.invokeLocal('vite:core:open-in-finder', path),
131133
})
132134

0 commit comments

Comments
 (0)