import{ls as e}from"../platform/platform.js";import{Runtime as i}from"../root/root.js";import{ViewManager as a}from"../ui/ui.js";let r;async function o(){return r||(await i.Runtime.instance().loadModulePromise("sources"),r=await import("./sources.js")),r}a.registerViewExtension({location:"panel",id:"sources",commandPrompt:"Show Sources",title:()=>e`Sources`,order:30,loadView:async()=>(await o()).SourcesPanel.SourcesPanel.instance()}),a.registerViewExtension({location:"navigator-view",id:"navigator-files",commandPrompt:"Show Filesystem",title:()=>e`Filesystem`,order:3,persistence:"permanent",loadView:async()=>(await o()).SourcesNavigator.FilesNavigatorView.instance()}),a.registerViewExtension({location:"navigator-view",id:"navigator-snippets",commandPrompt:"Show Snippets",title:()=>e`Snippets`,order:6,persistence:"permanent",loadView:async()=>(await o()).SourcesNavigator.SnippetsNavigatorView.instance()}),a.registerViewExtension({location:"drawer-view",id:"sources.search-sources-tab",commandPrompt:"Show Search",title:()=>e`Search`,order:7,persistence:"closeable",loadView:async()=>(await o()).SearchSourcesView.SearchSourcesView.instance()}),a.registerViewExtension({location:"navigator-view",id:"navigator-recordings",commandPrompt:"Show Recordings",title:()=>e`Recordings`,order:8,persistence:"permanent",experiment:"recorder",loadView:async()=>(await o()).SourcesNavigator.RecordingsNavigatorView.instance()}),a.registerViewExtension({location:"drawer-view",id:"sources.quick",commandPrompt:"Show Quick source",title:()=>e`Quick source`,persistence:"closeable",order:1e3,loadView:async()=>(await o()).SourcesPanel.WrapperView.instance()}),a.registerViewExtension({id:"sources.threads",commandPrompt:"Show Threads",title:()=>e`Threads`,persistence:"permanent",condition:"!sources.hide_thread_sidebar",loadView:async()=>(await o()).ThreadsSidebarPane.ThreadsSidebarPane.instance()}),a.registerViewExtension({id:"sources.scopeChain",commandPrompt:"Show Scope",title:()=>e`Scope`,persistence:"permanent",loadView:async()=>(await o()).ScopeChainSidebarPane.ScopeChainSidebarPane.instance()}),a.registerViewExtension({id:"sources.watch",commandPrompt:"Show Watch",title:()=>e`Watch`,persistence:"permanent",loadView:async()=>(await o()).WatchExpressionsSidebarPane.WatchExpressionsSidebarPane.instance(),hasToolbar:!0}),a.registerViewExtension({id:"sources.jsBreakpoints",commandPrompt:"Show Breakpoints",title:()=>e`Breakpoints`,persistence:"permanent",loadView:async()=>(await o()).JavaScriptBreakpointsSidebarPane.JavaScriptBreakpointsSidebarPane.instance()});
