import{i18n as e}from"../i18n/i18n.js";import{Runtime as t}from"../root/root.js";import{ViewManager as i,ActionRegistration as n}from"../ui/ui.js";const s={shortcuts:"Shortcuts",preferences:"Preferences",experiments:"Experiments",ignoreList:"Ignore List",showShortcuts:"Show Shortcuts",showPreferences:"Show Preferences",showExperiments:"Show Experiments",showIgnoreList:"Show Ignore List",settings:"Settings",documentation:"Documentation"},o=e.registerUIStrings("settings/settings-meta.ts",s),r=e.getLazilyComputedLocalizedString.bind(void 0,o);let a;async function c(){return a||(await t.Runtime.instance().loadModulePromise("settings"),a=await import("./settings.js")),a}i.registerViewExtension({location:"settings-view",id:"preferences",title:r(s.preferences),commandPrompt:r(s.showPreferences),order:0,loadView:async()=>(await c()).SettingsScreen.GenericSettingsTab.instance()}),i.registerViewExtension({location:"settings-view",id:"experiments",title:r(s.experiments),commandPrompt:r(s.showExperiments),order:3,experiment:t.ExperimentName.ALL,loadView:async()=>(await c()).SettingsScreen.ExperimentsSettingsTab.instance()}),i.registerViewExtension({location:"settings-view",id:"blackbox",title:r(s.ignoreList),commandPrompt:r(s.showIgnoreList),order:4,loadView:async()=>(await c()).FrameworkIgnoreListSettingsTab.FrameworkIgnoreListSettingsTab.instance()}),i.registerViewExtension({location:"settings-view",id:"keybinds",title:r(s.shortcuts),commandPrompt:r(s.showShortcuts),order:100,loadView:async()=>(await c()).KeybindsSettingsTab.KeybindsSettingsTab.instance()}),n.registerActionExtension({category:n.ActionCategory.SETTINGS,actionId:"settings.show",title:r(s.settings),loadActionDelegate:async()=>(await c()).SettingsScreen.ActionDelegate.instance(),iconClass:"largeicon-settings-gear",bindings:[{shortcut:"F1",keybindSets:["devToolsDefault"]},{shortcut:"Shift+?"},{platform:"windows,linux",shortcut:"Ctrl+,",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+,",keybindSets:["vsCode"]}]}),n.registerActionExtension({category:n.ActionCategory.SETTINGS,actionId:"settings.documentation",title:r(s.documentation),loadActionDelegate:async()=>(await c()).SettingsScreen.ActionDelegate.instance()}),n.registerActionExtension({category:n.ActionCategory.SETTINGS,actionId:"settings.shortcuts",title:r(s.shortcuts),loadActionDelegate:async()=>(await c()).SettingsScreen.ActionDelegate.instance(),bindings:[{platform:"windows,linux",shortcut:"Ctrl+K Ctrl+S",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+K Meta+S",keybindSets:["vsCode"]}]}),i.registerLocationResolver({name:"settings-view",category:i.ViewLocationCategoryValues.SETTINGS,loadResolver:async()=>(await c()).SettingsScreen.SettingsScreen.instance()});export{s as UIStrings};
