Bladeren bron

fix(app): prevent command palette first-open flash (#35858)

opencode-agent[bot] 1 maand geleden
bovenliggende
commit
c33a2011c4
1 gewijzigde bestanden met toevoegingen van 1 en 4 verwijderingen
  1. 1 4
      packages/app/src/components/dialog-select-file.tsx

+ 1 - 4
packages/app/src/components/dialog-select-file.tsx

@@ -20,14 +20,11 @@ import {
   uniqueCommandPaletteEntries,
   type CommandPaletteEntry,
 } from "./command-palette"
+import { DialogCommandPaletteV2 } from "./dialog-command-palette-v2"
 
 const DialogSelectFileV2 = lazy(() =>
   import("./dialog-select-directory-v2").then((module) => ({ default: module.DialogSelectDirectoryV2 })),
 )
-const DialogCommandPaletteV2 = lazy(() =>
-  import("./dialog-command-palette-v2").then((module) => ({ default: module.DialogCommandPaletteV2 })),
-)
-
 type DialogSelectFileMode = "all" | "files"
 
 export function DialogSelectFile(props: { mode?: DialogSelectFileMode; onOpenFile?: (path: string) => void }) {