import{Settings as e}from"../common/common.js";import{i18n as t}from"../i18n/i18n.js";import{Runtime as r}from"../root/root.js";import{ViewManager as i}from"../ui/ui.js";const o={workspace:"Workspace",showWorkspace:"Show Workspace",enableLocalOverrides:"Enable Local Overrides",interception:"interception",override:"override",network:"network",rewrite:"rewrite",request:"request",enableOverrideNetworkRequests:"Enable override network requests",disableOverrideNetworkRequests:"Disable override network requests"},s=t.registerUIStrings("persistence/persistence-meta.ts",o),n=t.getLazilyComputedLocalizedString.bind(void 0,s);let a;i.registerViewExtension({location:"settings-view",id:"workspace",title:n(o.workspace),commandPrompt:n(o.showWorkspace),order:1,loadView:async()=>(await async function(){return a||(await r.Runtime.instance().loadModulePromise("persistence"),a=await import("./persistence.js")),a}()).WorkspaceSettingsTab.WorkspaceSettingsTab.instance()}),e.registerSettingExtension({category:e.SettingCategoryObject.PERSISTENCE,title:n(o.enableLocalOverrides),settingName:"persistenceNetworkOverridesEnabled",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!1,tags:[n(o.interception),n(o.override),n(o.network),n(o.rewrite),n(o.request)],options:[{value:!0,title:n(o.enableOverrideNetworkRequests)},{value:!1,title:n(o.disableOverrideNetworkRequests)}]});export{o as UIStrings};
