From 94a16d06b06021e8720fd9f34240d289e757b3bf Mon Sep 17 00:00:00 2001 From: Sakana <15715093608@163.com> Date: Wed, 16 Sep 2026 10:21:47 +0800 Subject: [PATCH] fix(core): disable shortcuts for path-dependent commands --- packages/core/src/node/context.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/node/context.ts b/packages/core/src/node/context.ts index cb69d12c..e80cec9a 100644 --- a/packages/core/src/node/context.ts +++ b/packages/core/src/node/context.ts @@ -103,6 +103,7 @@ export async function createDevToolsContext( icon: 'ph:pencil-duotone', category: 'editor', showInPalette: false, + allowShortcuts: false, handler: (path: string) => rpcHost.invokeLocal('vite:core:open-in-editor', path), }) context.commands.register({ @@ -111,6 +112,7 @@ export async function createDevToolsContext( icon: 'ph:folder-open-duotone', category: 'editor', showInPalette: false, + allowShortcuts: false, handler: (path: string) => rpcHost.invokeLocal('vite:core:open-in-finder', path), })