import*as i18n from"../i18n/i18n.js";import*as Root from"../root/root.js";import*as UI from"../ui/ui.js";const UIStrings={openFile:"Open File",runCommand:"Run command"},str_=i18n.i18n.registerUIStrings("quick_open/quick_open-meta.ts",UIStrings),i18nLazyString=i18n.i18n.getLazilyComputedLocalizedString.bind(void 0,str_);let loadedQuickOpenModule;async function loadQuickOpenModule(){return loadedQuickOpenModule||(await Root.Runtime.Runtime.instance().loadModulePromise("quick_open"),loadedQuickOpenModule=await import("./quick_open.js")),loadedQuickOpenModule}UI.ActionRegistration.registerActionExtension({actionId:"commandMenu.show",category:UI.ActionRegistration.ActionCategory.GLOBAL,title:i18nLazyString(UIStrings.runCommand),loadActionDelegate:async()=>(await loadQuickOpenModule()).CommandMenu.ShowActionDelegate.instance(),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+P",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+Shift+P",keybindSets:["devToolsDefault","vsCode"]},{shortcut:"F1",keybindSets:["vsCode"]}]}),UI.ActionRegistration.registerActionExtension({actionId:"quickOpen.show",category:UI.ActionRegistration.ActionCategory.GLOBAL,title:i18nLazyString(UIStrings.openFile),loadActionDelegate:async()=>(await loadQuickOpenModule()).QuickOpen.ShowActionDelegate.instance(),order:100,bindings:[{platform:"mac",shortcut:"Meta+P",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+O",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+P",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+O",keybindSets:["devToolsDefault","vsCode"]}]}),UI.ContextMenu.registerItem({location:UI.ContextMenu.ItemLocation.MAIN_MENU_DEFAULT,actionId:"commandMenu.show",order:void 0}),UI.ContextMenu.registerItem({location:UI.ContextMenu.ItemLocation.MAIN_MENU_DEFAULT,actionId:"quickOpen.show",order:void 0});