@opensumi/cli-engine 3.8.2-next-1741413805.0 → 3.8.2-next-1741622293.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/browser.js +1 -1
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -30460,7 +30460,7 @@ ${l}`)}return this.keybindingsChanged.fire({affectsCommands:[E.command]}),{dispo
|
|
|
30460
30460
|
`)&&D.severity===w?(this.treeModel.root.unlinkItem(D),await this.insertItemWithAnsi(D.description+l.output,w,S,A)):await this.insertItemWithAnsi(l.output,w,S,A)}this.fireDidChange()}async clearConsole(){var u;const d=(u=this.treeModel.root.flattenedBranch)===null||u===void 0?void 0:u.map(E=>this.treeModel.root.getTreeNodeById(E));if(d)for(const E of d)this.treeModel.root.unlinkItem(E)}async insertItemWithAnsi(u,d,E,g){var l;const y=await(0,v.handleANSIOutput)(u,this.linkDetector,this.themeService,void 0);this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,(l=this.treeModel)===null||l===void 0?void 0:l.root,this.linkDetector,y,d,E,g))}async execute(u){var d;this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,this.treeModel.root,this.linkDetector,void 0,c.MessageType.Info));const E=new s.DebugConsoleNode({session:this.session},u,(d=this.treeModel)===null||d===void 0?void 0:d.root);await E.evaluate(),this.treeModel.root.insertItem(E),this.fireDidChange()}append(u){var d;if(!u)return;const E=this.resolveChildren().slice(-1)[0];E instanceof s.AnsiConsoleNode&&E.description===this.uncompletedItemContent?(this.resolveChildren().pop(),this.uncompletedItemContent+=u):this.uncompletedItemContent=u,this.treeModel.root.insertItem(new s.AnsiConsoleNode(this.uncompletedItemContent,(d=this.treeModel)===null||d===void 0?void 0:d.root,this.linkDetector,void 0,c.MessageType.Info)),this.fireDidChange()}appendLine(u){var d;this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,(d=this.treeModel)===null||d===void 0?void 0:d.root,this.linkDetector,void 0,c.MessageType.Info)),this.fireDidChange()}};t.DebugConsoleSession=a,n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],a.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.LinkDetector),n.__metadata("design:type",m.LinkDetector)],a.prototype,"linkDetector",void 0),n.__decorate([(0,o.Autowired)(p.IThemeService),n.__metadata("design:type",Object)],a.prototype,"themeService",void 0),t.DebugConsoleSession=a=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__param(0,(0,o.Optional)()),n.__param(1,(0,o.Optional)()),n.__metadata("design:paramtypes",[_.DebugSession,f.DebugConsoleTreeModel])],a)},15153:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleModelService=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(93899),m=e(64582),_=e(58542),s=e(16170),f=e(98650),a=e(32756),h=e(17280),u=e(80390),d=e(75563),E=r.__importDefault(e(80315)),{Path:g}=p.path;let l=n=class{constructor(){this.debugSessionModelMap=new Map,this._changeEventDispatchQueue=[],this.selectedDecoration=new c.Decoration(E.default.mod_selected),this.contextMenuDecoration=new c.Decoration(E.default.mod_actived),this.loadingDecoration=new c.Decoration(E.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new p.Emitter,this.onDidUpdateTreeModelEmitter=new p.Emitter,this.treeModelDisposableCollection=new p.DisposableCollection,this.debugConsoleDisposableCollection=new p.DisposableCollection,this.activeNodeDecoration=(b,S=!0)=>{var A;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),b){if(this.selectedNodes.length>0)for(const w of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(w);this.focusedNode,this.selectedDecoration.addTarget(b),this._focusedNode=b,this._selectedNodes=[b],S&&((A=this.treeModel)===null||A===void 0||A.dispatchChange())}},this.activeNodeActivedDecoration=b=>{var S;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this._focusedNode=void 0),this.contextMenuDecoration.addTarget(b),this._contextMenuNode=b,(S=this.treeModel)===null||S===void 0||S.dispatchChange()},this.enactiveNodeDecoration=()=>{var b;this.focusedNode&&(this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.handleContextMenu=(b,S)=>{var A;b.stopPropagation(),b.preventDefault();const{x:w,y:T}=b.nativeEvent;this.debugContextKey.contextInDebugConsole.set(!0),S?this.activeNodeActivedDecoration(S):this.enactiveNodeDecoration();let D;S?D=S:D=(A=this.treeModel)===null||A===void 0?void 0:A.root;const I=this.contextMenuService.createMenu({id:v.MenuId.DebugConsoleContext,contextKeyService:this.debugContextKey.contextKeyScoped}),O=I.getMergedMenuNodes();I.dispose(),this.ctxMenuRenderer.show({anchor:{x:w,y:T},menuNodes:O,args:[D],onHide:()=>{window.requestAnimationFrame(()=>{this.debugContextKey.contextInDebugConsole.set(!1)})}})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=b=>{this.activeNodeDecoration(b)},this.handleTwistierClick=(b,S)=>{if(S===c.TreeNodeType.CompositeTreeNode){if(f.DebugConsoleNode.is(b)&&b.available){this.activeNodeDecoration(b,!1),this.toggleDirectory(b);return}else if(b.variablesReference){this.activeNodeDecoration(b,!1),this.toggleDirectory(b);return}}this.activeNodeDecoration(b)},this.toggleDirectory=async b=>{b.expanded?this.treeHandle.collapseNode(b):this.treeHandle.expandNode(b)},this.flushEventQueue=()=>{let b;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((A,w)=>{const T=g.pathDepth(A),D=g.pathDepth(w);return T-D});const S=[this._changeEventDispatchQueue[0]];for(const A of this._changeEventDispatchQueue)S.some(w=>A.indexOf(w)===0)||S.push(A);return b=(0,p.pSeries)(S.map(A=>async()=>{var w,T;const D=(T=(w=this.treeModel)===null||w===void 0?void 0:w.root)===null||T===void 0?void 0:T.getTreeNodeByPath(A);return D&&c.CompositeTreeNode.is(D)&&await D.refresh(),null})),this._changeEventDispatchQueue=[],b},this.init()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){var b;return(b=this._activeDebugSessionModel)===null||b===void 0?void 0:b.treeModel}get debugConsoleSession(){var b;return(b=this._activeDebugSessionModel)===null||b===void 0?void 0:b.debugConsoleSession}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}clear(){this.initTreeModel(this.manager.currentSession,!0)}collapseAll(){var b;(b=this.treeModel)===null||b===void 0||b.root.collapsedAll()}copyAll(){var b;let S="";if(!(!(!((b=this.treeModel)===null||b===void 0)&&b.root)||!this.treeModel.root.children)){for(const A of this.treeModel.root.children)S+=this.getValidText(A)+`
|
|
30461
30461
|
`;this.clipboardService.writeText(S.slice(0,-1))}}copy(b){b&&this.clipboardService.writeText(this.getValidText(b))}getValidText(b){return b.description.endsWith(`
|
|
30462
30462
|
`)?b.description.slice(0,-1):b.description}getConsoleModel(b){return this.debugSessionModelMap.get(b)}dispose(){this.disposeTreeModel(),this.disposeDebugConsole()}disposeTreeModel(){this.treeModelDisposableCollection.disposed||this.treeModelDisposableCollection.dispose()}disposeDebugConsole(){this.debugConsoleDisposableCollection.disposed||this.debugConsoleDisposableCollection.dispose()}async init(){this.debugConsoleDisposableCollection.push(this.manager.onDidDestroyDebugSession(b=>{this.debugSessionModelMap.delete(b.id),this.debugSessionModelMap.size>0&&this.initTreeModel(this.manager.currentSession)})),this.debugConsoleDisposableCollection.push(this.manager.onDidChangeActiveDebugSession(b=>{b.current&&this.initTreeModel(b.current)}))}listenTreeViewChange(){this.disposeTreeModel(),this.treeModel&&(this.treeModelDisposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.WillResolveChildren,b=>{this.loadingDecoration.addTarget(b)})),this.treeModelDisposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.DidResolveChildren,b=>{this.loadingDecoration.removeTarget(b)})))}async initTreeModel(b,S){if(!b){this._activeDebugSessionModel=void 0,this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel);return}const A=b.hasSeparateRepl()?b.id:b.parentSession.id;if(this.debugSessionModelMap.has(A)&&!S){const w=this.debugSessionModelMap.get(A);w?.debugConsoleSession.addChildSession(b),this._activeDebugSessionModel=w}else{const w=new f.DebugConsoleRoot({});if(!w)return;const T=this.injector.get(u.DebugConsoleTreeModel,[w]),D=this.injector.get(d.DebugConsoleSession,[b,T]);this._activeDebugSessionModel={treeModel:T,debugConsoleSession:D},D.onDidChange(async()=>{if(!T)return;const I=T.root.branchSize,O=D.resolveChildren();T.root.updatePresetChildren(O),I!==O.length&&(this.refresh(),T.isScrollBottom&&await this.treeHandle.ensureVisible(O[O.length-1]),T?.dispatchChange())}),this.debugSessionModelMap.set(A,this._activeDebugSessionModel),this.initDecorations(w),this.listenTreeViewChange()}return this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel),this._activeDebugSessionModel}initDecorations(b){this._decorations=new c.DecorationsManager(b),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(b){this._debugWatchTreeHandle=b}dispatchWatchEvent(b,S,A){const w=b.watchEvents.get(S);w&&w.callback&&w.callback(A)}collapsedAll(){var b;(b=this.treeModel)===null||b===void 0||b.root.collapsedAll()}async refresh(b){if(!b)if(this.treeModel)b=this.treeModel.root;else return;!f.ExpressionContainer.is(b)&&b.parent&&(b=b.parent),this.queueChangeEvent(b.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(b,S){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new p.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var A;await this.flushEventQueue(),(A=this.flushEventQueueDeferred)===null||A===void 0||A.resolve(),this.flushEventQueueDeferred=null,S()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(b)===-1&&this._changeEventDispatchQueue.push(b)}async execute(b){if(!this.treeModel)return;const S=this.treeModel.root,A=new s.AnsiConsoleNode(b,S,this.linkDetector);this.dispatchWatchEvent(S,S.path,{type:c.WatchEvent.Added,node:A,id:S.id});const w=new f.DebugConsoleNode({session:this.manager.currentSession},b,S);await w.evaluate(),this.dispatchWatchEvent(S,S.path,{type:c.WatchEvent.Added,node:w,id:S.id}),this.treeHandle.ensureVisible(w,"end",!0)}};t.DebugConsoleModelService=l,l.DEFAULT_REFRESH_DELAY=200,r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],l.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],l.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],l.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(a.DebugViewModel),r.__metadata("design:type",a.DebugViewModel)],l.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(p.IContextKeyService),r.__metadata("design:type",Object)],l.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(m.IDebugSessionManager),r.__metadata("design:type",Object)],l.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(p.IClipboardService),r.__metadata("design:type",Object)],l.prototype,"clipboardService",void 0),r.__decorate([(0,o.Autowired)(_.LinkDetector),r.__metadata("design:type",_.LinkDetector)],l.prototype,"linkDetector",void 0),r.__decorate([(0,o.Autowired)(h.DebugContextKey),r.__metadata("design:type",h.DebugContextKey)],l.prototype,"debugContextKey",void 0),t.DebugConsoleModelService=l=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],l)},11456:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleContribution=t.DEBUG_CONSOLE_VIEW_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(98295),v=e(64582),m=e(17280),_=e(4983),s=e(1276),f=e(4161),a=e(35199),h=e(5131);t.DEBUG_CONSOLE_VIEW_ID="debug-console-view";let u=class{registerComponent(E){E.register("debug-console",{id:t.DEBUG_CONSOLE_VIEW_ID,component:h.DebugConsoleView},{title:(0,o.localize)("debug.console.panel.title"),priority:8,containerId:v.DEBUG_CONSOLE_CONTAINER_ID,iconClass:(0,o.getIcon)("debug"),titleComponent:f.DebugConsoleFilterView})}registerToolbarItems(E){E.registerItem({id:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,command:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,iconClass:(0,o.getIcon)("clear"),viewId:v.DEBUG_CONSOLE_CONTAINER_ID,tooltip:v.DEBUG_COMMANDS.CLEAR_CONSOLE.label})}registerCommands(E){E.registerCommand(v.DEBUG_COMMANDS.CLEAR_CONSOLE,{execute:()=>{this.debugConsoleModelService.clear()}}),E.registerCommand(v.DEBUG_COMMANDS.COPY_CONSOLE_ITEM,{execute:g=>{this.debugConsoleModelService.copy(g)}}),E.registerCommand(v.DEBUG_COMMANDS.COPY_CONSOLE_ALL,{execute:()=>{this.debugConsoleModelService.copyAll()}}),E.registerCommand(v.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM,{execute:()=>{this.debugConsoleModelService.collapseAll()},isEnabled:()=>this.debugContextKey.contextInDebugConsole.get()===!0}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_ENTER_EVALUATE,{execute:()=>{this.debugConsoleService.runExecute()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_INPUT_DOWN_ARROW,{execute:()=>{this.debugConsoleService.showNextValue()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_INPUT_UP_ARROW,{execute:()=>{this.debugConsoleService.showPreviousValue()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_FILTER_FOCUS,{execute:()=>{this.debugConsoleFilterService.focusInput()}})}registerMenus(E){E.registerMenuItem(c.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COPY_CONSOLE_ITEM.id,label:(0,o.localize)("debug.console.copy")},group:"copy"}),E.registerMenuItem(c.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COPY_CONSOLE_ALL.id,label:(0,o.localize)("debug.console.copyAll")},group:"copy"}),E.registerMenuItem(c.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,label:(0,o.localize)("debug.console.clear")},group:"other"}),E.registerMenuItem(c.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM.id,label:(0,o.localize)("debug.console.collapseAll")},group:"other"})}registerKeybindings(E){E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_ENTER_EVALUATE.id,keybinding:"enter",when:`${_.CONTEXT_IN_DEBUG_REPL.raw} && ${_.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_INPUT_DOWN_ARROW.id,keybinding:"down",when:`${_.CONTEXT_IN_DEBUG_REPL.raw} && ${_.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_INPUT_UP_ARROW.id,keybinding:"up",when:`${_.CONTEXT_IN_DEBUG_REPL.raw} && ${_.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_FILTER_FOCUS.id,keybinding:"ctrlcmd+f",when:`${_.CONTEXT_IN_DEBUG_REPL.raw}`})}};t.DebugConsoleContribution=u,n.__decorate([(0,r.Autowired)(v.IDebugConsoleModelService),n.__metadata("design:type",Object)],u.prototype,"debugConsoleModelService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(a.DebugConsoleService),n.__metadata("design:type",a.DebugConsoleService)],u.prototype,"debugConsoleService",void 0),n.__decorate([(0,r.Autowired)(s.DebugConsoleFilterService),n.__metadata("design:type",s.DebugConsoleFilterService)],u.prototype,"debugConsoleFilterService",void 0),n.__decorate([(0,r.Autowired)(m.DebugContextKey),n.__metadata("design:type",m.DebugContextKey)],u.prototype,"debugContextKey",void 0),t.DebugConsoleContribution=u=n.__decorate([(0,p.Domain)(o.ComponentContribution,o.TabBarToolbarContribution,o.CommandContribution,c.MenuContribution,o.KeybindingContribution)],u)},35199:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleService=void 0;const r=e(85608),o=e(76003),c=e(41869),p=e(43718),v=e(54414),m=e(57517),_=e(63067),s=r.__importStar(e(20868)),f=e(52902),a=e(52416),h=e(54114),u=e(64582),d=e(38029),E=e(17280),g=e(15153),l="consoleinputdecoration",y="debug.console.history",b=18,S=T=>T.replace(/^\S/,D=>D.toUpperCase()),A={...(0,m.getSimpleEditorOptions)(),scrollbar:{horizontal:"visible",vertical:"hidden",handleMouseWheel:!0},acceptSuggestionOnEnter:"on"};let w=n=class{constructor(){this._consoleInputElement=null,this._updateDisposable=null,this._onConsoleInputValueChange=new p.Emitter,this.onConsoleInputValueChange=this._onConsoleInputValueChange.event,this._onInputHeightChange=new p.Emitter,this.onInputHeightChange=this._onInputHeightChange.event}get _isReadonly(){const D=this.manager.currentSession;return!(D&&D.state!==u.DebugState.Inactive)}get isVisible(){const D=this.mainLayoutService.getTabbarHandler(u.DEBUG_CONSOLE_CONTAINER_ID);return D&&D.isVisible}get consoleModel(){return this.debugConsoleModelService}activate(){const D=this.mainLayoutService.getTabbarHandler(u.DEBUG_CONSOLE_CONTAINER_ID);D&&!D.isVisible&&D.activate()}focusInput(){this.inputEditor&&this.inputEditor.monacoEditor.focus()}async init(D){var I;if(!D)return;const O=await this.storageProvider(p.STORAGE_NAMESPACE.DEBUG);if(this.history=new h.HistoryNavigator(new Set(O.get(y,[])),50),!((I=this.inputEditor)===null||I===void 0)&&I.monacoEditor)return;this._consoleInputElement=D,this.inputEditor=this.editorService.createCodeEditor(this._consoleInputElement,{...A,readOnly:!this.contextKeyService.getContextKeyValue(u.CONTEXT_IN_DEBUG_MODE_KEY)}),this.debugContextKey=this.injector.get(E.DebugContextKey,[this.inputEditor.monacoEditor.contextKeyService]),this.contextKeyService.match(u.CONTEXT_IN_DEBUG_MODE_KEY)?this.debugContextKey.contextInDebugMode.set(!0):this.debugContextKey.contextInDebugMode.set(!1),this.contextKeyService.onDidChangeContext(R=>{R.payload.affectsSome(n.keySet)&&(this.contextKeyService.match(u.CONTEXT_IN_DEBUG_MODE_KEY)?(this.updateReadOnly(!1),this.updateInputDecoration(),this.debugContextKey.contextInDebugMode.set(!0)):(this.updateReadOnly(!0),this.debugContextKey&&this.debugContextKey.contextInDebugMode.set(!1)))}),this.registerDecorationType(),await this.createConsoleInput(),this.setMode()}get contextInDebugRepl(){return this.debugContextKey.contextInDebugRepl}get consoleInputValue(){return this._consoleModel&&this._consoleModel.getValue()||""}showPreviousValue(){this._isReadonly||this.navigateHistory(!0)}showNextValue(){this._isReadonly||this.navigateHistory(!1)}async runExecute(){if(!this.inputEditor)return;const D=this.inputEditor.monacoEditor,I=D.getValue();await this.consoleModel.execute(I),this.history.add(I),D.setValue("")}navigateHistory(D){const I=D?this.history.previous():this.history.next();if(I&&this.inputEditor&&this.inputEditor.monacoEditor){const{monacoEditor:O}=this.inputEditor;O.setValue(I),O.setPosition({lineNumber:1,column:I.length+1})}}get consoleInputUri(){return new p.URI("debug/console/input").withScheme(p.Schemes.walkThroughSnippet)}async createConsoleInput(){var D;if(!(!((D=this.inputEditor)===null||D===void 0)&&D.monacoEditor))return;const{monacoEditor:I}=this.inputEditor,M=(await this.documentService.createModelReference(this.consoleInputUri)).instance.getMonacoModel();M.updateOptions({tabSize:2}),this._consoleModel=M,I.setModel(M),setTimeout(()=>{this.layoutBody()},0),I.onDidFocusEditorText(()=>{this.contextInDebugRepl.set(!0),this.updateInputDecoration()}),I.onDidBlurEditorText(()=>{this.contextInDebugRepl.set(!1),this.updateInputDecoration()}),I.onDidChangeModelContent(()=>{const R=I.getModel().getLineCount();this.layoutBody(R*18)}),this.manager.onDidChangeActiveDebugSession(()=>{this.registerCompletion(),this.setMode()}),await this.updateInputDecoration()}layoutBody(D,I){var O;if(!this.inputEditor)return;const{monacoEditor:M}=this.inputEditor,R=Math.max(D||b,M.getContentHeight());M.layout({width:I||((O=this._consoleInputElement)===null||O===void 0?void 0:O.offsetWidth),height:R}),this._onInputHeightChange.fire(R)}updateReadOnly(D){this.inputEditor&&this.inputEditor.monacoEditor.updateOptions({readOnly:D})}async updateInputDecoration(){if(!this.inputEditor)return;const D=[];if(this._isReadonly&&this.inputEditor.monacoEditor.hasTextFocus()&&!this.inputEditor.monacoEditor.getValue()){const I=(0,a.transparent)(a.editorForeground,.4)(await this.themeService.getCurrentTheme());D.push({range:{startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:1},renderOptions:{after:{contentText:(0,c.localize)("debug.console.input.placeholder"),color:I?I.toString():void 0}}})}this.inputEditor.monacoEditor.setDecorationsByType("debug-console-input",l,D)}setMode(){var D;if(!this.inputEditor)return;const I=this.manager.currentSession;if(!I)return;const O=I.currentEditor();O&&this.inputEditor.monacoEditor.getModel().setLanguage((D=O.getModel())===null||D===void 0?void 0:D.getLanguageId())}registerDecorationType(){this.overrideServicesRegistry.getRegisteredService(c.ServiceNames.CODE_EDITOR_SERVICE).registerDecorationType("console-input-decoration",l,{})}registerCompletion(){var D;this._updateDisposable&&(this._updateDisposable.dispose(),this._updateDisposable=null);const I=this.manager.currentSession;if(!I)return;const O=I.currentEditor();O&&(this._updateDisposable=f.monaco.languages.registerCompletionItemProvider((D=O.getModel())===null||D===void 0?void 0:D.getLanguageId(),{_debugDisplayName:"DebugConsoleCompletionProvider",triggerCharacters:["."],provideCompletionItems:async(M,R,P)=>{var k;if(!(!((k=this.manager.currentSession)===null||k===void 0)&&k.capabilities.supportsCompletionsRequest))return;if(M.uri.toString()!==this.consoleInputUri.toString())return null;const F=this.manager.currentSession,{triggerCharacter:L}=P;let N=M.getWordAtPosition(R);if(N&&F){const{word:j,startColumn:W,endColumn:U}=N;return{suggestions:(await F.sendRequest("completions",{text:j,column:U,frameId:F.currentFrame&&F.currentFrame.raw.id})).body.targets.map(V=>({label:V.label,insertText:V.text||V.label,sortText:V.sortText,kind:s.languages.CompletionItemKind[S(V.type||"property")],range:{startLineNumber:R.lineNumber,endLineNumber:R.lineNumber,startColumn:W,endColumn:U}}))}}if(N=M.getWordAtPosition({lineNumber:R.lineNumber,column:R.column-1}),N&&F&&L){const{word:j,endColumn:W}=N;return{suggestions:(await F.sendRequest("completions",{text:j+L,column:W+1,frameId:F.currentFrame&&F.currentFrame.raw.id})).body.targets.map(X=>({label:X.label,insertText:X.text||X.label,sortText:X.sortText,kind:s.languages.CompletionItemKind[S(X.type||"property")],range:{startLineNumber:R.lineNumber,endLineNumber:R.lineNumber,startColumn:W+1,endColumn:W+1}}))}}return null}}))}disable(){var D,I;this._updateDisposable&&(this._updateDisposable.dispose(),this._updateDisposable=null),(D=this.inputEditor)===null||D===void 0||D.monacoEditor.setValue(""),(I=this.inputEditor)===null||I===void 0||I.monacoEditor.setModel(null)}};t.DebugConsoleService=w,w.keySet=new Set([u.CONTEXT_IN_DEBUG_MODE_KEY]),r.__decorate([(0,o.Autowired)(u.IDebugConsoleModelService),r.__metadata("design:type",g.DebugConsoleModelService)],w.prototype,"debugConsoleModelService",void 0),r.__decorate([(0,o.Autowired)(_.IMainLayoutService),r.__metadata("design:type",Object)],w.prototype,"mainLayoutService",void 0),r.__decorate([(0,o.Autowired)(m.IEditorDocumentModelService),r.__metadata("design:type",Object)],w.prototype,"documentService",void 0),r.__decorate([(0,o.Autowired)(v.EditorCollectionService),r.__metadata("design:type",v.EditorCollectionService)],w.prototype,"editorService",void 0),r.__decorate([(0,o.Autowired)(p.CommandRegistry),r.__metadata("design:type",Object)],w.prototype,"commands",void 0),r.__decorate([(0,o.Autowired)(c.IContextKeyService),r.__metadata("design:type",Object)],w.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(u.IDebugSessionManager),r.__metadata("design:type",d.DebugSessionManager)],w.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(a.IThemeService),r.__metadata("design:type",Object)],w.prototype,"themeService",void 0),r.__decorate([(0,o.Autowired)(c.MonacoOverrideServiceRegistry),r.__metadata("design:type",c.MonacoOverrideServiceRegistry)],w.prototype,"overrideServicesRegistry",void 0),r.__decorate([(0,o.Autowired)(c.StorageProvider),r.__metadata("design:type",Function)],w.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],w.prototype,"injector",void 0),t.DebugConsoleService=w=n=r.__decorate([(0,o.Injectable)()],w)},5131:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_CONSOLE_TREE_FIELD_NAME=t.DEBUG_CONSOLE_TREE_NODE_HEIGHT=t.DebugConsoleRenderedNode=t.DebugConsoleView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(97267),p=e(41869),v=e(43718),m=e(72260),_=e(64582),s=e(58542),f=e(5905),a=e(16170),h=e(1276),u=n.__importDefault(e(80315)),d=e(35199),E=({viewState:l})=>{const y=(0,p.useInjectable)(d.DebugConsoleService),b=(0,p.useInjectable)(h.DebugConsoleFilterService),S=(0,p.useInjectable)(p.PreferenceService),{consoleModel:A}=y,{height:w,width:T}=l,[D,I]=o.default.useState(),[O,M]=o.default.useState(26),[R,P]=o.default.useState(""),[k,F]=o.default.useState(!0),L=o.default.useRef(null),N=o.default.useRef(null),j=(0,p.useInjectable)(m.IMainLayoutService),W=(0,p.useDesignStyles)(u.default.debug_console_output,"debug_console_output"),U=(0,p.useDesignStyles)(u.default.variable_repl_bar,"variable_repl_bar");o.default.useEffect(()=>{if(L&&L.current){const ne=j.getTabbarHandler(_.DEBUG_CONSOLE_CONTAINER_ID);if(ne?.isActivated())y.init(L.current);else{const he=ne?.onActivate(()=>{y.init(L.current),he?.dispose()})}}},[L.current]),o.default.useEffect(()=>{const ne=new v.Disposable;return ne.addDispose(A.onDidUpdateTreeModel(async he=>{he&&await he.treeModel.ensureReady,I(he)})),ne.addDispose(b.onDidValueChange(he=>{P(he)})),ne.addDispose(y.onInputHeightChange(he=>{M(he)})),ne.addDispose(S.onSpecificPreferenceChange("debug.console.wordWrap",he=>{const{newValue:_e}=he;F(_e)})),F(!!S.get("debug.console.wordWrap",k)),()=>{A.removeNodeDecoration(),ne.dispose()}},[]);const X=ne=>{A.handleTreeHandler({...ne,getModel:()=>D?.treeModel,hasDirectFocus:()=>N.current===document.activeElement})},V=(ne,he,_e)=>{const q=window.getSelection();q&&q.type==="Range"&&q.rangeCount>0&&ne.stopPropagation();const{handleTwistierClick:Re}=A;he&&Re(he,_e)},$=(ne,he)=>{const{handleContextMenu:_e}=A;_e(ne,he)},Y=ne=>{const{handleContextMenu:he}=A;he(ne)},G=ne=>{const{enactiveNodeDecoration:he}=A;he(),y.focusInput()},H=ne=>{const{enactiveNodeDecoration:he}=A;he()},K=()=>"filter",Z=()=>({pre:"<match>",post:"</match>",extract:ne=>ne.description?ne.description:ne.name}),Q=o.default.useCallback(ne=>{const he=A.decorations.getDecorations(ne.item);return o.default.createElement(t.DebugConsoleRenderedNode,{item:ne.item,itemType:ne.itemType,decorations:he,filterValue:R,filterMode:K(),onClick:V,onTwistierClick:V,onContextMenu:$,defaultLeftPadding:14,isWordWrap:k,leftPadding:8})},[D,R,k]),oe=()=>D?o.default.createElement(c.RecycleTree,{height:Math.max(w-O,26),width:T,itemHeight:t.DEBUG_CONSOLE_TREE_NODE_HEIGHT,onReady:X,overScanCount:10,filter:K()==="filter"?R:"",filterProvider:{fuzzyOptions:Z,filterAlways:!0},model:D.treeModel,overflow:"auto",supportDynamicHeights:k},Q):null;return o.default.createElement("div",{className:u.default.debug_console,onContextMenu:Y,onClick:G},o.default.createElement("div",{className:W,tabIndex:-1,onBlur:H,ref:N,"data-name":t.DEBUG_CONSOLE_TREE_FIELD_NAME},oe()),o.default.createElement("div",{className:U,style:{maxHeight:w-26+"px"}},o.default.createElement("div",{className:u.default.variable_repl_bar_icon},o.default.createElement("span",{className:(0,p.getIcon)("right")})),o.default.createElement("div",{className:u.default.variable_repl_editor,ref:L})))};t.DebugConsoleView=E;const g=({item:l,decorations:y,defaultLeftPadding:b,leftPadding:S,filterMode:A,filterValue:w,onClick:T,onTwistierClick:D,onContextMenu:I,isWordWrap:O,itemType:M})=>{const R=(0,p.useInjectable)(h.DebugConsoleFilterService),P=(0,p.useInjectable)(s.LinkDetector),[k,F]=o.default.useState(),L=(0,p.useDesignStyles)(u.default.expansion_toggle,"expansion_toggle");o.default.useEffect(()=>{const Q=window.getComputedStyle(a.AnsiConsoleNode.is(l)?l.el:P.linkify(l.description),null),oe=`${Q.fontStyle} ${Q.fontWeight} ${Q.fontSize}/${Q.lineHeight} ${Q.fontFamily}`;F(oe)},[l]);const N=Q=>{T(Q,l,c.CompositeTreeNode.is(l)?c.TreeNodeType.CompositeTreeNode:c.TreeNodeType.TreeNode)},j=Q=>{Q.nativeEvent.which!==0&&(M===c.TreeNodeType.TreeNode||M===c.TreeNodeType.CompositeTreeNode)&&I&&I(Q,l,M)},W=()=>a.AnsiConsoleNode.is(l)?"":(a.DebugConsoleNode.is(l)?"":l.name)+(l.description&&!a.DebugConsoleNode.is(l)?": ":""),U=(Q,oe)=>f.CharWidthReader.getInstance().getCharWidth(Q,oe),X=o.default.useCallback(()=>{if(!k)return;const Q=W()+l.description,oe=R.findMatches(Q||""),ne=ve=>Number(ve.toFixed(4)),he=(ve,ie)=>Array.from({length:ie},(fe,Me)=>Me).reduce((fe,Me)=>fe+ne(U(Q.charAt(ve+Me),k)),0),_e=new Map,q=(ve,ie)=>{if(ve>0){const fe=(Le,Ce,Se)=>Array.from({length:Le-Ce},(Ee,ge)=>Ce+ge).reduce((Ee,ge)=>ne(Ee+U(Q.charAt(ge),k)),Se);let Me;if(ie!==0&&_e.has(oe[ie].startIndex)){const Le=_e.get(oe[ie].startIndex);Me=fe(ve,Le.startIndex,Le.left)}else Me=fe(ve,0,0);return _e.set(ve,{startIndex:ve,left:Me}),Me}return 0};return oe.map((ve,ie)=>({height:16,top:3,width:he(ve.startIndex,ve.count),left:q(ve.startIndex,Math.max(0,ie-1))})).map(ve=>o.default.createElement("div",{key:ve.left,className:u.default.block,style:ve}))},[w,k]),V=Q=>a.AnsiConsoleNode.is(Q)||Q instanceof a.DebugConsoleNode&&Q.variablesReference===0?null:o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,!a.DebugConsoleNode.is(Q)&&u.default.debug_console_node_displayname,u.default.debug_console_variable,l.description?u.default.name:u.default.info)},o.default.createElement(a.TreeWithLinkWrapper,{html:P.linkify(W())})),$=Q=>{const oe=/^true|false$/i,ne=/^(['"]).*\1$/,he=Q.description||"",_e=[u.default.debug_console_variable];return a.AnsiConsoleNode.is(Q)?o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,u.default.debug_console_node_displayname)},Q.template()):(l.variableType==="number"||l.variableType==="boolean"||l.variableType==="string"?_e.push(u.default[l.variableType]):isNaN(+he)?oe.test(he)?_e.push(u.default.boolean):ne.test(he)&&_e.push(u.default.string):_e.push(u.default.number),o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment_grow,u.default.debug_console_node_description,..._e)},o.default.createElement(a.TreeWithLinkWrapper,{html:P.linkify(he)})))},Y=()=>o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,u.default.debug_console_node_tail)},G()),G=()=>{var Q,oe,ne;return a.AnsiConsoleNode.is(l)?o.default.createElement("div",{className:u.default.debug_console_node_status,title:(Q=l.source)===null||Q===void 0?void 0:Q.path},!((oe=l.source)===null||oe===void 0)&&oe.name?`${(ne=l.source)===null||ne===void 0?void 0:ne.name}:${l.line}`:""):o.default.createElement("div",{className:u.default.debug_console_node_status},l.badge)},H=()=>l.tooltip,K=(Q,oe)=>{const ne=he=>{oe(he,Q,M)};return y&&y?.classlist.indexOf(u.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,L)},o.default.createElement(c.Loading,null)):Q instanceof a.DebugConsoleNode&&Q.variablesReference===0?null:o.default.createElement("div",{onClick:ne,className:(0,r.default)(u.default.debug_console_node_segment,L,(0,p.getIcon)("right"),{[`${u.default.mod_collapsed}`]:!Q.expanded})})},Z=Q=>{if(c.CompositeTreeNode.is(Q))return K(Q,D)};return o.default.createElement("div",{key:l.id,onClick:N,onContextMenu:j,title:H(),className:(0,r.default)(u.default.debug_console_node,y?y.classlist:null),style:{paddingLeft:`${(b||8)+(l.depth||0)*(S||0)}px`},"data-id":l.id},o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_content)},Z(l),o.default.createElement("div",{className:u.default.debug_console_node_overflow_wrap,style:{whiteSpace:O?"pre-wrap":"nowrap",cursor:l instanceof a.DebugVariableContainer?"pointer":"initial"}},V(l),$(l)),Y()),o.default.createElement("div",{className:u.default.debug_console_selection},A==="matcher"&&X()))};t.DebugConsoleRenderedNode=g,t.DEBUG_CONSOLE_TREE_NODE_HEIGHT=22,t.DEBUG_CONSOLE_TREE_FIELD_NAME="DEBUG_CONSOLE_TREE_FIELD"},32756:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugViewModel=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(26296),p=e(38029);let v=class{constructor(){this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.onDidChangeBreakpointsEmitter=new o.Emitter,this.onDidChangeBreakpoints=this.onDidChangeBreakpointsEmitter.event,this.toDispose=new o.DisposableCollection(this.onDidChangeEmitter,this.onDidChangeBreakpointsEmitter),this._sessions=new Set}fireDidChange(){this.onDidChangeEmitter.fire(void 0)}fireDidChangeBreakpoints(_){this.onDidChangeBreakpointsEmitter.fire(_)}get sessions(){return this._sessions.values()}get sessionCount(){return this._sessions.size}push(_){this._sessions.has(_)||(this._sessions.add(_),this.fireDidChange())}delete(_){return this._sessions.delete(_)?(this.fireDidChange(),!0):!1}get session(){return this.sessions.next().value}get id(){return this.session&&this.session.id||"-1"}get label(){return this.session&&this.session.label||"Unknown Session"}has(_){return!!_&&this._sessions.has(_)}init(_){_&&this.push(_),this.toDispose.push(this.manager.onDidChangeActiveDebugSession(({previous:s,current:f})=>{this.has(s)&&!this.has(f)&&this.fireDidChange()})),this.toDispose.push(this.manager.onDidChange(s=>{this.has(s)&&this.fireDidChange()})),this.toDispose.push(this.manager.onDidDestroyDebugSession(s=>{this.has(s)&&this.fireDidChange()}))}dispose(){this.toDispose.dispose()}get threads(){if(this.manager.currentSession)return this.manager.currentSession.getThreads(()=>!0)}get currentSession(){const{currentSession:_}=this.manager;return this.has(_)&&_||this.session}set currentSession(_){this.manager.updateCurrentSession(_)}get state(){const{currentSession:_}=this;return _&&_.state||c.DebugState.Inactive}get currentThread(){const{currentSession:_}=this;return _&&_.currentThread}get currentFrame(){const{currentThread:_}=this;return _&&_.currentFrame}async start(){const{session:_}=this;if(!_)return;const s=await this.manager.start(_.options);s&&(this._sessions.delete(_),this._sessions.add(s),this.fireDidChange())}async restart(){const{currentSession:_}=this;if(!_)return;const s=await this.manager.restart(_);s!==_&&(this._sessions.delete(_),this._sessions.add(s)),this.fireDidChange()}report(_,s,f){return this.manager.report(_,s,f)}reportTime(_,s){return this.manager.reportTime(_,s)}reportAction(_,s,f){return this.manager.reportAction(_,s,f)}};t.DebugViewModel=v,n.__decorate([(0,r.Autowired)(c.IDebugSessionManager),n.__metadata("design:type",p.DebugSessionManager)],v.prototype,"manager",void 0),t.DebugViewModel=v=n.__decorate([(0,r.Injectable)()],v)},36120:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackFramesView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(64582),m=e(50755),_=n.__importDefault(e(12920)),s=e(85294),f=a=>{const{viewState:h,frames:u,thread:d,indent:E=0,session:g,isBottom:l}=a,[y,b]=(0,o.useState)(),[S,A]=(0,o.useState)(!1),[w,T]=(0,o.useState)([]),[D,I]=(0,o.useState)(""),[O,M]=(0,o.useState)(!1),R=(0,p.useInjectable)(v.IDebugSessionManager),P=(0,o.useRef)([]),k=(0,p.useInjectable)(s.DebugCallStackService),F=(0,o.useCallback)(async()=>{var H,K;if(!d)return;const Z=typeof((H=d.stoppedDetails)===null||H===void 0?void 0:H.totalFrames)=="number"?((K=d.stoppedDetails)===null||K===void 0?void 0:K.totalFrames)-d.frameCount:void 0,Q=await d.fetchFrames(Z);W(Q)},[w]),L=H=>{H&&H.source&&H.source.open({},H)},N=(0,o.useCallback)(H=>{const K=P.current.slice(0);let Z=-1;H.nextFrame?Z=K.findIndex(Q=>{var oe;return m.DebugStackFrame.is(Q)&&Q.id===((oe=H.nextFrame)===null||oe===void 0?void 0:oe.id)}):Z=K.length,Z>-1&&(K.splice(Z-1,1,...H.frames),P.current=K,T(K))},[P.current]),j=(0,o.useCallback)((H,K)=>{var Z,Q,oe,ne;const he=K.length;let _e=-1,q=H.length>0?H[H.length+_e]:void 0;for(;q&&!m.DebugStackFrame.is(q);)_e-=1,q=H[H.length+_e];const Re=H.slice(0,H.length+_e+1),ve=q?K.findIndex(Le=>Le.id===q?.id)+1:0;let ie=[],fe,Me=!1;for(let Le=ve;Le<he;Le++)if(!((Z=K[Le].source)===null||Z===void 0)&&Z.raw.origin)if(Me)if(fe===((Q=K[Le].source)===null||Q===void 0?void 0:Q.raw.origin)){ie.push(K[Le]);continue}else ie.length>1?(Re.push(new m.ShowMoreDebugStackFrame(K[Le],ie,g,fe,N)),_e-=ie.length-1):Re.push(ie[0]),ie=[],Me=!1,fe=(oe=K[Le].source)===null||oe===void 0?void 0:oe.raw.origin,ie.push(K[Le]);else Me=!0,ie.push(K[Le]),fe=(ne=K[Le].source)===null||ne===void 0?void 0:ne.raw.origin;else Me&&ie.length>0&&(ie.length>1?(Re.push(new m.ShowMoreDebugStackFrame(K[Le],ie,g,fe,N)),_e-=ie.length-1):Re.push(ie[0]),ie=[],Me=!1),Re.push(K[Le]);return Me&&ie.length>0&&(ie.length>1?Re.push(new m.ShowMoreDebugStackFrame(void 0,ie,g,fe,N)):Re.push(ie[0])),Re},[]),W=(0,o.useCallback)(H=>{P.current=j(P.current,H),T(P.current)},[w,j]),U=(0,o.useCallback)(H=>{b(H)},[y]);(0,o.useEffect)(()=>{W([...u]);const H=new p.DisposableCollection;return H.push(R.onDidChangeActiveDebugSession(({previous:K})=>{K&&K!==d.session&&U(void 0)})),()=>{H.dispose()}},[]),(0,o.useEffect)(()=>{if(d){const H=d.frames.find(K=>!!K.source);H&&(U(H.raw.id),L(H))}},[d.frameCount]),(0,o.useEffect)(()=>{if(d)if(d.stoppedDetails){const{framesErrorMessage:H,totalFrames:K}=d.stoppedDetails;I(H||""),K&&K>d.frameCount?M(!0):M(!1)}else M(!1);else M(!1)},[w]);const X=({data:H})=>{var K,Z;const Q=H,oe=m.DebugStackFrame.is(Q)&&Q.raw.presentationHint==="label",ne=m.DebugStackFrame.is(Q)&&Q.raw.presentationHint==="subtle",he=m.DebugStackFrame.is(Q)&&((Z=(K=Q.raw)===null||K===void 0?void 0:K.source)===null||Z===void 0?void 0:Z.presentationHint)==="deemphasize",_e=(0,o.useCallback)(()=>{if(!(oe||ne)){if(!m.DebugStackFrame.is(Q)){Q.open();return}R.updateCurrentSession(Q.session),Q.session.currentThread=Q.thread,U(Q.raw.id),L(Q)}},[H]),q=ie=>{ie.preventDefault(),ie.stopPropagation(),m.DebugStackFrame.is(Q)&&Q.canRestart&&Q.restart()},Re={paddingLeft:`${E}px`};m.DebugStackFrame.is(Q)&&he&&(Re.color="var(--list-deemphasizedForeground)");const ve=(0,o.useCallback)(ie=>m.DebugStackFrame.is(ie)?o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:(0,r.default)(_.default.debug_stack_frames_item_label,oe&&_.default.label,ne&&_.default.subtle)},ie.raw&&ie.raw.name),!oe&&o.default.createElement("span",{className:_.default.debug_stack_frames_item_description},ie.raw&&ie.raw.source&&ie.raw.source.name||(0,p.localize)("debug.stack.frame.noSource")),o.default.createElement(o.default.Fragment,null,ie.canRestart&&o.default.createElement("a",{title:"",onClick:fe=>q(fe),className:(0,r.default)(_.default.debug_restart_frame_icon,(0,p.getIcon)("debug-restart-frame"))}),!oe&&!he&&o.default.createElement("div",{className:(0,r.default)(!(0,p.isUndefined)(ie.raw.line)&&_.default.debug_stack_frames_item_badge)},ie.raw&&ie.raw.line,!(0,p.isUndefined)(ie.raw.line)&&":",ie.raw&&ie.raw.column))):o.default.createElement("span",{className:_.default.debug_stack_frames_load_more},ie.name),[]);return o.default.createElement("div",{style:Re,className:(0,r.default)(_.default.debug_stack_frames_item,oe&&_.default.is_label,m.DebugStackFrame.is(Q)&&y===Q.raw.id&&_.default.selected,m.DebugStackFrame.is(Q)&&!(Q.raw&&Q.raw.source&&Q.raw.source.name)&&_.default.debug_stack_frames_item_hidden),onClick:_e,onContextMenu:ie=>k.handleContextMenu(ie,H)},ve(Q))},V=(0,o.useCallback)(()=>{const H=async()=>{A(!0),await F(),A(!1)};return o.default.createElement("div",{className:_.default.debug_stack_frames_item,onClick:H},o.default.createElement("span",{className:_.default.debug_stack_frames_load_more},(0,p.localize)("debug.stack.loadMore")))},[S,F]),$=(0,o.useCallback)(()=>o.default.createElement("div",{className:_.default.debug_stack_frames_item},o.default.createElement("span",{className:_.default.debug_stack_frames_load_more},(0,p.localize)("debug.stack.loading"))),[]),Y=(0,o.useCallback)(H=>o.default.createElement("div",{className:_.default.debug_stack_frames_item},o.default.createElement("span",{className:_.default.debug_stack_frames_error_message,title:H},H)),[]);if(D)return o.default.createElement("div",{className:_.default.debug_stack_frames},Y(D));const G=(0,o.useCallback)(()=>S?$():O?V():null,[S,O]);return o.default.createElement(c.RecycleList,{data:w,template:X,itemHeight:22,width:h.width,height:(S||O?(w.length+1)*22:w.length*22)+(l?10:0),footer:S||O?G:void 0})};t.DebugStackFramesView=f},75651:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackSessionView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),p=e(64582),v=e(8701),m=n.__importDefault(e(12920)),_=e(61520),s=e(85294),f=a=>{const{session:h,viewState:u}=a,d=(0,c.useInjectable)(p.IDebugSessionManager),E=(0,c.useInjectable)(s.DebugCallStackService),[g,l]=(0,o.useState)([]),[y,b]=(0,o.useState)([]),[S,A]=(0,o.useState)([]),[w,T]=(0,o.useState)([]),[D,I]=(0,o.useState)(!0),[O,M]=(0,o.useState)(!1),[R,P]=(0,o.useState)(!0),k=d.sessions.length>1,F=h.supportsThreadIdCorrespond,L=(0,o.useRef)(!1),N=()=>{var $,Y;const G=d.sessions.filter(K=>K.parentSession),H=[];for(;G[0];)((Y=d.getSession(($=G[0].parentSession)===null||$===void 0?void 0:$.id))===null||Y===void 0?void 0:Y.id)===h.id&&H.push(G[0]),G.shift();return H},j=async()=>{P(!0);const $=await h.fetchThreads();P(!1),b($)};(0,o.useEffect)(()=>{const $=new c.DisposableCollection;return $.push(d.onDidCreateDebugSession(()=>{if(L.current)return;const Y=N();T(Y)})),$.push(d.onDidDestroyDebugSession(()=>{if(L.current)return;const Y=N();T(Y)})),()=>{L.current=!0,$.dispose()}},[]);const W=(0,o.useCallback)($=>{l($)},[g]),U=(0,o.useCallback)($=>{A($)},[S]);(0,o.useEffect)(()=>{W(Array.from(h.threads));const $=new c.DisposableCollection;return $.push(h.onDidChange(()=>{W([...h.threads])})),$.push(h.onDidThread(async({body:{reason:Y}})=>{h.supportsThreadIdCorrespond&&h.state===p.DebugState.Stopped&&Y==="started"&&await j()})),$.push(h.onDidStop(async()=>{if(!h.supportsThreadIdCorrespond)return;const Y=Array.from(h.multipleThreadPaused.values());U(Y),await j()})),$.push(h.onDidContinued(async()=>{if(!h.supportsThreadIdCorrespond)return;const Y=Array.from(h.multipleThreadPaused.values());U(Y)})),()=>{$.dispose()}},[]);const X=()=>{if(h.state!==p.DebugState.Stopped)return null;if(F&&D)return R?o.default.createElement("div",{className:m.default.debug_stack_item_loading},o.default.createElement("span",null,(0,c.localize)("debug.stack.loading"))):y.map(($,Y)=>!h.hasInMultipleThreadPaused($.raw.id)&&o.default.createElement(v.DebugStackThreadView,{key:$.id,indent:k?16:0,viewState:u,thread:$,session:h,isBottom:Y===y.length-1}))};if(($=>{if($.threads.some(G=>G.frameCount>0))return!1;const Y=N();return!(Y.length!==1||!Y[0].compact)})(h)){const $=N();return o.default.createElement("div",{className:m.default.debug_stack_item},$.map(Y=>o.default.createElement(t.DebugStackSessionView,{key:Y.id,viewState:u,session:Y,indent:1})))}return o.default.createElement("div",{className:m.default.debug_stack_item,onContextMenu:$=>E.handleContextMenu($,h)},k&&o.default.createElement("div",{className:m.default.debug_stack_item_label,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1)},F||g.length>0?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:D?(0,c.getIcon)("arrow-down"):(0,c.getIcon)("arrow-right"),onClick:()=>I(!D)}),o.default.createElement("div",{className:(0,r.default)([(0,c.getIcon)("debug"),m.default.debug_session_icon])})):o.default.createElement("div",{style:{width:30}}),o.default.createElement("div",{className:m.default.debug_stack_item_label_title},h.label),O&&o.default.createElement(_.DebugStackOperationView,{session:h})),F&&D?S.map(($,Y)=>o.default.createElement(v.DebugStackThreadView,{key:$.id,indent:k?16:0,viewState:u,thread:$,session:h,isBottom:Y===S.length-1})):null,!F&&(!k||D)&&g.map(($,Y)=>o.default.createElement(v.DebugStackThreadView,{key:$.id,indent:k?16:0,viewState:u,thread:$,session:h,isBottom:Y===g.length-1})),w.length>0&&w.map($=>D&&o.default.createElement(t.DebugStackSessionView,{key:$.id,viewState:u,session:$,indent:1})),X())};t.DebugStackSessionView=f},8701:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackThreadView=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(97267),c=e(41869),p=e(64582),v=e(36120),m=n.__importDefault(e(12920)),_=e(61520),s=e(85294),f=a=>{var h;const{thread:u,viewState:d,indent:E,session:g,isBottom:l}=a,y=(0,c.useInjectable)(p.IDebugSessionManager),b=(0,c.useInjectable)(s.DebugCallStackService),[S,A]=(0,r.useState)(!0),[w,T]=(0,r.useState)(u.frames),D=y.sessions.length>1,I=!((h=y.currentSession)===null||h===void 0)&&h.supportsThreadIdCorrespond?!0:y.sessions.length>1||y.sessions[0]&&y.sessions[0].threadCount>1,O=(0,r.useCallback)(R=>{A(R)},[S]);(0,r.useEffect)(()=>{const R=new c.DisposableCollection;return R.push(g.onDidChangeCallStack(()=>{T(u.frames),u.stopped&&y.currentThread&&y.currentThread.id===u.id?O(!0):O(!1)})),()=>{R.dispose()}},[]);const M=u.stopped&&u.stoppedDetails?u.raw.id===u.stoppedDetails.threadId?`${(0,c.localize)("debug.stack.frame.because")} ${u.stoppedDetails.reason} ${(0,c.localize)("debug.stack.frame.stopped")}`:(0,c.localize)("debug.stack.frame.stopped"):(0,c.localize)("debug.stack.frame.running");return r.default.createElement("div",{className:m.default.debug_stack_item,onContextMenu:R=>b.handleContextMenu(R,u)},I&&r.default.createElement("div",{style:{paddingLeft:`${E}px`},className:m.default.debug_stack_item_label},u.frames.length>0?r.default.createElement("div",{className:S?(0,c.getIcon)("arrow-down"):(0,c.getIcon)("arrow-right"),onClick:()=>A(!S)}):r.default.createElement("div",{style:{width:14}}),r.default.createElement("div",{className:m.default.debug_threads_item},u.raw.name),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:m.default.debug_threads_operation},r.default.createElement(_.DebugStackOperationView,{thread:u})),r.default.createElement("span",{className:m.default.debug_threads_description},r.default.createElement(o.Badge,null,M.toUpperCase())))),(!I||S)&&u.frames.length>0&&r.default.createElement(v.DebugStackFramesView,{indent:I?D?38:30:8,isBottom:l,viewState:d,thread:u,frames:w,session:g}))};t.DebugStackThreadView=f},37243:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(64582),v=e(4983),m=e(26296),_=e(38029);function s(h){return h&&typeof h.sessionId=="string"&&typeof h.threadId=="string"&&typeof h.frameId=="string"}function f(h,u){if(s(u)){const d=h.getSession(u.sessionId);if(d){const E=[d.currentThread,...d.threads].find(g=>g.id===u.threadId);if(E)return E.frames.find(g=>g.id===u.frameId)}}}let a=class{registerCommands(u){u.registerCommand(p.DEBUG_COMMANDS.RESTART_FRAME,{execute:async(d,E)=>{const g=f(this.debugSessionManager,E);g&&await g.restart()}}),u.registerCommand(p.DEBUG_COMMANDS.COPY_STACK_TRACE,{execute:async(d,E)=>{const g=f(this.debugSessionManager,E);if(g){const l=g.thread.frames.map(y=>`${y.raw&&y.raw.name} (${y.raw&&y.raw.source&&y.raw.source.path}:${y.raw&&y.raw.line})`);this.clipboardService.writeText(l.join(`
|
|
30463
|
-
`))}}})}registerMenus(u){u.registerMenuItem(c.MenuId.DebugCallStackContext,{command:{id:p.DEBUG_COMMANDS.RESTART_FRAME.id,label:(0,o.localize)("debugger.menu.restartFrame")},when:`${v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame")} && ${v.CONTEXT_RESTART_FRAME_SUPPORTED.raw}`,enabledWhen:v.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.raw,order:10}),u.registerMenuItem(c.MenuId.DebugCallStackContext,{command:{id:p.DEBUG_COMMANDS.COPY_STACK_TRACE.id,label:(0,o.localize)("debugger.menu.copyCallstack")},when:v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame"),order:20})}};t.DebugCallStackContribution=a,n.__decorate([(0,r.Autowired)(m.IDebugSessionManager),n.__metadata("design:type",_.DebugSessionManager)],a.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(o.IClipboardService),n.__metadata("design:type",Object)],a.prototype,"clipboardService",void 0),t.DebugCallStackContribution=a=n.__decorate([(0,o.Domain)(c.MenuContribution,o.CommandContribution)],a)},61520:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackOperationView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(66498),p=e(96090),v=n.__importDefault(e(12920)),m=_=>{const{session:s,thread:f}=_,{doStop:a,doStepIn:h,doStepOut:u,doStepOver:d,doContinue:E,doRestart:g,doPause:l,updateCurrentSession:y}=(0,o.useInjectable)(p.DebugToolbarService);if(s&&!f){const b=S=>{y(s),S()};return r.default.createElement("div",{className:v.default.debug_stack_session_operations},r.default.createElement(c.DebugAction,{run:()=>b(g),icon:"reload",label:(0,o.localize)("debug.action.restart")}),r.default.createElement(c.DebugAction,{run:()=>b(a),icon:"stop",label:(0,o.localize)("debug.action.stop")}))}if(!s&&f){const{stopped:b}=f,S=w=>{f.session.currentThread=f,w()},A=w=>w?r.default.createElement(c.DebugAction,{run:()=>S(E),icon:"continue",label:(0,o.localize)("debug.action.continue")}):r.default.createElement(c.DebugAction,{run:()=>S(l),enabled:!0,icon:"pause",label:(0,o.localize)("debug.action.pause")});return r.default.createElement("div",{className:v.default.debug_stack_thread_operations},A(b),r.default.createElement(c.DebugAction,{run:()=>S(d),enabled:b,icon:"step",label:(0,o.localize)("debug.action.step-over")}),r.default.createElement(c.DebugAction,{run:()=>S(h),enabled:b,icon:"step-in",label:(0,o.localize)("debug.action.step-into")}),r.default.createElement(c.DebugAction,{run:()=>S(u),enabled:b,icon:"step-out",label:(0,o.localize)("debug.action.step-out")}))}return null};t.DebugStackOperationView=m},85294:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackService=void 0;const n=e(85608),r=e(76003),o=e(93899),c=e(50755),p=e(4983),v=e(17280),m=e(29539);let _=class{constructor(){this.handleContextMenu=(f,a)=>{this.stackFrameSupportsRestart.reset(),f.stopPropagation(),f.preventDefault(),a instanceof m.DebugSession?this.callStackItemType.set("session"):a instanceof c.DebugThread?this.callStackItemType.set("thread"):a instanceof c.DebugStackFrame?(this.callStackItemType.set("stackFrame"),this.stackFrameSupportsRestart.set(a.canRestart)):this.callStackItemType.reset();const{x:h,y:u}=f.nativeEvent,d=this.contextMenuService.createMenu({id:o.MenuId.DebugCallStackContext,contextKeyService:this.debugContextKey.contextKeyScoped}),E=d.getMergedMenuNodes();d.dispose();const g=()=>{var y;return a instanceof c.DebugStackFrame?!((y=a.source)===null||y===void 0)&&y.inMemory?a.source.raw.path||a.source.reference||a.source.name:a.source?a.source.uri.toString():"":a instanceof c.DebugThread||a instanceof m.DebugSession?a.id:""},l=()=>a instanceof c.DebugStackFrame?{sessionId:a.session.id,threadId:a.thread.id,frameId:a.id}:a instanceof c.DebugThread?{sessionId:a.session.id,threadId:a.id}:a instanceof m.DebugSession?{sessionId:a.id}:void 0;this.ctxMenuRenderer.show({anchor:{x:h,y:u},menuNodes:E,args:[g(),l()],contextKeyService:this.debugContextKey.contextKeyScoped})},this.stackFrameSupportsRestart||(this.stackFrameSupportsRestart=p.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.bind(this.debugContextKey.contextKeyScoped)),this.callStackItemType||(this.callStackItemType=p.CONTEXT_CALLSTACK_ITEM_TYPE.bind(this.debugContextKey.contextKeyScoped))}};t.DebugCallStackService=_,n.__decorate([(0,r.Autowired)(o.AbstractContextMenuService),n.__metadata("design:type",o.AbstractContextMenuService)],_.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(o.ICtxMenuRenderer),n.__metadata("design:type",o.ICtxMenuRenderer)],_.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(v.DebugContextKey),n.__metadata("design:type",v.DebugContextKey)],_.prototype,"debugContextKey",void 0),t.DebugCallStackService=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},18028:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(64582),p=e(75651),v=n.__importDefault(e(12920)),m=({viewState:_})=>{const s=(0,o.useInjectable)(c.IDebugSessionManager),[f,a]=r.default.useState([]);return r.default.useEffect(()=>{const h=s.onDidStartDebugSession(d=>{f.push(d),a([...f])}),u=s.onDidDestroyDebugSession(d=>{const E=f.findIndex(g=>g.id===d.id);f.splice(E,1),a([...f])});return()=>{h.dispose(),u.dispose()}},[]),r.default.createElement("div",{className:v.default.call_stack_wrapper},f.filter(h=>!h.parentSession).map(h=>r.default.createElement(p.DebugStackSessionView,{key:h.id,viewState:_,session:h,indent:0})))};t.DebugCallStackView=m},59334:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModel=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(98650);let m=n=class extends c.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(c.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugVariablesModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugVariablesModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},30865:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModelService=void 0;const r=e(85608),o=r.__importDefault(e(46343)),c=e(76003),p=e(97267),v=e(41869),m=e(93899),_=e(98650),s=e(32756),f=e(17280),a=e(59334),h=r.__importDefault(e(57259));class u{constructor(){this._keepExpandedScopesMap=new Map}getMirrorScope(g){return Array.from(this._keepExpandedScopesMap.keys()).find(l=>(0,o.default)(l,g.getRawScope()))}set(g){const l=g.getRawScope();if(l){const y=this.getMirrorScope(g);if(y){const b=this._keepExpandedScopesMap.get(y);let S;g.expanded?S=Array.from(new Set([...b,g.variablesReference])):S=b.filter(A=>A!==g.variablesReference),this._keepExpandedScopesMap.set(y,S)}else this._keepExpandedScopesMap.set(l,g.expanded?[g.variablesReference]:[])}}get(g){const l=this.getMirrorScope(g);return l?this._keepExpandedScopesMap.get(l)||[]:[]}clear(){this._keepExpandedScopesMap.clear()}}let d=n=class{constructor(){this.selectedDecoration=new p.Decoration(h.default.mod_selected),this.focusedDecoration=new p.Decoration(h.default.mod_focused),this.contextMenuDecoration=new p.Decoration(h.default.mod_actived),this.loadingDecoration=new p.Decoration(h.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new v.Emitter,this.onDidUpdateTreeModelEmitter=new v.Emitter,this.flushDispatchChangeDelayer=new v.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new v.DisposableCollection,this.keepExpandedScopesModel=new u,this.activeNodeDecoration=(g,l=!0)=>{var y;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),g){if(this.selectedNodes.length>0)for(const b of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(b);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(g),this.focusedDecoration.addTarget(g),this._focusedNode=g,this._selectedNodes=[g],l&&((y=this.treeModel)===null||y===void 0||y.dispatchChange())}},this.activeNodeActivedDecoration=g=>{var l;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(g),this._contextMenuNode=g,(l=this.treeModel)===null||l===void 0||l.dispatchChange()},this.enactiveNodeDecoration=()=>{var g;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(g=this.treeModel)===null||g===void 0||g.dispatchChange()},this.handleContextMenu=(g,l)=>{var y;if(g.stopPropagation(),g.preventDefault(),!l||l instanceof _.DebugScope){this.enactiveNodeDecoration(),this.debugContextKey.contextVariableEvaluateNamePresent.set(!1);return}this._currentVariableInternalContext=l;const{x:b,y:S}=g.nativeEvent;l&&(this.activeNodeActivedDecoration(l),this.debugContextKey.contextDebugProtocolVariableMenu.set(l.variableMenuContext),this.debugContextKey.contextVariableEvaluateNamePresent.set(!!l.evaluateName)),!((y=l.session)===null||y===void 0)&&y.capabilities.supportsReadMemoryRequest&&l.memoryReference!==void 0?this.debugContextKey.contextCanViewMemory.set(!0):this.debugContextKey.contextCanViewMemory.set(!1);const A=this.contextMenuService.createMenu({id:m.MenuId.DebugVariablesContext,contextKeyService:this.debugContextKey.contextKeyScoped}),w=A.getMergedMenuNodes();A.dispose(),this.ctxMenuRenderer.show({anchor:{x:b,y:S},menuNodes:w,args:[l.toDebugProtocolObject()]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=g=>{this.activeNodeDecoration(g)},this.handleTwistierClick=(g,l)=>{l===p.TreeNodeType.CompositeTreeNode?(this.activeNodeDecoration(g,!1),this.toggleDirectory(g)):this.activeNodeDecoration(g)},this.toggleDirectory=async g=>{g.expanded?g.setCollapsed():await g.setExpanded(!0),this.keepExpandedScopesModel.set(g)},this.listenViewModelChange()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugVariablesTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get currentVariableInternalContext(){return this._currentVariableInternalContext}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenViewModelChange(){this.viewModel.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{var g,l;if(this.viewModel&&this.viewModel.currentSession&&!this.viewModel.currentSession.terminated){const y=await this.initTreeModel(this.viewModel.currentSession);this._activeTreeModel=y,await((g=this._activeTreeModel)===null||g===void 0?void 0:g.ensureReady);const b=((l=this._activeTreeModel)===null||l===void 0?void 0:l.root.children)||[];if(b.length>0&&b.every(A=>!A.expanded))for(const A of b)A.getRawScope().expensive===!1&&!A.expanded&&await this.toggleDirectory(A);const S=async A=>{for(const w of A)this.keepExpandedScopesModel.get(w).includes(w.variablesReference)&&(await w.setExpanded(!0),Array.isArray(w.children)&&await S(w.children))};b.forEach(async A=>{Array.isArray(A.children)&&await S(A.children)})}else this._activeTreeModel=void 0,this.keepExpandedScopesModel.clear();this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel)})})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(p.TreeNodeEvent.WillResolveChildren,g=>{this.loadingDecoration.addTarget(g)})),this.disposableCollection.push(this.treeModel.root.watcher.on(p.TreeNodeEvent.DidResolveChildren,g=>{this.loadingDecoration.removeTarget(g)})))}async initTreeModel(g){const l=new _.DebugVariableRoot(g);if(l)return this._activeTreeModel=this.injector.get(a.DebugVariablesModel,[l]),this.initDecorations(l),this.listenTreeViewChange(),this._activeTreeModel}initDecorations(g){this._decorations=new p.DecorationsManager(g),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.loadingDecoration),this.decorations.removeDecoration(this.contextMenuDecoration))}handleTreeHandler(g){this._debugVariablesTreeHandle={...g,getModel:()=>this.treeModel}}async copyEvaluateName(g){g&&await this.clipboardService.writeText(g.evaluateName)}async copyValue(g){if(!g)return;const y=await(async()=>{if(g.session&&g.session.capabilities.supportsValueFormattingOptions)try{const{variable:{evaluateName:b}}=g;if(b){const S=await g.session.evaluate(b,"clipboard");if(S)return S.result}return""}catch{return""}else return g.value})();y&&await this.clipboardService.writeText(y)}};t.DebugVariablesModelService=d,d.DEFAULT_TRIGGER_DELAY=200,r.__decorate([(0,c.Autowired)(c.INJECTOR_TOKEN),r.__metadata("design:type",c.Injector)],d.prototype,"injector",void 0),r.__decorate([(0,c.Autowired)(m.ICtxMenuRenderer),r.__metadata("design:type",m.ICtxMenuRenderer)],d.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,c.Autowired)(m.AbstractContextMenuService),r.__metadata("design:type",m.AbstractContextMenuService)],d.prototype,"contextMenuService",void 0),r.__decorate([(0,c.Autowired)(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],d.prototype,"viewModel",void 0),r.__decorate([(0,c.Autowired)(v.IClipboardService),r.__metadata("design:type",Object)],d.prototype,"clipboardService",void 0),r.__decorate([(0,c.Autowired)(f.DebugContextKey),r.__metadata("design:type",f.DebugContextKey)],d.prototype,"debugContextKey",void 0),t.DebugVariablesModelService=d=n=r.__decorate([(0,c.Injectable)(),r.__metadata("design:paramtypes",[])],d)},86752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(43718),v=e(57517),m=e(14951),_=e(2156),s=e(72665),f=e(94170),a=e(23268),h=e(64582),u=e(61752),d=e(32756),E=e(4983),g=e(95033),l=e(30865);let y=class{registerCommands(S){S.registerCommand(h.DEBUG_COMMANDS.SET_VARIABLE_VALUE,{execute:async()=>{var T;this.reporterService.point(h.DEBUG_REPORT_NAME===null||h.DEBUG_REPORT_NAME===void 0?void 0:h.DEBUG_REPORT_NAME.DEBUG_VARIABLES,h.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id);const{currentVariableInternalContext:D}=this.debugVariablesModelService;if(!D)return;const I=await this.quickInputService.open({placeHolder:(0,o.localize)("debugger.menu.setValue.param"),value:D.description.replace(/^\"(.*)\"$/,"$1")});if(I!=null){try{await D.setValue(I)}catch(O){this.messageService.error(O.message)}(T=this.debugVariablesModelService.treeModel)===null||T===void 0||T.dispatchChange()}}}),S.registerCommand(h.DEBUG_COMMANDS.COPY_VARIABLE_VALUE,{execute:async()=>{const{currentVariableInternalContext:T}=this.debugVariablesModelService;this.debugVariablesModelService.copyValue(T)}}),S.registerCommand(h.DEBUG_COMMANDS.COPY_EVALUATE_PATH,{execute:async()=>{const{currentVariableInternalContext:T}=this.debugVariablesModelService;this.debugVariablesModelService.copyEvaluateName(T)}}),S.registerCommand(h.DEBUG_COMMANDS.ADD_TO_WATCH_ID,{execute:async T=>{const{currentVariableInternalContext:D}=this.debugVariablesModelService;if(T instanceof p.URI){const I=this.workbenchEditorService.currentEditor;if(!I?.monacoEditor||!I?.monacoEditor.hasModel())return;const O=I.monacoEditor,M=O.getModel().getValueInRange(O.getSelection());this.debugWatchModelService.addWatchExpression(M);return}else D&&this.debugWatchModelService.addWatchExpression(D.evaluateName)}});const A="ms-vscode.hexeditor",w=`${p.CUSTOM_EDITOR_SCHEME}-hexEditor.hexedit`;S.registerCommand(h.DEBUG_COMMANDS.VIEW_MEMORY_ID,{execute:async T=>{var D;const I=await this.commandService.executeCommand("extension.getDescription",A);if(I&&I.enabled){const O=(D=this.viewModel.currentSession)===null||D===void 0?void 0:D.id,M=T.memoryReference;this.workbenchEditorService.open(p.URI.from({scheme:E.DEBUG_MEMORY_SCHEME,authority:O,path:"/"+encodeURIComponent(M||"")+"/memory.bin"}),{disableNavigate:!0,preview:!0,forceOpenType:{type:v.EditorOpenType.component,componentId:w}})}else this.messageService.warning((0,o.localize)("debug.variables.view.memory.prompt.hexEditor.notInstalled"))}})}async initialize(){this.fileSystem.registerProvider(E.DEBUG_MEMORY_SCHEME,this.debugMemoryFileSystemProvider)}registerResource(S){S.registerResourceProvider({scheme:E.DEBUG_MEMORY_SCHEME,provideResource:async A=>({uri:A,icon:(0,o.getIcon)("hex"),name:A.displayName})})}registerMenus(S){var A;S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.setValue")},order:10,when:E.CONTEXT_SET_VARIABLE_SUPPORTED.raw,group:"3_modification"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.COPY_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.copyValue")},order:10,group:"5_cutcopypaste"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.COPY_EVALUATE_PATH.id,label:(0,o.localize)("debugger.menu.copyEvaluatePath")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:20,group:"5_cutcopypaste"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:100,group:"z_commands"}),S.registerMenuItem(c.MenuId.EditorContext,{command:{id:h.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:(A=a.ContextKeyExpr.and(f.EditorContextKeys.hasNonEmptySelection,f.EditorContextKeys.editorTextFocus))===null||A===void 0?void 0:A.keys().reduce((w,T)=>w+" && "+T,E.CONTEXT_IN_DEBUG_MODE.raw),group:"debug",order:1}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.VIEW_MEMORY_ID.id,label:(0,o.localize)("debug.variables.view.memory")},iconClass:"",when:`${E.CONTEXT_CAN_VIEW_MEMORY.equalsTo(!0)} && ${E.CONTEXT_IN_DEBUG_MODE.equalsTo(!0)}`,type:"icon"})}};t.VariablesPanelContribution=y,n.__decorate([(0,r.Autowired)(o.IQuickInputService),n.__metadata("design:type",Object)],y.prototype,"quickInputService",void 0),n.__decorate([(0,r.Autowired)(l.DebugVariablesModelService),n.__metadata("design:type",l.DebugVariablesModelService)],y.prototype,"debugVariablesModelService",void 0),n.__decorate([(0,r.Autowired)(g.DebugWatchModelService),n.__metadata("design:type",g.DebugWatchModelService)],y.prototype,"debugWatchModelService",void 0),n.__decorate([(0,r.Autowired)(v.WorkbenchEditorService),n.__metadata("design:type",v.WorkbenchEditorService)],y.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(s.IMessageService),n.__metadata("design:type",Object)],y.prototype,"messageService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],y.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(p.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],y.prototype,"viewModel",void 0),n.__decorate([(0,r.Autowired)(m.IFileServiceClient),n.__metadata("design:type",_.FileServiceClient)],y.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(u.DebugMemoryFileSystemProvider),n.__metadata("design:type",u.DebugMemoryFileSystemProvider)],y.prototype,"debugMemoryFileSystemProvider",void 0),t.VariablesPanelContribution=y=n.__decorate([(0,o.Domain)(o.ClientAppContribution,v.BrowserEditorContribution,c.MenuContribution,o.CommandContribution)],y)},28875:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=t.DebugVariableRenderedNode=t.DebugVariableView=t.DEBUG_VARIABLE_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(97267),p=e(41869),v=e(98650),m=e(30865),_=n.__importDefault(e(57259));t.DEBUG_VARIABLE_TREE_FIELD_NAME="DEBUG_VARIABLE_TREE_FIELD";const s=({viewState:a})=>{const h=(0,p.useInjectable)(m.DebugVariablesModelService),u=o.default.useRef(null),[d,E]=o.default.useState(),g=22,{width:l,height:y}=a;o.default.useEffect(()=>{const M=h.onDidUpdateTreeModel(async R=>{E(R)});return()=>{M.dispose(),h.removeNodeDecoration(),E(void 0)}},[]);const b=M=>{h.handleTreeHandler({...M,hasDirectFocus:()=>u.current===document.activeElement})},S=(M,R,P)=>{M.stopPropagation();const{handleTwistierClick:k}=h;R&&k(R,P)},A=(M,R)=>{const{handleContextMenu:P}=h;P(M,R)},w=M=>{const{handleContextMenu:R}=h;R(M)},T=M=>{const{enactiveNodeDecoration:R}=h;R()},D=M=>{const{enactiveNodeDecoration:R}=h;R()},I=o.default.useCallback(M=>{const R=h.decorations.getDecorations(M.item);return o.default.createElement(t.DebugVariableRenderedNode,{item:M.item,itemType:M.itemType,decorations:R,onClick:S,onTwistierClick:S,onContextMenu:A,defaultLeftPadding:0,leftPadding:8})},[d]),O=()=>d?o.default.createElement(c.RecycleTree,{height:y,width:l,itemHeight:g,onReady:b,model:d,placeholder:()=>o.default.createElement("span",null),overflow:"auto"},I):o.default.createElement("span",null);return o.default.createElement("div",{className:_.default.debug_variables_container,tabIndex:-1,ref:u,onContextMenu:w,onClick:T,onBlur:D,"data-name":t.DEBUG_VARIABLE_TREE_FIELD_NAME},O())};t.DebugVariableView=s;const f=({item:a,decorations:h,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:g,onContextMenu:l,itemType:y})=>{const b=(0,p.useDesignStyles)(_.default.expansion_toggle,"expansion_toggle"),S=k=>{E(k,a,c.CompositeTreeNode.is(a)?c.TreeNodeType.CompositeTreeNode:c.TreeNodeType.TreeNode)},A=k=>{k.nativeEvent.which!==0&&(y===c.TreeNodeType.TreeNode||y===c.TreeNodeType.CompositeTreeNode)&&l&&l(k,a,y)},w=`${(u||8)+(a.depth||0)*(d||0)+(v.ExpressionContainer.is(a)?0:16)}px`,T={height:t.DEBUG_VARIABLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_VARIABLE_TREE_NODE_HEIGHT}px`,paddingLeft:w},D=k=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,_.default.debug_variables_node_displayname,_.default.debug_variables_variable,k.description?_.default.name:"")},k.displayName,k.description?":":""),I=k=>{const F=/^true|false$/i,L=/^(['"]).*\1$/,N=k.description?k.description.replace("function","\u0192 "):"",j=[_.default.debug_variables_variable];return a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?j.push(_.default[a.variableType]):isNaN(+N)?F.test(N)?j.push(_.default.boolean):L.test(N)&&j.push(_.default.string):j.push(_.default.number),o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment_grow,_.default.debug_variables_node_description,...j)},N)},O=()=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,_.default.debug_variables_node_tail)},M()),M=()=>o.default.createElement("div",{className:_.default.debug_variables_node_status},a.badge),R=(k,F)=>{const L=N=>{F(N,k,y)};return h&&h?.classlist.indexOf(_.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,b)},o.default.createElement(c.Loading,null)):o.default.createElement("div",{onClick:L,className:(0,r.default)(_.default.debug_variables_node_segment,b,(0,p.getIcon)("right"),{[`${_.default.mod_collapsed}`]:!k.expanded})})},P=k=>{if(c.CompositeTreeNode.is(k))return R(k,g)};return o.default.createElement("div",{key:a.id,onClick:S,onContextMenu:A,title:a.description||"",className:(0,r.default)(_.default.debug_variables_node,h?h.classlist:null),style:T,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_content)},P(a),o.default.createElement("div",{className:_.default.debug_variables_node_overflow_wrap},D(a),I(a)),O()))};t.DebugVariableRenderedNode=f,t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=22},85454:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModel=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(98650);let m=n=class extends c.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(c.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugWatchModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugWatchModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},95033:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModelService=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(93899),m=e(38029),_=e(50755),s=e(98650),f=e(32756),a=e(4983),h=e(26296),u=e(85454),d=r.__importDefault(e(21315)),{Path:E}=p.path;let g=n=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new c.Decoration(d.default.mod_selected),this.focusedDecoration=new c.Decoration(d.default.mod_focused),this.contextMenuDecoration=new c.Decoration(d.default.mod_actived),this.loadingDecoration=new c.Decoration(d.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new p.Emitter,this.onDidUpdateTreeModelEmitter=new p.Emitter,this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new p.DisposableCollection,this.loadedDeferred=new p.Deferred,this.activeNodeDecoration=(y,b=!0)=>{var S;if(a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService),this.contextMenuNode&&(this.focusedDecoration.removeTarget(this.contextMenuNode),this.selectedDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),y){if(this.selectedNodes.length>0)for(const A of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(A);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(y),this.focusedDecoration.addTarget(y),this._focusedNode=y,this._selectedNodes=[y],b&&((S=this.treeModel)===null||S===void 0||S.dispatchChange())}},this.activeNodeActivedDecoration=y=>{var b;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(y),this._contextMenuNode=y,(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.enactiveNodeDecoration=()=>{var y;a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService).set(!1),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(y=this.treeModel)===null||y===void 0||y.dispatchChange()},this.handleContextMenu=(y,b)=>{var S;y.stopPropagation(),y.preventDefault();const{x:A,y:w}=y.nativeEvent;b?this.activeNodeActivedDecoration(b):this.enactiveNodeDecoration();let T;b?T=b:T=(S=this.treeModel)===null||S===void 0?void 0:S.root,this.watchItemType.set(T instanceof s.DebugWatchNode?"expression":T instanceof s.DebugVariable||T instanceof s.DebugVariableContainer?"variable":void 0);const D=this.contextMenuService.createMenu({id:v.MenuId.DebugWatchContext,contextKeyService:this.contextMenuContextKeyService}),I=D.getMergedMenuNodes();D.dispose(),this.ctxMenuRenderer.show({anchor:{x:A,y:w},menuNodes:I,args:[T]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=y=>{this.activeNodeDecoration(y)},this.handleTwistierClick=(y,b)=>{if(b===c.TreeNodeType.CompositeTreeNode){if(s.DebugWatchNode.is(y)&&y.available){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}else if(y.variablesReference){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}}this.activeNodeDecoration(y)},this.toggleDirectory=async y=>{y.expanded?this.treeHandle.collapseNode(y):this.treeHandle.expandNode(y)},this.proxyPrompt=y=>{let b=!1;const S=async A=>{if(!b){if(b=!0,A){if(y instanceof c.NewPromptHandle){const w=y.parent;if(y.addAddonAfter("loading_indicator"),w.session)this.addWatchExpression(A);else{const T=new s.DebugWatchNode(w.session,A,w);this.dispatchWatchEvent(w.path,{type:c.WatchEvent.Added,node:T,id:w.id}),this.debugWatch.addWatchExpression(A)}}else if(y instanceof c.RenamePromptHandle){const w=y.target,T=w.parent;if(y.addAddonAfter("loading_indicator"),T.session)this.debugWatch.renameWatchExpression(w.name,A),this.initTreeModel();else{const D=new E(w.path).dir.join(A).toString();this.dispatchWatchEvent(T.path,{type:c.WatchEvent.Moved,oldPath:w.path,newPath:D}),this.debugWatch.renameWatchExpression(w.name,A)}}}return!0}};y.destroyed||(y.onCommit(S),y.onBlur(S))},this.flushEventQueue=()=>{let y;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((S,A)=>{const w=E.pathDepth(S),T=E.pathDepth(A);return w-T});const b=[this._changeEventDispatchQueue[0]];for(const S of this._changeEventDispatchQueue)b.some(A=>S.indexOf(A)===0)||b.push(S);return y=(0,p.pSeries)(b.map(S=>async()=>{var A,w;const T=(w=(A=this.treeModel)===null||A===void 0?void 0:A.root)===null||w===void 0?void 0:w.watchEvents.get(S);return T&&typeof T.callback=="function"&&await T.callback({type:c.WatchEvent.Changed,path:S}),null})),this._changeEventDispatchQueue=[],y},this.debugWatch=new _.DebugWatch(this.manager,this.reporterService),this.init(),this.watchItemType=a.CONTEXT_WATCH_ITEM_TYPE.bind(this.contextKeyService)}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}async save(y=[]){await(await this.storageProvider(p.STORAGE_NAMESPACE.DEBUG)).set(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,y)}async load(){const b=await(await this.storageProvider(p.STORAGE_NAMESPACE.DEBUG)).get(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,[]);await this.debugWatch.updateWatchExpressions(b),this.loadedDeferred.resolve()}async init(){await this.loadedDeferred.promise,this.initTreeModel(),this.listenDebugWatchChange()}listenDebugWatchChange(){this.debugWatch.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.initTreeModel()})}),this.debugWatch.onDidVariableChange(async()=>{this.refresh()}),this.debugWatch.onDidExpressionChange(y=>{this.save(y)})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.WillResolveChildren,y=>{this.loadingDecoration.addTarget(y)})),this.disposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.DidResolveChildren,y=>{this.loadingDecoration.removeTarget(y)})))}async initTreeModel(){const y=await this.debugWatch.getRoot();if(y)return this._activeTreeModel=this.injector.get(u.DebugWatchModel,[y]),this.initDecorations(y),this.listenTreeViewChange(),this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel),this._activeTreeModel}initDecorations(y){this._decorations=new c.DecorationsManager(y),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(y){this._debugWatchTreeHandle=y}async newDebugWatchNodePrompt(){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptNewTreeNode(this.treeModel.root))}async renameDebugWatchNodePrompt(y){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptRename(y))}removeDebugWatchNode(y){this.debugWatch.removeWatchExpression(y.name),y.session?this.initTreeModel():this.dispatchWatchEvent(y.parent.path,{type:c.WatchEvent.Removed,path:y.path})}async copyValue(y){const b=await y.getClipboardValue();b&&await this.clipboardService.writeText(b)}async clearAllExpression(){this.debugWatch.updateWatchExpressions([]),await this.initTreeModel(),this.save()}addWatchExpression(y){this.debugWatch.addWatchExpression(y),this.initTreeModel()}dispatchWatchEvent(y,b){var S;const A=(S=this.treeModel)===null||S===void 0?void 0:S.root.watchEvents.get(y);A&&A.callback&&A.callback(b)}collapsedAll(){var y;(y=this.treeModel)===null||y===void 0||y.root.collapsedAll()}async refresh(y){if(!y)if(this.treeModel)y=this.treeModel.root;else return;!s.ExpressionContainer.is(y)&&y.parent&&(y=y.parent),this.queueChangeEvent(y.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(y,b){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new p.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var S;await this.flushEventQueue(),(S=this.flushEventQueueDeferred)===null||S===void 0||S.resolve(),this.flushEventQueueDeferred=null,b()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(y)===-1&&this._changeEventDispatchQueue.push(y)}};t.DebugWatchModelService=g,g.DEFAULT_REFRESH_DELAY=100,g.DEFAULT_TRIGGER_DELAY=200,g.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY="watchers",r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],g.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],g.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],g.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(f.DebugViewModel),r.__metadata("design:type",f.DebugViewModel)],g.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(h.IDebugSessionManager),r.__metadata("design:type",m.DebugSessionManager)],g.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(p.IReporterService),r.__metadata("design:type",Object)],g.prototype,"reporterService",void 0),r.__decorate([(0,o.Autowired)(p.IContextKeyService),r.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(p.StorageProvider),r.__metadata("design:type",Function)],g.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(p.IClipboardService),r.__metadata("design:type",Object)],g.prototype,"clipboardService",void 0),t.DebugWatchModelService=g=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],g)},14600:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(64582),v=e(98650),m=e(4983),_=e(95033);let s=class{registerCommands(a){a.registerCommand(p.DEBUG_COMMANDS.ADD_WATCHER,{execute:()=>{this.debugWatchModelService.newDebugWatchNodePrompt()}}),a.registerCommand(p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.collapsedAll()}}),a.registerCommand(p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.clearAllExpression()}}),a.registerCommand(p.DEBUG_COMMANDS.REMOVE_WATCHER,{execute:h=>{h instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(h);const[u]=this.debugWatchModelService.selectedNodes;u instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(u)}}),a.registerCommand(p.DEBUG_COMMANDS.EDIT_WATCHER,{execute:h=>{this.debugWatchModelService.renameDebugWatchNodePrompt(h)}}),a.registerCommand(p.DEBUG_COMMANDS.COPY_WATCHER_VALUE,{execute:h=>{this.debugWatchModelService.copyValue(h)}})}registerToolbarItems(a){a.registerItem({id:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,command:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("close-all"),viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.removeAll")}),a.registerItem({id:p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("collapse-all"),command:p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.collapseAll"),when:m.CONTEXT_IN_DEBUG_MODE.raw}),a.registerItem({id:p.DEBUG_COMMANDS.ADD_WATCHER.id,iconClass:(0,o.getIcon)("plus"),command:p.DEBUG_COMMANDS.ADD_WATCHER.id,viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.add"),when:m.CONTEXT_IN_DEBUG_MODE.raw})}registerMenus(a){a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.ADD_WATCHER.id,label:(0,o.localize)("debug.watch.add")},order:10,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.EDIT_WATCHER.id,label:(0,o.localize)("debug.watch.edit")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:20,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.COPY_WATCHER_VALUE.id,label:(0,o.localize)("debug.watch.copyValue")},when:`${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression")} || ${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("variable")} && ${m.CONTEXT_IN_DEBUG_MODE.raw}`,order:30,enabledWhen:m.CONTEXT_IN_DEBUG_MODE.raw,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.REMOVE_WATCHER.id,label:(0,o.localize)("debug.watch.remove")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:10,group:"z_commands"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,label:(0,o.localize)("debug.watch.removeAll")},order:20,group:"z_commands"})}registerKeybindings(a){a.registerKeybinding({command:p.DEBUG_COMMANDS.REMOVE_WATCHER.id,keybinding:"ctrlcmd+backspace",when:m.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.raw})}onStart(){this.debugWatchModelService.load()}};t.WatchPanelContribution=s,n.__decorate([(0,r.Autowired)(_.DebugWatchModelService),n.__metadata("design:type",_.DebugWatchModelService)],s.prototype,"debugWatchModelService",void 0),t.WatchPanelContribution=s=n.__decorate([(0,o.Domain)(o.ClientAppContribution,c.MenuContribution,o.CommandContribution,o.TabBarToolbarContribution,o.KeybindingContribution)],s)},64611:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_WATCH_TREE_NODE_HEIGHT=t.DebugWatchRenderedNode=t.DebugWatchView=t.DEBUG_WATCH_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(97267),p=e(41869),v=e(98650),m=e(95033),_=n.__importDefault(e(21315));t.DEBUG_WATCH_TREE_FIELD_NAME="DEBUG_WATCH_TREE_FIELD";const s=({viewState:a})=>{const h=(0,p.useInjectable)(m.DebugWatchModelService),u=22,d=o.default.useRef(null),[E,g]=o.default.useState(),{height:l}=a;o.default.useEffect(()=>y(),[]);const y=()=>{const M=h.treeModel;let R=!0;const P=new p.DisposableCollection;return P.push(p.Disposable.create(()=>{R=!1})),M&&M.ensureReady.then(()=>{R&&g(M)}),P.push(h.onDidUpdateTreeModel(async k=>{k&&await k.ensureReady,R&&g(k)})),()=>{h.removeNodeDecoration(),P.dispose()}},b=M=>{h.handleTreeHandler({...M,getModel:()=>E,hasDirectFocus:()=>d.current===document.activeElement})},S=(M,R,P)=>{M.stopPropagation();const{handleTwistierClick:k}=h;R&&k(R,P)},A=(M,R)=>{const{handleContextMenu:P}=h;P(M,R)},w=M=>{const{handleContextMenu:R}=h;R(M)},T=M=>{const{enactiveNodeDecoration:R}=h;R()},D=M=>{const{enactiveNodeDecoration:R}=h;R()},I=o.default.useCallback(M=>{const R=h.decorations.getDecorations(M.item);return o.default.createElement(t.DebugWatchRenderedNode,{item:M.item,itemType:M.itemType,decorations:R,onClick:S,onTwistierClick:S,onContextMenu:A,defaultLeftPadding:12,leftPadding:8})},[E]),O=()=>E?o.default.createElement(c.RecycleTree,{height:l,itemHeight:u,onReady:b,model:E,placeholder:()=>o.default.createElement("span",null)},I):o.default.createElement("span",null);return o.default.createElement("div",{className:_.default.debug_watch_container,tabIndex:-1,ref:d,onContextMenu:w,onClick:T,onBlur:D,"data-name":t.DEBUG_WATCH_TREE_FIELD_NAME},O())};t.DebugWatchView=s;const f=({item:a,decorations:h,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:g,onContextMenu:l,itemType:y})=>{const b=(0,p.useDesignStyles)(_.default.expansion_toggle,"expansion_toggle"),S=y===c.TreeNodeType.RenamePrompt,A=y===c.TreeNodeType.NewPrompt,w=S||A,T=N=>{const j=a.getRawWatch();j&&E(N,a,j.variablesReference>0?c.TreeNodeType.CompositeTreeNode:c.TreeNodeType.TreeNode)},D=N=>{N.nativeEvent.which!==0&&(y===c.TreeNodeType.TreeNode||y===c.TreeNodeType.CompositeTreeNode)&&l&&l(N,a,y)},I={height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_WATCH_TREE_NODE_HEIGHT}px`,paddingLeft:`${(u||8)+(a.depth||0)*(d||0)}px`},O=N=>w&&N instanceof c.PromptHandle?o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_inputbox)},o.default.createElement("div",{className:(0,r.default)("input-box",_.default.debug_watch_node_prompt_box)},o.default.createElement(N.ProxiedInput,{wrapperStyle:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,padding:"0 5px"}}))):o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_displayname,_.default.debug_watch_variable,N.description?_.default.name:"")},N.name,N.description?":":""),M=N=>{const j=/^true|false$/i,W=/^(['"]).*\1$/,U=N.description?N.description.replace("function","\u0192 "):"",X=[_.default.debug_watch_variable];return w?null:(a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?X.push(_.default[a.variableType]):isNaN(+U)?j.test(U)?X.push(_.default.boolean):W.test(U)&&X.push(_.default.string):X.push(_.default.number),o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment_grow,_.default.debug_watch_node_description,...X)},U))},R=()=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_tail)},P()),P=()=>o.default.createElement("div",{className:_.default.debug_watch_node_status},a.badge),k=()=>a.tooltip,F=(N,j)=>{const W=U=>{j(U,N,y)};return h&&h?.classlist.indexOf(_.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,b)},o.default.createElement(c.Loading,null)):o.default.createElement("div",{onClick:W,className:(0,r.default)(_.default.debug_watch_node_segment,b,(0,p.getIcon)("right"),{[`${_.default.mod_collapsed}`]:!N.expanded})})},L=N=>{if(v.DebugWatchNode.is(N)){if(N.available&&N.variablesReference)return F(N,g)}else if(v.ExpressionContainer.is(N)&&N.variablesReference)return F(N,g)};return o.default.createElement("div",{key:a.id,onClick:T,onContextMenu:D,title:k(),className:(0,r.default)(_.default.debug_watch_node,h?h.classlist:null),style:I,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_content)},L(a),o.default.createElement("div",{style:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT},className:w?_.default.debug_watch_node_prompt_wrap:_.default.debug_watch_node_overflow_wrap},O(a),M(a)),R()))};t.DebugWatchRenderedNode=f,t.DEBUG_WATCH_TREE_NODE_HEIGHT=22},46118:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_COMMANDS=void 0;var e;(function(n){n.ADD_WATCHER={id:"debug.watch.add"},n.COLLAPSE_ALL_WATCHER={id:"debug.watch.collapseAll"},n.REMOVE_ALL_WATCHER={id:"debug.watch.removeAll"},n.REMOVE_WATCHER={id:"debug.watch.remove"},n.EDIT_WATCHER={id:"debug.watch.edit"},n.COPY_WATCHER_VALUE={id:"debug.watch.copyValue"},n.REMOVE_ALL_BREAKPOINTS={id:"debug.breakpoints.remove.all"},n.TOGGLE_BREAKPOINTS={id:"debug.breakpoints.toggle"},n.ACTIVE_BREAKPOINTS={id:"debug.breakpoints.active"},n.DEACTIVE_BREAKPOINTS={id:"debug.breakpoints.deactive"},n.START={id:"debug.start"},n.NEXT={id:"debug.next"},n.PREV={id:"debug.prev"},n.OVER={id:"debug.over"},n.STOP={id:"debug.stop"},n.CONTINUE={id:"debug.continue"},n.RESTART={id:"debug.restart"},n.PAUSE={id:"debug.pause"},n.DELETE_BREAKPOINT={id:"debug.delete.breakpoint",label:"%debug.menu.delete.breakpoint%"},n.EDIT_BREAKPOINT={id:"debug.edit.breakpoint",label:"%debug.menu.edit.breakpoint%"},n.DISABLE_BREAKPOINT={id:"debug.disable.breakpoint",label:"%debug.menu.disable.breakpoint%"},n.ENABLE_BREAKPOINT={id:"debug.enable.breakpoint",label:"%debug.menu.enable.breakpoint%"},n.ENABLE_LOGPOINT={id:"debug.enable.logpoint",label:"%debug.menu.enable.logpoint"},n.ADD_BREAKPOINT={id:"debug.add.breakpoint",label:"%debug.menu.add.breakpoint%"},n.ADD_LOGPOINT={id:"debug.add.logpoint",label:"%debug.menu.add.logpoint%"},n.ADD_CONDITIONAL_BREAKPOINT={id:"debug.add.conditional",label:"%debug.menu.add.conditional%"},n.RESTART_FRAME={id:"debug.callstack.restart.frame"},n.COPY_STACK_TRACE={id:"debug.callstack.copy"},n.SET_VARIABLE_VALUE={id:"debug.variables.setValue"},n.COPY_VARIABLE_VALUE={id:"debug.variables.copy"},n.COPY_EVALUATE_PATH={id:"debug.evaluate.copy"},n.ADD_TO_WATCH_ID={id:"debug.addToWatchExpressions"},n.VIEW_MEMORY_ID={id:"debug.variables.view.memory"},n.CLEAR_CONSOLE={id:"debug.console.clear",label:"%debug.console.clear%"},n.COPY_CONSOLE_ITEM={id:"debug.console.copy"},n.COPY_CONSOLE_ALL={id:"debug.console.copyALl"},n.COLLAPSE_ALL_CONSOLE_ITEM={id:"debug.console.collapseAll",label:"%debug.console.collapseAll%"},n.CONSOLE_ENTER_EVALUATE={id:"debug.console.keybing.enter.evaluate"},n.CONSOLE_INPUT_DOWN_ARROW={id:"debug.console.input.down.arrow"},n.CONSOLE_INPUT_UP_ARROW={id:"debug.console.input.up.arrow"},n.CONSOLE_FILTER_FOCUS={id:"debug.console.filter.input.focus"},n.RUN_TO_CURSOR={id:"debug.action.runToCursor",label:"%debug.action.runToCursor%"},n.FORCE_RUN_TO_CURSOR={id:"debug.action.forceRunToCursor",label:"%debug.action.forceRunToCursor%"},n.EXCEPTION_WIDGET_CLOSE={id:"debug.action.closeExceptionWidget"},n.SHOW_ALL_AUTOMATIC_DEBUG_CONFIGURATIONS={id:"debug.showAllAutomaticDebugConfigurations"}})(e||(t.DEBUG_COMMANDS=e={}))},4983:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_DEBUGGERS_AVAILABLE=t.CONTEXT_BREAKPOINTS_EXIST=t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=t.CONTEXT_RESTART_FRAME_SUPPORTED=t.CONTEXT_STEP_BACK_SUPPORTED=t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=t.CONTEXT_BREAKPOINT_ACCESS_TYPE=t.CONTEXT_BREAKPOINT_ITEM_TYPE=t.CONTEXT_WATCH_ITEM_TYPE=t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=t.CONTEXT_CALLSTACK_ITEM_STOPPED=t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=t.CONTEXT_CALLSTACK_ITEM_TYPE=t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=t.CONTEXT_EXPRESSION_SELECTED=t.CONTEXT_VARIABLES_FOCUSED=t.CONTEXT_WATCH_EXPRESSIONS_EXIST=t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=t.CONTEXT_BREAKPOINTS_FOCUSED=t.CONTEXT_IN_BREAKPOINT_WIDGET=t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=t.CONTEXT_IN_DEBUG_CONSOLE=t.CONTEXT_IN_DEBUG_REPL=t.CONTEXT_IN_DEBUG_MODE=t.CONTEXT_DEBUG_UX=t.CONTEXT_DEBUG_UX_KEY=t.CONTEXT_DEBUG_STATE=t.CONTEXT_DEBUG_CONFIGURATION_TYPE=t.CONTEXT_DEBUG_TYPE=t.CONTEXT_DEBUG_TYPE_KEY=t.CONTEXT_IN_DEBUG_MODE_KEY=t.CONTEXT_DEBUG_STOPPED_KEY=t.DEBUG_SCHEME=t.DEBUG_FLOATING_CLICK_WIDGET=t.DEBUG_STACK_ID=t.DEBUG_WELCOME_ID=t.DEBUG_BREAKPOINTS_ID=t.DEBUG_VARIABLES_ID=t.DEBUG_THREAD_ID=t.DEBUG_WATCH_ID=t.DEBUG_MEMORY_SCHEME=t.LAUNCH_VIEW_COMPONENT_ID=t.LAUNCH_VIEW_SCHEME=t.DEBUG_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=void 0,t.CONTEXT_ACTIVE_BREAKPOINTS=t.CONTEXT_CAN_VIEW_MEMORY=t.CONTEXT_MULTI_SESSION_DEBUG=t.CONTEXT_MULTI_SESSION_REPL=t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=t.CONTEXT_SET_VARIABLE_SUPPORTED=t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=void 0;const n=e(30144);Object.defineProperty(t,"DEBUG_CONSOLE_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONSOLE_CONTAINER_ID}}),Object.defineProperty(t,"DEBUG_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONTAINER_ID}});const r=e(40191);t.LAUNCH_VIEW_SCHEME="launch_view_scheme",t.LAUNCH_VIEW_COMPONENT_ID="launch-view",t.DEBUG_MEMORY_SCHEME="vscode-debug-memory",t.DEBUG_WATCH_ID="debug-watch",t.DEBUG_THREAD_ID="debug-thread",t.DEBUG_VARIABLES_ID="debug-variable",t.DEBUG_BREAKPOINTS_ID="debug-breakpoints",t.DEBUG_WELCOME_ID="debug-welcome",t.DEBUG_STACK_ID="debug-stack",t.DEBUG_FLOATING_CLICK_WIDGET="debug.overlayWidget.floatingClickWidget",t.DEBUG_SCHEME="debug",t.CONTEXT_DEBUG_STOPPED_KEY="debugStopped",t.CONTEXT_IN_DEBUG_MODE_KEY="inDebugMode",t.CONTEXT_DEBUG_TYPE_KEY="debugType",t.CONTEXT_DEBUG_TYPE=new r.RawContextKey("debugType",void 0),t.CONTEXT_DEBUG_CONFIGURATION_TYPE=new r.RawContextKey("debugConfigurationType",void 0),t.CONTEXT_DEBUG_STATE=new r.RawContextKey("debugState","Inactive"),t.CONTEXT_DEBUG_UX_KEY="debugUx",t.CONTEXT_DEBUG_UX=new r.RawContextKey(t.CONTEXT_DEBUG_UX_KEY,"default"),t.CONTEXT_IN_DEBUG_MODE=new r.RawContextKey("inDebugMode",!1),t.CONTEXT_IN_DEBUG_REPL=new r.RawContextKey("inDebugRepl",!1),t.CONTEXT_IN_DEBUG_CONSOLE=new r.RawContextKey("inDebugConsole",!1),t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=new r.RawContextKey("breakpointWidgetVisible",!1),t.CONTEXT_IN_BREAKPOINT_WIDGET=new r.RawContextKey("inBreakpointWidget",!1),t.CONTEXT_BREAKPOINTS_FOCUSED=new r.RawContextKey("breakpointsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=new r.RawContextKey("watchExpressionsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_EXIST=new r.RawContextKey("watchExpressionsExist",!1),t.CONTEXT_VARIABLES_FOCUSED=new r.RawContextKey("variablesFocused",!0),t.CONTEXT_EXPRESSION_SELECTED=new r.RawContextKey("expressionSelected",!1),t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=new r.RawContextKey("breakpointInputFocused",!1),t.CONTEXT_CALLSTACK_ITEM_TYPE=new r.RawContextKey("callStackItemType",void 0),t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=new r.RawContextKey("callStackSessionIsAttach",!1),t.CONTEXT_CALLSTACK_ITEM_STOPPED=new r.RawContextKey("callStackItemStopped",!1),t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=new r.RawContextKey("callStackSessionHasOneThread",!1),t.CONTEXT_WATCH_ITEM_TYPE=new r.RawContextKey("watchItemType",void 0),t.CONTEXT_BREAKPOINT_ITEM_TYPE=new r.RawContextKey("breakpointItemType",void 0),t.CONTEXT_BREAKPOINT_ACCESS_TYPE=new r.RawContextKey("breakpointAccessType",void 0),t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=new r.RawContextKey("breakpointSupportsCondition",!1),t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=new r.RawContextKey("loadedScriptsSupported",!1),t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=new r.RawContextKey("loadedScriptsItemType",void 0),t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=new r.RawContextKey("focusedSessionIsAttach",!1),t.CONTEXT_STEP_BACK_SUPPORTED=new r.RawContextKey("stepBackSupported",!1),t.CONTEXT_RESTART_FRAME_SUPPORTED=new r.RawContextKey("restartFrameSupported",!1),t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=new r.RawContextKey("stackFrameSupportsRestart",!1),t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=new r.RawContextKey("jumpToCursorSupported",!1),t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=new r.RawContextKey("stepIntoTargetsSupported",!1),t.CONTEXT_BREAKPOINTS_EXIST=new r.RawContextKey("breakpointsExist",!1),t.CONTEXT_DEBUGGERS_AVAILABLE=new r.RawContextKey("debuggersAvailable",!1),t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=new r.RawContextKey("debugProtocolVariableMenuContext",void 0),t.CONTEXT_SET_VARIABLE_SUPPORTED=new r.RawContextKey("debugSetVariableSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=new r.RawContextKey("breakWhenValueChangesSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=new r.RawContextKey("breakWhenValueIsAccessedSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=new r.RawContextKey("breakWhenValueIsReadSupported",!1),t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=new r.RawContextKey("variableEvaluateNamePresent",!1),t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=new r.RawContextKey("exceptionWidgetVisible",!1),t.CONTEXT_MULTI_SESSION_REPL=new r.RawContextKey("multiSessionRepl",!1),t.CONTEXT_MULTI_SESSION_DEBUG=new r.RawContextKey("multiSessionDebug",!1),t.CONTEXT_CAN_VIEW_MEMORY=new r.RawContextKey("canViewMemory",void 0),t.CONTEXT_ACTIVE_BREAKPOINTS=new r.RawContextKey("activateBreakpoints",!0)},95581:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53670:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MASSIVE_PROPERTY_FLAG=t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR=t.DEFAULT_CONFIGURATION_NAME_SEPARATOR=t.DEFAULT_NO_CONFIGURATION_KEY=t.DEFAULT_DYNAMIC_CONFIGURATION_KEY=t.DEFAULT_EDIT_CONFIGURATION_KEY=t.DEFAULT_ADD_CONFIGURATION_KEY=t.DebugConfiguration=void 0;var e;(function(n){function r(o){return!!o&&typeof o=="object"&&"type"in o&&"name"in o&&"request"in o}n.is=r})(e||(t.DebugConfiguration=e={})),t.DEFAULT_ADD_CONFIGURATION_KEY="__ADD_CONF__",t.DEFAULT_EDIT_CONFIGURATION_KEY="__EDIT_CONF__",t.DEFAULT_DYNAMIC_CONFIGURATION_KEY="__DYNAMIC_CONF__",t.DEFAULT_NO_CONFIGURATION_KEY="__NO_CONF__",t.DEFAULT_CONFIGURATION_NAME_SEPARATOR="__CONF__",t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR="__INDEX__",t.MASSIVE_PROPERTY_FLAG="massive_property_flag"},70049:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugConsoleModelService=void 0,t.IDebugConsoleModelService=Symbol("IDebugConsoleModelService")},24395:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditor=void 0,t.DebugEditor=Symbol("DebugEditor")},2242:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32385:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugModelManager=t.DebugModelSupportedEventType=t.MemoryRegion=t.IDebugModel=t.DebugModelFactory=t.DebugAdapterContribution=t.DebugAdapterFactory=t.DebugAdapterSessionFactory=t.DebugAdapterSession=void 0;const n=e(43718);t.DebugAdapterSession=Symbol("DebugAdapterSession"),t.DebugAdapterSessionFactory=Symbol("DebugAdapterSessionFactory"),t.DebugAdapterFactory=Symbol("DebugAdapterFactory"),t.DebugAdapterContribution=Symbol("DebugAdapterContribution"),t.DebugModelFactory=Symbol("DebugModelFactory"),t.IDebugModel=Symbol("IDebugModel");class r extends n.Disposable{constructor(p,v){super(),this.memoryReference=p,this.session=v,this.invalidateEmitter=this.registerDispose(new n.Emitter),this.onDidInvalidate=this.invalidateEmitter.event,this.writable=!!this.session.capabilities.supportsWriteMemoryRequest,this.registerDispose(v.onDidInvalidateMemory(m=>{m.body.memoryReference===p&&this.invalidate(m.body.offset,m.body.count-m.body.offset)}))}async read(p,v){var m;const _=v-p,s=p,f=await this.session.readMemory(this.memoryReference,s,_);if(f===void 0||!(!((m=f.body)===null||m===void 0)&&m.data))return[{type:1,offset:s,length:_}];let a;try{a=(0,n.decodeBase64)(f.body.data)}catch(d){return[{type:2,offset:s,length:_,error:d.message}]}const h=f.body.unreadableBytes||0,u=_-h;if(a.byteLength<u){const d=n.BinaryBuffer.alloc(u-a.byteLength);d.buffer.fill(0),a=n.BinaryBuffer.concat([a,d],u)}else a.byteLength>u&&(a=a.slice(0,u));return h?[{type:0,offset:s,length:u,data:a},{type:1,offset:s+u,length:h}]:[{type:0,offset:s,length:_,data:a}]}async write(p,v){var m,_;const s=await this.session.writeMemory(this.memoryReference,p,(0,n.encodeBase64)(v),!0),f=(_=(m=s?.body)===null||m===void 0?void 0:m.bytesWritten)!==null&&_!==void 0?_:v.byteLength;return this.invalidate(p,p+f),f}dispose(){super.dispose()}invalidate(p,v){this.invalidateEmitter.fire({fromOffset:p,toOffset:v})}}t.MemoryRegion=r;var o;(function(c){c.down="Down",c.move="Move",c.leave="Leave",c.contextMenu="contextMenu"})(o||(t.DebugModelSupportedEventType=o={})),t.IDebugModelManager=Symbol("DebugModelManager")},79845:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugProgress=void 0,t.IDebugProgress=Symbol("DebugProgress")},60709:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA_TYPE=t.launchDefaultSchemaUri=t.launchExtensionSchemaUri=t.launchSchemaUri=void 0,t.launchSchemaUri="vscode://schemas/launch",t.launchExtensionSchemaUri="vscode://schemas/launch/extension",t.launchDefaultSchemaUri="vscode://schemas/launch/default";var e;(function(n){n.ARRAY="array",n.BOOLEAN="boolean",n.NULL="null",n.NUMBER="number",n.OBJECT="object",n.STRING="string"})(e||(t.JSON_SCHEMA_TYPE=e={}))},70159:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILaunchService=t.IDebugService=t.IDebugServer=t.DebugAdapterPath=t.DebugConfigurationProviderTriggerKind=void 0;var e;(function(n){n[n.Initial=1]="Initial",n[n.Dynamic=2]="Dynamic"})(e||(t.DebugConfigurationProviderTriggerKind=e={})),t.DebugAdapterPath="DebugAdaptor",t.IDebugServer=Symbol("DebugServer"),t.IDebugService=Symbol("DebugService"),t.ILaunchService=Symbol("ILaunchService")},50883:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionDTO=void 0;var e;(function(n){function r(o){return"id"in o}n.is=r})(e||(t.IDebugSessionDTO=e={}))},26296:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionManager=t.IDebugSession=t.DebugState=void 0,t.getSequenceId=r;var e;(function(o){o[o.Inactive=0]="Inactive",o[o.Initializing=1]="Initializing",o[o.Running=2]="Running",o[o.Stopped=3]="Stopped"})(e||(t.DebugState=e={})),t.IDebugSession=Symbol("DebugSession"),t.IDebugSessionManager=Symbol("DebugSessionManager");let n=1;function r(){return n++}},64582:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(53670),t),n.__exportStar(e(70159),t),n.__exportStar(e(2242),t),n.__exportStar(e(95581),t),n.__exportStar(e(32385),t),n.__exportStar(e(26296),t),n.__exportStar(e(70049),t),n.__exportStar(e(50883),t),n.__exportStar(e(24395),t),n.__exportStar(e(79845),t),n.__exportStar(e(60709),t),n.__exportStar(e(7428),t),n.__exportStar(e(37723),t),n.__exportStar(e(4983),t),n.__exportStar(e(71120),t),n.__exportStar(e(46118),t)},7428:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},71120:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindowsDriveLetter=r,t.hasDriveLetter=o,t.getDriveLetter=c,t.prepareCommand=p;const n=e(43718);function r(v){return v>=65&&v<=90||v>=97&&v<=122}function o(v,m=n.isWindows){return m?r(v.charCodeAt(0))&&v.charCodeAt(1)===58:!1}function c(v){return o(v)?v[0]:void 0}function p(v,m,_,s,f){v=v.trim().toLowerCase();let a;v.indexOf("powershell")>=0||v.indexOf("pwsh")>=0?a=1:v.indexOf("cmd.exe")>=0?a=0:v.indexOf("bash")>=0?a=2:n.isWindows?a=0:a=2;let h,u=" ";switch(a){case 1:if(h=d=>(d=d.replace(/'/g,"''"),d.length>0&&d.charAt(d.length-1)==="\\"?`'${d}\\'`:`'${d}'`),s){const d=c(s);d&&(u+=`${d}:; `),u+=`cd ${h(s)}; `}if(f)for(const d in f){const E=f[d];E===null?u+=`Remove-Item env:${d}; `:u+=`\${env:${d}}='${E}'; `}if(m.length>0){const d=m.shift(),E=_?d:h(d);u+=E[0]==="'"?`& ${E} `:`${E} `;for(const g of m)u+=g==="<"||g===">"||_?g:h(g),u+=" "}break;case 0:if(h=d=>(d=d.replace(/"/g,'""'),d=d.replace(/([><!^&|])/g,"^$1"),' "'.split("").some(E=>d.includes(E))||d.length===0?`"${d}"`:d),s){const d=c(s);d&&(u+=`${d}: && `),u+=`cd ${h(s)} && `}if(f){u+='cmd /C "';for(const d in f){let E=f[d];E===null?u+=`set "${d}=" && `:(E=E.replace(/[&^|<>]/g,g=>`^${g}`),u+=`set "${d}=${E}" && `)}}for(const d of m)u+=d==="<"||d===">"||_?d:h(d),u+=" ";f&&(u+='"');break;case 2:{h=E=>(E=E.replace(/(["'\\$!><#()[\]*&^| ;{}`])/g,"\\$1"),E.length===0?'""':E);const d=E=>/[^\w@%/+=,.:^-]/.test(E)?`'${E.replace(/'/g,"'\\''")}'`:E;if(s&&(u+=`cd ${h(s)} ; `),f){u+="/usr/bin/env";for(const E in f){const g=f[E];g===null?u+=` -u ${d(E)}`:u+=` ${d(`${E}=${g}`)}`}u+=" "}for(const E of m)u+=E==="<"||E===">"||_?E:h(E),u+=" ";break}}return u}},37723:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationsReadyEvent=t.DEBUG_REPORT_NAME=void 0;const n=e(43718);var r;(function(c){c.DEBUG_SESSION_START_TIME="debugSessionStartTime",c.DEBUG_PRE_LAUNCH_TASK_TIME="debugPreLaunchTaskTime",c.DEBUG_TOOLBAR_OPERATION_TIME="debugToolBarOperationTime",c.DEBUG_TOOLBAR_OPERATION="debugToolBarOperation",c.DEBUG_PANEL_OPERATION_FOLDEXPR="debugPanelOperationFoldexpr",c.DEBUG_WATCH="debugWatch",c.DEBUG_VARIABLES="debugVariables",c.DEBUG_BREAKPOINT="debugBreakpoint",c.DEBUG_ADAPTER_PROTOCOL_TIME="debugAdapterProtocolTime",c.DEBUG_STOPPED="debugStopped",c.DEBUG_UI_FRONTEND_TIME="debugFrontEndTime"})(r||(t.DEBUG_REPORT_NAME=r={}));class o extends n.BasicEvent{}t.DebugConfigurationsReadyEvent=o},66482:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(64582),t)},83670:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDecorationsService=void 0;const n=e(85608),r=e(76003),o=e(43718),{isFalsyOrWhitespace:c}=o.strings,{asArray:p}=o.arrays;class v{constructor(){this._data=o.TernarySearchTree.forPaths()}affectsResource(u){return this._data.get(u.toString())||this._data.findSuperstr(u.toString())!==void 0}static debouncer(u,d){if(u||(u=new v),Array.isArray(d))for(const E of d)u._data.set(E.toString(),!0);else u._data.set(d.toString(),!0);return u}}class m{constructor(u,d){this.source=u,this.thenable=d}}class _{constructor(u,d,E){this._provider=u,this._uriEmitter=d,this._flushEmitter=E,this.data=o.TernarySearchTree.forPaths(),this._dispoable=this._provider.onDidChange(g=>{if(!g)this.data.clear(),this._flushEmitter.fire({affectsResource(){return!0}});else for(const l of g)this._fetchData(l)})}dispose(){this._dispoable.dispose(),this.data.clear()}knowsAbout(u){return!!this.data.get(u.toString())||!!this.data.findSuperstr(u.toString())}getOrRetrieve(u,d,E){const g=u.toString();let l=this.data.get(g);if(l===void 0&&(l=this._fetchData(u)),l&&!(l instanceof m)&&E(l,!1),d){const y=this.data.findSuperstr(g);if(y)for(let b=y.next();!b.done;b=y.next())b.value&&!(b.value instanceof m)&&E(b.value,!0)}}_fetchData(u){const d=this.data.get(u.toString());d instanceof m&&(d.source.cancel(),this.data.delete(u.toString()));const E=new o.CancellationTokenSource,g=this._provider.provideDecorations(u,E.token);if((0,o.isThenable)(g)){const l=new m(E,Promise.resolve(g).then(y=>{this.data.get(u.toString())===l&&this._keepItem(u,y)}).catch(y=>{!(0,o.isPromiseCanceledError)(y)&&this.data.get(u.toString())===l&&this.data.delete(u.toString())}));return this.data.set(u.toString(),l),null}else return this._keepItem(u,g)}_keepItem(u,d){const E=d||null,g=this.data.set(u.toString(),E);return(E||g)&&this._uriEmitter.fire(u),E}}function s(h){return p(h).map(({color:d,letter:E})=>`${d}/${E}`).join(",")}function f(h){const u=p(h);if(u.length)return{key:s(h),color:u[0].color,badge:u.filter(d=>!c(d.letter)).map(d=>d.letter).join(","),tooltip:u.filter(d=>!c(d.tooltip)).map(d=>d.tooltip).join(" \u2022 ")}}let a=class extends o.Disposable{constructor(){super(...arguments),this.logger=(0,o.getDebugLogger)(),this._data=new o.LinkedList,this._onDidChangeDecorationsDelayed=new o.Emitter,this._onDidChangeDecorations=new o.Emitter,this.onDidChangeDecorations=o.Event.any(this._onDidChangeDecorations.event,o.Event.debounce(this._onDidChangeDecorationsDelayed.event,v.debouncer,void 0,void 0,500))}dispose(){(0,o.dispose)(this._onDidChangeDecorations),(0,o.dispose)(this._onDidChangeDecorationsDelayed)}registerDecorationsProvider(u){this.logger.log("DecorationService#registerDecorationsProvider",u);const d=new _(u,this._onDidChangeDecorationsDelayed,this._onDidChangeDecorations),E=this._data.push(d);return this._onDidChangeDecorations.fire({affectsResource(){return!0}}),(0,o.toDisposable)(()=>{E(),this._onDidChangeDecorations.fire({affectsResource:g=>d.knowsAbout(g)}),d.dispose()})}getDecoration(u,d){const E=[];let g=!1;for(let l=this._data.iterator(),y=l.next();!y.done;y=l.next())y.value.getOrRetrieve(u,d,(b,S)=>{(!S||b.bubble)&&(E.push(b),g=S||g)});if(E.length!==0)return this.asDecoration(E,g)}asDecoration(u,d){u.sort((g,l)=>(l.weight||0)-(g.weight||0));const E=f(u);return E&&d&&(E.badge="\u2022",E.tooltip=(0,o.localize)("bubbleTitle","Contains emphasized items")),E}};t.FileDecorationsService=a,t.FileDecorationsService=a=n.__decorate([(0,r.Injectable)()],a)},4958:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93364),p=e(83670);let v=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IDecorationsService,useClass:p.FileDecorationsService}]}};t.DecorationModule=v,t.DecorationModule=v=n.__decorate([(0,r.Injectable)()],v)},93364:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationsService=void 0;const n=e(43718);class r extends n.Disposable{}t.IDecorationsService=r},87323:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(93364),t)},41893:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(87323),t)},67988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignCoreContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(1149),p=e(43718),v=e(14951),m=e(2156),_=e(11090),s=e(37517);let f=class{initialize(){this.fileSystem.registerProvider(p.Schemes.design,this.designThemeFileSystemProvider),this.layoutViewSize.setEditorTabsHeight(36,c.ConfigPriority.ModuleDefined),this.layoutViewSize.setStatusBarHeight(36,c.ConfigPriority.ModuleDefined),this.layoutViewSize.setAccordionHeaderSizeHeight(36,c.ConfigPriority.ModuleDefined)}registerRenderer(h){h.registerSlotRenderer(o.SlotLocation.left,_.DesignLeftTabRenderer),h.registerSlotRenderer(o.SlotLocation.bottom,_.DesignBottomTabRenderer),h.registerSlotRenderer(o.SlotLocation.right,_.DesignRightTabRenderer)}};t.DesignCoreContribution=f,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",m.FileServiceClient)],f.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",s.DesignThemeFileSystemProvider)],f.prototype,"designThemeFileSystemProvider",void 0),n.__decorate([(0,r.Autowired)(c.LayoutViewSizeConfig),n.__metadata("design:type",c.LayoutViewSizeConfig)],f.prototype,"layoutViewSize",void 0),t.DesignCoreContribution=f=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution,o.SlotRendererContribution)],f)},17242:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(71707),p=e(80832),v=e(97222),m=e(43718),_=e(57517),s=e(52416),f=e(51706),a=e(9132),h=e(67988),u=e(3013),d=e(31385),E=e(72141),g=e(45365),l=n.__importDefault(e(49107)),y=n.__importDefault(e(13925)),b=n.__importDefault(e(63080)),S=e(98741);let A=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[u.DesignMenuBarContribution,h.DesignCoreContribution],this.preferences=T=>{e.e(454).then(e.bind(e,77454)),T.get(p.IDesignStyleService).setStyles(l.default),(0,S.overrideColorToken)(),(0,S.overrideMonacoColorToken)();const I=T.get(m.AppLifeCycleServiceToken);m.Event.once(m.Event.filter(I.onDidLifeCyclePhaseChange,O=>O===3))(()=>{const O=T.get(s.IThemeService);[y.default,b.default].forEach(M=>{O.registerThemes([{id:M.id,label:M.name,path:"",extensionId:M.id,uiTheme:M.base}],o.URI.parse(`${M.id}.json`).withQuery(M.id).withScheme(m.Schemes.design))})}),T.overrideProviders({token:s.IThemeStore,useClass:class extends f.ThemeStore{async getThemeData(O,M){const R=await super.getThemeData(O,M);return document.body.classList.remove(b.default.designThemeType),document.body.classList.remove(y.default.designThemeType),y.default.id===O?.id?document.body.classList.add(y.default.designThemeType):b.default.id===O?.id&&document.body.classList.add(b.default.designThemeType),R}},override:!0,isDefault:!0},{token:s.IThemeService,useClass:class extends a.WorkbenchThemeService{async ensureValidTheme(){return super.ensureValidTheme(y.default.id)}},override:!0,isDefault:!0},{token:_.IEditorTabService,useClass:d.DesignEditorTabService,override:!0,isDefault:!0},{token:c.ISplitPanelService,useClass:g.DesignSplitPanelService,override:!0,isDefault:!0},{token:v.IBrowserCtxMenu,useClass:E.DesignBrowserCtxMenuService})}}};t.DesignModule=A,t.DesignModule=A=n.__decorate([(0,r.Injectable)()],A)},11090:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignRightTabRenderer=t.DesignBottomTabRenderer=t.DesignLeftTabRenderer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(19951),p=({className:_,components:s,tabbarView:f})=>o.default.createElement(c.LeftTabRenderer,{className:(0,r.default)(_,"design_left_slot"),components:s,tabbarView:f});t.DesignLeftTabRenderer=p;const v=({className:_,components:s})=>o.default.createElement(c.BottomTabRenderer,{className:(0,r.default)(_,"design_bottom_slot"),components:s});t.DesignBottomTabRenderer=v;const m=({className:_,components:s,tabbarView:f,tabpanelView:a})=>o.default.createElement(c.RightTabRenderer,{className:(0,r.default)("design_right_slot",_),components:s,tabbarView:f,tabpanelView:a});t.DesignRightTabRenderer=m},3013:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(64267),v=e(38879),m=e(12458);let _=class extends o.Disposable{constructor(){super(),this.menubarStore.unregisterMenusBarByCompact(c.MenuId.DesignMenuBarTopExtra);let f;this.addDispose(this.menubarStore.onDidMenuBarChange(a=>{f&&f.dispose(),f=this.menuRegistry.registerMenuItems(c.MenuId.DesignMenuBarTopExtra,a.map(h=>{var u;return{label:h.label,submenu:h.id,iconClass:h.iconClass,group:h.group||"1_navigation",order:(u=h.order)!==null&&u!==void 0?u:100}}))}))}registerComponent(f){f.register(v.DESIGN_MENUBAR_CONTAINER_VIEW_ID,{component:m.DesignMenuBarView,id:v.DESIGN_MENUBAR_CONTAINER_VIEW_ID})}};t.DesignMenuBarContribution=_,n.__decorate([(0,r.Autowired)(p.MenubarStore),n.__metadata("design:type",p.MenubarStore)],_.prototype,"menubarStore",void 0),n.__decorate([(0,r.Autowired)(c.IMenuRegistry),n.__metadata("design:type",c.IMenuRegistry)],_.prototype,"menuRegistry",void 0),t.DesignMenuBarContribution=_=n.__decorate([(0,o.Domain)(o.ComponentContribution),n.__metadata("design:paramtypes",[])],_)},12458:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),p=e(81878),v=e(89195),m=e(1149),_=e(63373),s=e(93899),f=e(43718),a=e(63067),h=e(55039),u=e(38879),d=n.__importDefault(e(52151)),E=n.__importDefault(e(90946)),g=()=>{const y=(0,c.useInjectable)(s.AbstractContextMenuService),b=(0,c.useInjectable)(m.DesignLayoutConfig),S=(0,c.useInjectable)(s.ICtxMenuRenderer),A=o.useRef(null),[w,T]=o.useState(void 0);o.useEffect(()=>{D()},[]);const D=o.useCallback(R=>{requestAnimationFrame(()=>{if(A.current){const P=A.current.getBoundingClientRect(),{x:k,y:F,width:L,height:N}=P,j={x:k,y:F+N};T(j),R&&R(j)}})},[A.current]),I=o.useMemo(()=>y.createMenu({id:s.MenuId.DesignMenuBarTopExtra}),[y]),O=o.useCallback(()=>{if(!w)return;const R=I.getMergedMenuNodes();I.dispose(),D(P=>{S.show({anchor:P,menuNodes:R})})},[w,I]),M=o.useMemo(()=>b.menubarLogo||d.default,[b.menubarLogo]);return o.createElement(o.Fragment,null,o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.ai_enhance_menu,ref:A,onClick:O},o.createElement("div",{className:E.default.logo_container},o.createElement("img",{className:E.default.extra_top_icon,src:M,alt:""}),o.createElement(p.Icon,{className:(0,r.default)((0,c.getIcon)("down"),E.default.caret_icon)}))))},l=()=>{const y=(0,c.useInjectable)(f.CommandService),b=(0,c.useInjectable)(a.IMainLayoutService),S=(0,c.useInjectable)(c.AINativeConfigService),[A,w]=o.useState(!1);o.useEffect(()=>{requestAnimationFrame(()=>{w(D())});const O=b.getTabbarService(c.SlotLocation.left).onCurrentChange(({previousId:M,currentId:R})=>{M&&!R?w(!1):!M&&R&&w(!0)});return()=>{O.dispose()}},[]);const T=o.useCallback(()=>{y.executeCommand("main-layout.left-panel.toggle"),requestAnimationFrame(()=>{w(D())})},[]),D=o.useCallback(()=>!!b.getTabbarService(c.SlotLocation.left).currentContainerId.get(),[b]);return o.createElement("div",{id:_.VIEW_CONTAINERS.MENUBAR,className:E.default.menu_bar_view,style:{height:S.layoutViewSize.menubarHeight}},o.createElement("div",{className:E.default.container},o.createElement("div",{className:E.default.left},o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.enhance_menu,icon:A?"left-nav-open":"left-nav-close",onClick:T}),o.createElement("span",{className:E.default.dividing}),o.createElement("div",{className:E.default.top_menus_bar},o.createElement(g,null)),o.createElement(c.SlotRenderer,{id:"design-menubar-left",slot:u.DESIGN_MENU_BAR_LEFT,flex:1})),o.createElement("div",{className:E.default.right},o.createElement(h.ToolBar,null),o.createElement(c.SlotRenderer,{id:"design-menubar-right",slot:u.DESIGN_MENU_BAR_RIGHT,flex:1}))))};t.DesignMenuBarView=l},31385:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignEditorTabService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),p=e(81878),v=e(1149),m=e(43718),_=e(30612),s=n.__importDefault(e(49107)),f=h=>{const{children:u}=h,[d,E]=o.default.useState(!1),g=(0,o.useMemo)(()=>"editor-tab-close-"+(0,m.uuid)(6),[]),l=(0,o.useCallback)(()=>{E(!1)},[]),y=(0,o.useMemo)(()=>(0,m.formatLocalize)("editor.closeTab.title",m.isMacintosh?"\u2318W":"Ctrl+W"),[]);return o.default.createElement(p.Popover,{delay:1e3,position:p.PopoverPosition.bottom,id:g,title:y,onClickAction:l,display:d},o.default.createElement("span",{title:""},u))};let a=class extends _.EditorTabService{renderEditorTab(u,d){return o.default.createElement("div",{className:(0,r.default)({[s.default["design-editor_tab_block_container"]]:!0,[s.default.active]:d}),style:{height:this.layoutViewSize.editorTabsHeight}},u)}renderTabCloseComponent(u){return o.default.createElement(f,null,u)}};t.DesignEditorTabService=a,n.__decorate([(0,c.Autowired)(v.LayoutViewSizeConfig),n.__metadata("design:type",v.LayoutViewSizeConfig)],a.prototype,"layoutViewSize",void 0),t.DesignEditorTabService=a=n.__decorate([(0,c.Injectable)()],a)},72141:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignBrowserCtxMenuService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),p=e(97267),v=e(41869),m=e(31388),_=e(52416),s=n.__importDefault(e(49107)),f=h=>{const u=(0,v.useInjectable)(_.IIconService),{data:d,disabled:E,hasSubmenu:g}=h,l=(0,o.useMemo)(()=>d.checked?o.default.createElement(p.Icon,{icon:"check"}):d.icon?o.default.createElement(p.Icon,{iconClass:d.icon}):null,[d]);return o.default.createElement("div",{className:(0,r.default)(s.default.menuAction__sub_menu_action_container,{[s.default.disabled]:E,[s.default.checked]:d.checked},d.className)},o.default.createElement("div",{className:s.default.icon},l),o.default.createElement("div",{className:s.default.label},d.label?(0,v.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(d.label,!0),{margin:"0 3px"},u?.fromString.bind(u)):""),o.default.createElement("div",{className:s.default.tip},d.keybinding?o.default.createElement("div",{className:s.default.shortcut},d.keybinding):null,g?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(p.Icon,{icon:"right-arrow"})):null,!d.keybinding&&!g&&d.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},d.extraDesc)))};let a=class extends m.BrowserCtxMenuService{renderSubMenuTitle(u,d){return o.default.createElement(f,{data:u,...d})}renderMenuItem(u,d){return o.default.createElement(f,{data:u,...d})}};t.DesignBrowserCtxMenuService=a,t.DesignBrowserCtxMenuService=a=n.__decorate([(0,c.Injectable)()],a)},45365:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSplitPanelService=void 0;const n=e(71707);class r extends n.SplitPanelService{renderSplitPanel(c,p,v){return super.renderSplitPanel(c,p,v)}interceptProps(c){return c}}t.DesignSplitPanelService=r},13925:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#D4D4D4"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#6A9955"}},{scope:"constant.language",settings:{foreground:"#569cd6"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#b5cea8"}},{scope:"constant.regexp",settings:{foreground:"#646695"}},{scope:"entity.name.tag",settings:{foreground:"#569cd6"}},{scope:"entity.name.tag.css",settings:{foreground:"#d7ba7d"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9cdcfe"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#d7ba7d"}},{scope:"invalid",settings:{foreground:"#f44747"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#b5cea8"}},{scope:"markup.deleted",settings:{foreground:"#ce9178"}},{scope:"markup.changed",settings:{foreground:"#569cd6"}},{scope:"punctuation.definition.quote.begin.markdown",settings:{foreground:"#6A9955"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#6796e6"}},{scope:"markup.inline.raw",settings:{foreground:"#ce9178"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#808080"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#569cd6"}},{scope:"meta.preprocessor.string",settings:{foreground:"#ce9178"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#b5cea8"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#9cdcfe"}},{scope:"meta.diff.header",settings:{foreground:"#569cd6"}},{scope:"storage",settings:{foreground:"#569cd6"}},{scope:"storage.type",settings:{foreground:"#569cd6"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#569cd6"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#ce9178"}},{scope:"string.tag",settings:{foreground:"#ce9178"}},{scope:"string.value",settings:{foreground:"#ce9178"}},{scope:"string.regexp",settings:{foreground:"#d16969"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#569cd6"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#d4d4d4"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#9cdcfe"}},{scope:"keyword",settings:{foreground:"#569cd6"}},{scope:"keyword.control",settings:{foreground:"#569cd6"}},{scope:"keyword.operator",settings:{foreground:"#d4d4d4"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#569cd6"}},{scope:"keyword.other.unit",settings:{foreground:"#b5cea8"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#569cd6"}},{scope:"support.function.git-rebase",settings:{foreground:"#9cdcfe"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#b5cea8"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#d4d4d4"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#569cd6"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#DCDCAA"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#4EC9B0"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#4EC9B0"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#C586C0"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.nam1e.variable","constant.other.placeholder"],settings:{foreground:"#9CDCFE"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#4FC1FF"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#9CDCFE"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#CE9178"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#CE9178"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#d16969"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#DCDCAA"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#d7ba7d"}},{scope:"constant.character",settings:{foreground:"#569cd6"}},{scope:"constant.character.escape",settings:{foreground:"#d7ba7d"}},{scope:"entity.name.label",settings:{foreground:"#C8C8C8"}}],colors:{"activityBar.activeBorder":"#ffffff1f","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#fff","activityBar.inactiveForeground":"#ffffff73","activityBarBadge.background":"#167CDB","activityBarBadge.foreground":"#FFFFFF","badge.background":"#FFFFFF40","badge.foreground":"#D7DBDE","breadcrumb.background":"#222830","breadcrumb.foreground":"#ffffff73","checkbox.background":"#ffffff14","checkbox.border":"#ffffff1f",descriptionForeground:"#868C91","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#43484D","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#00000000","editorGroupHeader.tabsBackground":"#222830","editorSuggestWidget.selectedBackground":"#1A66AC",errorForeground:"#D21F28",focusBorder:"#ffffff1f",foreground:"#D7DBDE","editorCommentsWidget.unresolvedBorder":"#ffffff","gitDecoration.addedResourceForeground":"#8FD460","gitDecoration.conflictingResourceForeground":"#7F9EF3","gitDecoration.deletedResourceForeground":"#F3956A","gitDecoration.ignoredResourceForeground":"#BBC0C4","gitDecoration.modifiedResourceForeground":"#F3CC62","gitDecoration.submoduleResourceForeground":"#67ABEB","gitDecoration.untrackedResourceForeground":"#58D1C9","icon.foreground":"#D7DBDE","input.background":"#ffffff14","input.foreground":"#d7dbde","input.placeholderForeground":"#ffffff59","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#332510","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#d7dbde","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#D7DBDE","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#5F656B40","kt.button.disableBorder":"#5F656B80","kt.button.disableForeground":"#5F656B","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.defaultButton.background":"#ffffff14","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#ffffff14","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#ffffff14","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#ffffff40","kt.defaultButton.foreground":"#D7DBDE","kt.defaultButton.hoverBackground":"#ffffff29","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#ffffff29","kt.defaultButton.selectionForeground":"#fff","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#ffffff73","kt.icon.hoverBackground":"#ffffff14","kt.icon.hoverForeground":"#D7DBDE","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#00000000","kt.input.disableBackground":"#5F656B40","kt.input.disableForeground":"#ffffff40","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#222830","kt.modal.foreground":"#D7DBDE","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#868C91","kt.panelTab.activeBackground":"#151b21","kt.panelTab.activeForeground":"#FFFFFF","kt.panelTab.border":"#ffffff1f","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#D7DBDE","kt.panelTitle.background":"#222830","kt.popover.background":"#2b333d","kt.popover.border":"#363940","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dffa6","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#3c8dffa6","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#00000000","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#00000000","kt.secondaryButton.border":"#5F656B","kt.secondaryButton.clickBorder":"#167CDB","kt.secondaryButton.clickForeground":"#167CDB","kt.secondaryButton.foreground":"#D7DBDE","kt.secondaryButton.hoverBorder":"#3895EB","kt.secondaryButton.hoverForeground":"#3895EB","kt.secondaryButton.background":"#00000000","kt.select.background":"#ffffff14","kt.select.border":"#00000000","kt.select.disableBackground":"#5F656B40","kt.select.disableForeground":"#5F656B","kt.select.foreground":"#D7DBDE","kt.select.placeholderForeground":"#5F656B","kt.selectDropdown.background":"#222830","kt.selectDropdown.foreground":"#D7DBDE","kt.selectDropdown.hoverBackground":"#ffffff14","kt.selectDropdown.selectionBackground":"#ffffff14","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#FFFFFF","kt.tab.borderDown":"#5F656B40","kt.tab.inactiveForeground":"#D7DBDE","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#5F656B40","kt.tree.hoverForeground":"#D7DBDE","kt.tree.inactiveSelectionBackground":"#ffffff1f","kt.tree.inactiveSelectionForeground":"#fff","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#5F656B40","menu.background":"#222830d9","menu.foreground":"#D7DBDE","menu.selectionBackground":"#5F656B40","menu.selectionForeground":"#FFFFFF","menu.separatorBackground":"#43484D","menubar.selectionBackground":"#5f656b40","menubar.selectionForeground":"#FFFFFF","message.background":"#222830","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#222830","notifications.foreground":"#D7DBDE","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#151b21","panel.border":"#43484D","panel.foreground":"#D7DBDE","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#167CDB","panelTitle.activeForeground":"#FFFFFF","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#ffffff73","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#ffffff1f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#ffffffa6","sideBarTitle.foreground":"#FFFFFF","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#ffffff73","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#d2d2d2a6","statusBarItem.prominentBackground":"#2a2a2a80","tab.activeBackground":"#151b21","tab.activeForeground":"#FFFFFF","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#ffffff73","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#151b21","terminal.border":"#252729","terminal.foreground":"#D7DBDE","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#ffffff14","editor.background":"#181818","quickInput.background":"#222830","list.focusBackground":"#ffffff1f","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#151b21"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs-dark",designThemeType:"design-dark",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-dark-theme",name:"OpenSumi Design Dark+ (default dark)"}},37517:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignThemeFileSystemProvider=void 0;const n=e(85608),r=e(76003),o=e(43718),c=n.__importDefault(e(13925)),p=n.__importDefault(e(63080));let v=class{constructor(){this.capabilities=2048,this.onDidChangeCapabilities=o.Event.None,this.onDidChangeFile=o.Event.None}stat(_){return Promise.resolve({type:o.FileType.File,uri:_.toString(),lastModification:Date.now(),isDirectory:!1})}async readFile(_){const{query:s}=_;return c.default.id===s?this.toBuffer(JSON.stringify(c.default)):this.toBuffer(JSON.stringify(p.default))}toBuffer(_){return o.BinaryBuffer.fromString(_).buffer}readDirectory(){throw new Error("Not allowed")}createDirectory(){throw new Error("Not allowed")}rename(){throw new Error("Not allowed")}delete(){throw new Error("Not allowed")}watch(){throw new Error("Not allowed")}writeFile(){throw new Error("Not allowed")}};t.DesignThemeFileSystemProvider=v,t.DesignThemeFileSystemProvider=v=n.__decorate([(0,r.Injectable)()],v)},63080:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#000000ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"meta.diff.header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#008000"}},{scope:"constant.language",settings:{foreground:"#0000ff"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#098658"}},{scope:"constant.regexp",settings:{foreground:"#811f3f"}},{name:"css tags in selectors, xml tags",scope:"entity.name.tag",settings:{foreground:"#800000"}},{scope:"entity.name.selector",settings:{foreground:"#800000"}},{scope:"entity.other.attribute-name",settings:{foreground:"#ff0000"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#800000"}},{scope:"invalid",settings:{foreground:"#cd3131"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#000080"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#800000"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#098658"}},{scope:"markup.deleted",settings:{foreground:"#a31515"}},{scope:"markup.changed",settings:{foreground:"#0451a5"}},{scope:["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],settings:{foreground:"#0451a5"}},{scope:"markup.inline.raw",settings:{foreground:"#800000"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#800000"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#0000ff"}},{scope:"meta.preprocessor.string",settings:{foreground:"#a31515"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#098658"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#0451a5"}},{scope:"storage",settings:{foreground:"#0000ff"}},{scope:"storage.type",settings:{foreground:"#0000ff"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#0000ff"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#a31515"}},{scope:["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],settings:{foreground:"#0000ff"}},{scope:"string.regexp",settings:{foreground:"#811f3f"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#0000ff"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#000000"}},{scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#ff0000"}},{scope:["support.type.property-name.json"],settings:{foreground:"#0451a5"}},{scope:"keyword",settings:{foreground:"#0000ff"}},{scope:"keyword.control",settings:{foreground:"#0000ff"}},{scope:"keyword.operator",settings:{foreground:"#000000"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#0000ff"}},{scope:"keyword.other.unit",settings:{foreground:"#098658"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#800000"}},{scope:"support.function.git-rebase",settings:{foreground:"#0451a5"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#098658"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#000000"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#0000ff"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#795E26"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#267f99"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#267f99"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#AF00DB"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],settings:{foreground:"#001080"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#0070C1"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#001080"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#d16969"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#811f3f"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#000000"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#EE0000"}},{scope:"constant.character",settings:{foreground:"#0000ff"}},{scope:"constant.character.escape",settings:{foreground:"#EE0000"}},{scope:"entity.name.label",settings:{foreground:"#000000"}}],colors:{"activityBar.activeBorder":"#151b2114","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#151b21","activityBar.inactiveForeground":"#151b21a6","activityBarBadge.background":"#3C8DFF","activityBarBadge.foreground":"#FFFFFF","badge.background":"#151b5814","badge.foreground":"#151b21a6","breadcrumb.background":"#fff","breadcrumb.foreground":"#5d646c","checkbox.background":"#fff","checkbox.border":"#151b2129",descriptionForeground:"#151b21a6","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#151b2133","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#ffffff","editorGroupHeader.tabsBackground":"#DDE8F4","editorSuggestWidget.selectedBackground":"#6eb6fa40",errorForeground:"#D21F28",focusBorder:"#151b2129",foreground:"#151b21d9","editorCommentsWidget.unresolvedBorder":"#4d9ded","gitDecoration.addedResourceForeground":"#52c41a","gitDecoration.modifiedResourceForeground":"#faad14","gitDecoration.deletedResourceForeground":"#fa541c","gitDecoration.untrackedResourceForeground":"#13c2c2","gitDecoration.ignoredResourceForeground":"#666666","gitDecoration.conflictingResourceForeground":"#ff0000","gitDecoration.submoduleResourceForeground":"#1785eb","icon.foreground":"#151b21d9","input.background":"#fff","input.foreground":"#151b21","input.placeholderForeground":"#151b2173","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#fff","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#151b21","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#151b21a6","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#151b210a","kt.button.disableBorder":"#151b2114","kt.button.disableForeground":"#151b2159","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#151b21a6","kt.icon.hoverBackground":"#151b2114","kt.icon.hoverForeground":"#151b21d9","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#151b2129","kt.input.disableBackground":"#151b210a","kt.input.disableForeground":"#151b2159","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#fff","kt.modal.foreground":"#151b21d9","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#151b21a6","kt.panelTab.activeBackground":"#fff","kt.panelTab.activeForeground":"#151b21","kt.panelTab.border":"#151b2114","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#151b21d9","kt.panelTitle.background":"#fff","kt.popover.background":"#000000e3","kt.popover.border":"#000000e3","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.defaultButton.background":"#fafafb","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#fafafb","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#fff","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#151b2159","kt.defaultButton.foreground":"#000a1aff","kt.defaultButton.hoverBackground":"#F5F5F6","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#fff","kt.defaultButton.selectionForeground":"#151b21","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dff","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#5b9fff","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#fff","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#fff","kt.secondaryButton.border":"#00000026","kt.secondaryButton.clickBorder":"#00000026","kt.secondaryButton.clickForeground":"#151b21","kt.secondaryButton.foreground":"#151b21d9","kt.secondaryButton.background":"#fff","kt.secondaryButton.hoverBorder":"#00000026","kt.secondaryButton.hoverForeground":"#151b21","kt.select.background":"#fff","kt.select.border":"#151b2129","kt.select.disableBackground":"#151b2114","kt.select.disableForeground":"#151b2159","kt.select.foreground":"#151b21","kt.select.placeholderForeground":"#151b2173","kt.selectDropdown.background":"#fff","kt.selectDropdown.foreground":"#151b21","kt.selectDropdown.hoverBackground":"#151b2114","kt.selectDropdown.selectionBackground":"#151b2114","kt.selectDropdown.selectionForeground":"#151b21","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#151b21","kt.tab.borderDown":"#151b211f","kt.tab.inactiveForeground":"#151b21a6","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#151b5814","kt.tree.hoverForeground":"#151b21","kt.tree.inactiveSelectionBackground":"#151b5814","kt.tree.inactiveSelectionForeground":"#151b21","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#151b5814","menu.background":"#FFFFFF","menu.foreground":"#151b21","menu.selectionBackground":"#151b2114","menu.selectionForeground":"#151b21","menu.separatorBackground":"#151b211f","menubar.selectionBackground":"#151b2114","menubar.selectionForeground":"#151b21","message.background":"#151b21d9","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#fff","notifications.foreground":"#151b21d9","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#fff","panel.border":"#43484D","panel.foreground":"#151b21","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#3c8dff","panelTitle.activeForeground":"#151b21","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#151b21a6","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#151b211f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#151b21d9","sideBarTitle.foreground":"#151b21d9","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#151b21a6","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#151b21a6","statusBarItem.prominentBackground":"#f1f1f180","tab.activeBackground":"#ffffff","tab.activeForeground":"#151b21","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#151b21d9","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#FFFFFF","terminal.border":"#252729","terminal.foreground":"#151b21","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#151b211f","editor.background":"#F1F2F3","quickInput.background":"#fff","list.focusBackground":"#151b5814","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#fff"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs",designThemeType:"design-light",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-light-theme",name:"OpenSumi Design Light+ (default light)"}},98741:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideMonacoColorToken=t.overrideColorToken=void 0;const n=e(85608),r=e(52416),o=n.__importDefault(e(13925)),c=n.__importDefault(e(63080)),p=()=>{const m=(0,r.getColorRegistry)();m.getColors().forEach(({id:_})=>{if(o.default.colors[_]&&c.default.colors[_]){const s=m.getColor(_);(0,r.registerColor)(_,{dark:o.default.colors[_],light:c.default.colors[_],hcDark:s.defaults.hcDark||null,hcLight:s.defaults.hcLight||null},s.description)}})};t.overrideColorToken=p;const v=()=>{(0,r.registerColor)("vscode.quickInputList.focusBackground",{light:"#151b2114",dark:"#5F656B40",hcDark:null,hcLight:null},"Quick picker background color for the focused item."),(0,r.registerColor)("quickInputList.focusForeground",{dark:"#ffffff",light:"#151b21",hcDark:null,hcLight:null},"Quick picker foreground color for the focused item.")};t.overrideMonacoColorToken=v},66338:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DESIGN_MENU_BAR_LEFT=t.DESIGN_MENU_BAR_RIGHT=t.DESIGN_MENUBAR_CONTAINER_VIEW_ID=void 0,t.DESIGN_MENUBAR_CONTAINER_VIEW_ID="design_menubar",t.DESIGN_MENU_BAR_RIGHT="design_menu_bar_right",t.DESIGN_MENU_BAR_LEFT="design_menu_bar_left"},38879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(66338),t)},82353:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(38879),t)},87802:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBreadCrumbProvider=void 0,t.findCurrentDocumentSymbol=h;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(26542),v=e(79929),m=e(97408),_=e(82196),s=e(17459),{Path:f}=c.path;let a=class extends c.WithEventBus{constructor(){super(...arguments),this._onDidUpdateBreadCrumb=new c.Emitter,this.onDidUpdateBreadCrumb=this._onDidUpdateBreadCrumb.event,this.debouncedFireUriEvent=new Map,this.cachedBreadCrumb=new c.LRUMap(200,100)}handlesUri(l){return this.fileServiceClient.handlesScheme(l.scheme)}provideBreadCrumbForUri(l,y){return this.getFileParts(l).concat(this.getDocumentSymbolParts(l,y))}getFileParts(l){const y=this.workspaceService.workspace?new c.URI(this.workspaceService.workspace.uri):void 0;let b,S;y&&y.isEqualOrParent(l)?(b=y,S=y.relative(l)):(b=c.URI.from({scheme:l.scheme,authority:l.authority}),S=l.path);let A=b.path;const w=[];for(const T of S.toString().split(f.separator).filter(D=>!!D)){A=A.join(T);const D=b.withPath(A);w.push(this.createFilePartBreadCrumbUri(D,!D.isEqual(l)))}return w}createFilePartBreadCrumbUri(l,y){const b=l.toString();if(this.cachedBreadCrumb.has(b))return this.cachedBreadCrumb.get(b);const S={name:l.path.base,uri:l,icon:this.labelService.getIcon(l,{isDirectory:y}),getSiblings:async()=>{const A=c.URI.from({scheme:l.scheme}).withPath(l.path.dir),w=await this.fileServiceClient.getFileStat(A.toString()),T=[];let D=-1;return w&&w.children&&w.children.length>0&&u(w.children).forEach((I,O)=>{T.push(this.createFilePartBreadCrumbUri(new c.URI(I.uri),I.isDirectory)),D===-1&&l.toString()===I.uri&&(D=O)}),{parts:T,currentIndex:D}}};return y?S.getChildren=async()=>{const A=await this.fileServiceClient.getFileStat(l.toString()),w=[];return A&&A.children&&A.children.length>0&&u(A.children).forEach((T,D)=>{w.push(this.createFilePartBreadCrumbUri(new c.URI(T.uri),T.isDirectory))}),w}:S.onClick=()=>{this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,l)},this.cachedBreadCrumb.set(b,S),S}getDocumentSymbolParts(l,y){if(!y)return[];const b=this.documentSymbolStore.getDocumentSymbol(l);if(b&&b.length>0){const S=h(b,y.monacoEditor.getPosition());return S.length>0?S.map(A=>this.createFromDocumentSymbol(A,y)):[{name:"...",getSiblings:()=>({parts:b.sort((A,w)=>E(A.range,w.range)).map(A=>this.createFromDocumentSymbol(A,y)),currentIndex:-1})}]}else return[]}createFromDocumentSymbol(l,y){const b={name:l.name,icon:(0,c.getSymbolIcon)(l.kind),isSymbol:!0,onClick:()=>{y.setSelection({startColumn:l.range.startColumn,endColumn:l.range.startColumn,startLineNumber:l.range.startLineNumber,endLineNumber:l.range.startLineNumber}),y.monacoEditor.revealRangeInCenter(l.range),y.monacoEditor.focus()}};return l.parent&&(b.getSiblings=()=>({parts:l.parent.children.sort((S,A)=>E(S.range,A.range)).map(S=>this.createFromDocumentSymbol(S,y)),currentIndex:l.parent.children.indexOf(l)})),l.children&&l.children.length>0&&(b.getChildren=()=>l.children.sort((S,A)=>E(S.range,A.range)).map(S=>this.createFromDocumentSymbol(S,y))),b}onDocumentSymbolChangedEvent(l){this.notifyUpdate(l.payload)}onEditorSelectionChangeEvent(l){this.notifyUpdate(l.payload.editorUri)}notifyUpdate(l){this.debouncedFireUriEvent.has(l.toString())||this.debouncedFireUriEvent.set(l.toString(),(0,r.default)(()=>{this._onDidUpdateBreadCrumb.fire(l)},100,{maxWait:1e3})),this.debouncedFireUriEvent.get(l.toString())()}};t.DefaultBreadCrumbProvider=a,n.__decorate([(0,o.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],a.prototype,"fileServiceClient",void 0),n.__decorate([(0,o.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],a.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(p.LabelService),n.__metadata("design:type",p.LabelService)],a.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],a.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",s.DocumentSymbolStore)],a.prototype,"documentSymbolStore",void 0),n.__decorate([(0,c.OnEvent)(s.DocumentSymbolChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.DocumentSymbolChangedEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onDocumentSymbolChangedEvent",null),n.__decorate([(0,c.OnEvent)(_.EditorSelectionChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.EditorSelectionChangeEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onEditorSelectionChangeEvent",null),t.DefaultBreadCrumbProvider=a=n.__decorate([(0,o.Injectable)()],a);function h(g,l){const y=[];if(!l)return y;let b=g;for(;b&&b.length>0;){let S=!1;for(const A of b)if(d(l,A.range)){y.push(A),b=A.children,S=!0;break}if(!S)break}return y}function u(g){return g.sort((l,y)=>{if(l.isDirectory&&y.isDirectory||!l.isDirectory&&!y.isDirectory){const b=new c.URI(l.uri).path.name,S=new c.URI(y.uri).path.name;return b.localeCompare(S,"kn",{numeric:!0})}else return l.isDirectory&&!y.isDirectory?-1:!l.isDirectory&&y.isDirectory?1:0})}function d(g,l){return g.lineNumber<l.startLineNumber?!1:g.lineNumber===l.startLineNumber?g.column>=l.startColumn:g.lineNumber<l.endLineNumber?!0:g.lineNumber===l.endLineNumber?g.column<=l.endColumn:!1}function E(g,l){return g.startLineNumber>l.startLineNumber?1:g.startLineNumber<l.startLineNumber?-1:g.startColumn===l.startColumn?0:g.startColumn>l.startColumn?1:-1}},17459:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SymbolTag=t.DocumentSymbolChangedEvent=t.DocumentSymbolStore=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(79865),v=e(40540);Object.defineProperty(t,"SymbolTag",{enumerable:!0,get:function(){return v.SymbolTag}});const m=e(23418),_=e(96689);let s=class extends c.WithEventBus{constructor(){super(),this.documentSymbols=new Map,this.pendingUpdate=new Set,this.debounced=new Map,this.symbolDeferred=new Map,this.addDispose(p.languageFeaturesService.documentSymbolProvider.onDidChange(()=>{Array.from(this.documentSymbols.keys()).forEach(d=>{this.markNeedUpdate(new c.URI(d))})}))}getDocumentSymbol(d){return this.documentSymbols.has(d.toString())||(this.documentSymbols.set(d.toString(),void 0),this.createDocumentSymbolCache(d)),this.pendingUpdate.has(d.toString())&&this.updateDocumentSymbolCache(d),this.documentSymbols.get(d.toString())}async getDocumentSymbolAsync(d,E){var g;const l=d.toString();return E&&E.onCancellationRequested(()=>{var y;(y=this.symbolDeferred.get(l))===null||y===void 0||y.resolve(),this.symbolDeferred.delete(l)}),(!this.documentSymbols.has(l)||this.pendingUpdate.has(l))&&!this.symbolDeferred.has(l)&&(this.symbolDeferred.set(l,new c.Deferred),this.updateDocumentSymbolCache(d)),await((g=this.symbolDeferred.get(l))===null||g===void 0?void 0:g.promise),this.documentSymbols.get(l)}async createDocumentSymbolCache(d){this.updateDocumentSymbolCache(d)}async doUpdateDocumentSymbolCache(d){var E,g;this.pendingUpdate.delete(d.toString());const l=await this.editorDocumentModelRegistry.createModelReference(d);if(!l){(E=this.symbolDeferred.get(d.toString()))===null||E===void 0||E.resolve();return}try{const y=p.languageFeaturesService.documentSymbolProvider.all(l.instance.getMonacoModel());let b;for(const S of y)if(b=await S.provideDocumentSymbols(l.instance.getMonacoModel(),new c.CancellationTokenSource().token),b)break;b&&a(b,{children:b},d),this.documentSymbols.set(d.toString(),b),this.eventBus.fire(new f(d))}finally{l.dispose()}(g=this.symbolDeferred.get(d.toString()))===null||g===void 0||g.resolve()}updateDocumentSymbolCache(d){this.debounced.has(d.toString())||this.debounced.set(d.toString(),(0,r.default)(()=>this.doUpdateDocumentSymbolCache(d),100,{maxWait:1e3})),this.debounced.get(d.toString())()}onEditorDocumentModelContentChangedEvent(d){d.payload.changes&&d.payload.changes.length>0&&this.markNeedUpdate(d.payload.uri)}markNeedUpdate(d){this.pendingUpdate.add(d.toString()),this.isWatching(d)&&this.updateDocumentSymbolCache(d)}isWatching(d){for(const E of this.editorService.editorGroups)if(E.currentResource&&E.currentResource.uri.isEqual(d))return!0;return!1}};t.DocumentSymbolStore=s,n.__decorate([(0,o.Autowired)(_.IEditorDocumentModelService),n.__metadata("design:type",Object)],s.prototype,"editorDocumentModelRegistry",void 0),n.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],s.prototype,"editorService",void 0),n.__decorate([(0,c.OnEvent)(_.EditorDocumentModelContentChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.EditorDocumentModelContentChangedEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onEditorDocumentModelContentChangedEvent",null),t.DocumentSymbolStore=s=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],s);class f extends c.BasicEvent{}t.DocumentSymbolChangedEvent=f;function a(u,d,E){return u.forEach((g,l)=>{const y=g;y.parent=d,y.id=h(E,y,l),g.children&&g.children.length>0&&a(g.children,g,E)}),u}function h(u,d,E){const g=[d.name];for(;d.parent;){const l=d.parent;if(!l.name)break;g.unshift(l.name),d=l}return`${u.toString()}__${g.join("-")}__${E}`}},88895:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumbServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(87802),{addElement:p}=o.arrays;let v=class{constructor(){this.providers=[],this._onDidUpdateBreadCrumbResults=new o.Emitter,this.onDidUpdateBreadCrumbResults=this._onDidUpdateBreadCrumbResults.event,this.crumbResults=new Map,this.registerBreadCrumbProvider(this.defaultBreadCrumbProvider)}registerBreadCrumbProvider(f){const a=p(this.providers,f);return f.onDidUpdateBreadCrumb(h=>{this.crumbResults.forEach((u,d)=>{u.has(h.toString())&&this.getBreadCrumbs(h,d)})}),a}getBreadCrumbs(f,a){const h=this.getEditorCrumbResults(a);for(const u of this.providers)if(u.handlesUri(f)){const d=h.get(f.toString()),E=u.provideBreadCrumbForUri(f,a);m(d,E)||(h.set(f.toString(),E),this._onDidUpdateBreadCrumbResults.fire({editor:a,uri:f}));break}return h.get(f.toString())}getEditorCrumbResults(f){return this.crumbResults.has(f)||(this.crumbResults.set(f,new Map),f&&f.monacoEditor.onDidDispose(()=>{this.crumbResults.delete(f)})),this.crumbResults.get(f)}disposeCrumb(f){}};t.BreadCrumbServiceImpl=v,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",c.DefaultBreadCrumbProvider)],v.prototype,"defaultBreadCrumbProvider",void 0),t.BreadCrumbServiceImpl=v=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],v);function m(s,f){if(!s&&!f)return!0;if(!s||!f)return!1;if(s.length!==f.length)return!1;for(let a=0;a<s.length;a++)if(!_(s[a],f[a]))return!1;return!0}function _(s,f){return s.name===f.name}},11673:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorComponentRegistryImpl=void 0;const n=e(85608),r=n.__importDefault(e(46343)),o=n.__importDefault(e(19106)),c=n.__importDefault(e(43144)),p=e(76003),v=e(43718),m=e(82196);let _=class{constructor(){this.components=new Map,this.sideWidgets={bottom:new Set,top:new Set},this.initialPropsMap=new Map,this.resolvers=new Map,this.normalizedResolvers=[],this.perWorkbenchComponents={}}registerEditorComponent(f,a){const h=f.uid;return f.renderMode||(f.renderMode=m.EditorComponentRenderMode.ONE_PER_GROUP),this.components.set(h,f),this.initialPropsMap.set(h,a),this.eventBus.fire(new v.ExtensionActivateEvent({topic:"onRegisterEditorComponent",data:h})),this.eventBus.fire(new m.RegisterEditorComponentEvent(h)),{dispose:()=>{this.components.get(h)===f&&(this.components.delete(h),this.eventBus.fire(new m.EditorComponentDisposeEvent(f)))}}}registerEditorComponentResolver(f,a){let h;return typeof f=="function"?h={handleScheme:f,resolver:a}:h={handleScheme:u=>u===f?10:-1,resolver:a},this.normalizedResolvers.push(h),this.resolvers.clear(),{dispose:()=>{for(const d of this.resolvers.values()){const E=d.indexOf(a);E!==-1&&d.splice(E,1)}const u=this.normalizedResolvers.indexOf(h);u!==-1&&this.normalizedResolvers.splice(u,1)}}}async resolveEditorComponent(f){let a=[];const h=this.getResolvers(f.uri.scheme).slice();let u=!1;const d=E=>{a=E,u=!0};for(const E of h)if(await E(f,a,d),u)break;return a.sort((E,g)=>{const l=E.weight||0;return(g.weight||0)-l}),(0,o.default)(a,r.default)}calculateSchemeResolver(f){const a=this.normalizedResolvers.slice(),h=[];return a.forEach((u,d)=>{const E=u.handleScheme(f);E>=0&&h.push({weight:E,index:d,resolver:u.resolver})}),h.sort((u,d)=>u.weight>d.weight?-1:u.weight<d.weight?1:d.index-u.index).map(u=>u.resolver)}getResolvers(f){return this.resolvers.has(f)||this.resolvers.set(f,this.calculateSchemeResolver(f)),this.resolvers.get(f)}getEditorComponent(f){return this.components.get(f)||null}getEditorInitialProps(f){return this.initialPropsMap.get(f)||null}clearPerWorkbenchComponentCache(f){c.default.unmountComponentAtNode(this.perWorkbenchComponents[f]),delete this.perWorkbenchComponents[f]}getSideWidgets(f,a){const h=[];return this.sideWidgets[f].forEach(u=>{u.displaysOnResource(a)&&h.push(u)}),h.sort((u,d)=>{const E=u.weight===void 0?10:u.weight;return(d.weight===void 0?10:d.weight)-E})}registerEditorSideWidget(f){const a=f.side||"bottom";return this.sideWidgets[a].add(f),this.eventBus.fire(new m.RegisterEditorSideComponentEvent),{dispose:()=>{this.sideWidgets[a].delete(f)}}}};t.EditorComponentRegistryImpl=_,n.__decorate([(0,p.Autowired)(v.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),t.EditorComponentRegistryImpl=_=n.__decorate([(0,p.Injectable)()],_)},84677:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonacoEditorDecorationApplier=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=e(76003),c=e(43718),p=e(52416),v=e(82196);let m=class extends c.Disposable{constructor(u){super(),this.editor=u,this.decorations=new Map,this.applyDecorationFromProvider(),this.editor.onDidChangeModel(()=>{this.clearDecorations(),this.applyDecorationFromProvider()}),this.editor.onDidDispose(()=>{this.dispose()}),this.addDispose(this.eventBus.on(v.EditorDecorationChangeEvent,d=>{const E=this.getEditorUri();E&&d.payload.uri.isEqual(E)&&this.applyDecorationFromProvider(d.payload.key)})),this.addDispose(this.eventBus.on(v.EditorDecorationTypeRemovedEvent,d=>{this.deltaDecoration(d.payload,[])}))}getEditorUri(){return this.editor.getModel()?new c.URI(this.editor.getModel().uri.toString()):null}async applyDecorationFromProvider(u){if(this.editor.getModel()){const d=new c.URI(this.editor.getModel().uri.toString()),E=await this.decorationService.getDecorationFromProvider(d,u);if(!this.editor.getModel()||this.editor.getModel().uri.toString()!==d.toString())return;for(const g of Object.keys(E))this.deltaDecoration(g,E[g]);this.eventBus.fire(new v.DidApplyEditorDecorationFromProvider({key:u,uri:d}))}}dispose(){super.dispose(),this.clearDecorations()}clearDecorations(){this.decorations.forEach(u=>{u.dispose(),this.editor.deltaDecorations(u.decorations,[])}),this.decorations.clear()}deltaDecoration(u,d){let E=[];if(this.decorations.has(u)&&(E=this.decorations.get(u).decorations,this.decorations.get(u).dispose(),this.decorations.delete(u)),E.length===0&&d.length===0)return;const g=this.editor.deltaDecorations(E,d);this.decorations.set(u,{decorations:g,dispose:()=>null})}applyDecoration(u,d){const E=this.decorations.get(u);E&&E.dispose();const g=E?E.decorations:[],l=[],y=new c.Disposable;if(g.length===0&&d.length===0)return;d.forEach(S=>{const A=this.resolveDecorationRenderer(u,S.renderOptions);l.push({range:S.range,options:{...A.options,hoverMessage:f(S.hoverMessage)}}),y.addDispose(A)});const b=this.editor.deltaDecorations(g,l);this.decorations.set(u,{decorations:b,dispose:()=>y.dispose()})}resolveDecorationRenderer(u,d){const E=this.decorationService.getTextEditorDecorationType(u),g={description:u},l=this.themeService.getCurrentThemeSync().type,y=new c.Disposable;if(E){const b=E.property;_(g,b,l)}if(d){const b=this.decorationService.createTextEditorDecorationType(d);_(g,b.property,l),y.addDispose(b)}return{options:g,dispose:()=>y.dispose()}}};t.MonacoEditorDecorationApplier=m,n.__decorate([(0,o.Autowired)(v.IEditorDecorationCollectionService),n.__metadata("design:type",Object)],m.prototype,"decorationService",void 0),n.__decorate([(0,o.Autowired)(p.IThemeService),n.__metadata("design:type",Object)],m.prototype,"themeService",void 0),n.__decorate([(0,o.Autowired)(c.IEventBus),n.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),t.MonacoEditorDecorationApplier=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],m);function _(h,u,d){u.overviewRulerLane&&(h.overviewRuler?h.overviewRuler.position=u.overviewRulerLane:h.overviewRuler={color:null,position:u.overviewRulerLane}),u.default&&s(h,u.default),d==="dark"&&u.dark&&s(h,u.dark),d==="light"&&u.light&&s(h,u.light),u.isWholeLine!==void 0&&(h.isWholeLine=u.isWholeLine),u.rangeBehavior&&(h.stickiness=u.rangeBehavior),h.inlineClassNameAffectsLetterSpacing=!0}function s(h,u){u.className&&(h.className=(0,r.default)(h.className,u.className)),u.inlineClassName&&(h.inlineClassName=(0,r.default)(h.inlineClassName,u.inlineClassName)),u.afterContentClassName&&(h.afterContentClassName=(0,r.default)(h.afterContentClassName,u.afterContentClassName)),u.beforeContentClassName&&(h.beforeContentClassName=(0,r.default)(h.beforeContentClassName,u.beforeContentClassName)),u.glyphMarginClassName&&(h.glyphMarginClassName=(0,r.default)(h.glyphMarginClassName,u.glyphMarginClassName)),u.overviewRulerColor&&h.overviewRuler&&(h.overviewRuler.color=u.overviewRulerColor)}function f(h){if(h)return h instanceof Array?h.map(a):a(h)}function a(h){return typeof h=="string"?{value:h,isTrusted:!0}:h}},84158:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareEditorContribution=t.CompareService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(82196);let v=class{constructor(){this.comparing=new Map}compare(s,f,a){const h=o.URI.from({scheme:p.DIFF_SCHEME,query:o.URI.stringifyQuery({name:a,original:s,modified:f,comparing:!0})});if(!this.comparing.has(h.toString())){const u=new o.Deferred;this.comparing.set(h.toString(),u),u.promise.then(()=>{this.comparing.delete(h.toString()),this.commandService.executeCommand(o.EDITOR_COMMANDS.CLOSE_ALL.id,h)})}return this.commandService.executeCommand(o.EDITOR_COMMANDS.OPEN_RESOURCE.id,h),this.comparing.get(h.toString()).promise}};t.CompareService=v,n.__decorate([(0,r.Autowired)(o.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),t.CompareService=v=n.__decorate([(0,r.Injectable)()],v);let m=class{registerMenus(s){s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.ACCEPT.id,label:(0,o.localize)("editor.action.accept")},iconClass:(0,o.getIcon)("check"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.REVERT.id,label:(0,o.localize)("editor.action.revert")},iconClass:(0,o.getIcon)("rollback"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS.id,label:(0,o.localize)("diffEditor.action.toggleCollapseUnchangedRegions")},toggledWhen:"config.diffEditor.hideUnchangedRegions.enabled",iconClass:"codicon codicon-map",group:"navigation",when:"isInDiffEditor"}])}registerCommands(s){s.registerCommand(o.DIFF_EDITOR_COMMANDS.ACCEPT,{execute:f=>{f&&this.compareService.comparing.has(f.toString())&&this.compareService.comparing.get(f.toString()).resolve(p.CompareResult.accept)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.REVERT,{execute:f=>{f&&this.compareService.comparing.has(f.toString())&&this.compareService.comparing.get(f.toString()).resolve(p.CompareResult.revert)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS,{execute:()=>{const f=this.preferenceService.get("diffEditor.hideUnchangedRegions.enabled");this.preferenceService.set("diffEditor.hideUnchangedRegions.enabled",!f,o.PreferenceScope.User)}})}};t.CompareEditorContribution=m,n.__decorate([(0,r.Autowired)(p.ICompareService),n.__metadata("design:type",v)],m.prototype,"compareService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.CompareEditorContribution=m=n.__decorate([(0,o.Domain)(c.MenuContribution,o.CommandContribution)],m)},57581:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDiffEditorContribution=t.DiffResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(26542),p=e(14951),v=e(23418),m=e(82196);let _=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=v.DIFF_SCHEME,this.modifiedToResource=new Map}onResourceDecorationChangeEvent(a){a.payload.uri&&this.modifiedToResource.has(a.payload.uri.toString())&&this.eventBus.fire(new v.ResourceDecorationNeedChangeEvent({uri:this.modifiedToResource.get(a.payload.uri.toString()),decoration:a.payload.decoration}))}async getCurrentUserHome(){if(!this.userhomePath)try{const a=await this.fileServiceClient.getCurrentUserHome();a&&(this.userhomePath=new o.URI(a.uri))}catch{}return this.userhomePath}async getReadableTooltip(a){const h=a.toString(),u=await this.getCurrentUserHome();if(!u)return decodeURIComponent(a.withScheme("").toString());if(u.isEqualOrParent(a)){const d=u&&u.toString();return decodeURIComponent(h.replace(d,"~"))}return decodeURIComponent(a.withScheme("").toString())}async provideResource(a){const{original:h,modified:u,name:d}=a.getParsedQuery(),E=new o.URI(h),g=new o.URI(u);return this.modifiedToResource.set(g.toString(),a),Promise.all([this.labelService.getIcon(E),this.getReadableTooltip(g)]).then(([l,y])=>{var b;return{name:d,icon:l,uri:a,supportsRevive:(b=this.appConfig.enableDiffRevive)!==null&&b!==void 0?b:!0,metadata:{original:E,modified:g},title:y}})}async shouldCloseResource(a,h){const{modified:u}=a.uri.getParsedQuery(),d=new o.URI(u),E=await this.resourceService.getResource(d);return E?await this.resourceService.shouldCloseResource(E,h):!0}};t.DiffResourceProvider=_,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",c.LabelService)],_.prototype,"labelService",void 0),n.__decorate([(0,r.Autowired)(v.ResourceService),n.__metadata("design:type",v.ResourceService)],_.prototype,"resourceService",void 0),n.__decorate([(0,r.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],_.prototype,"fileServiceClient",void 0),n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),n.__decorate([(0,o.OnEvent)(v.ResourceDecorationChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.ResourceDecorationChangeEvent]),n.__metadata("design:returntype",void 0)],_.prototype,"onResourceDecorationChangeEvent",null),t.DiffResourceProvider=_=n.__decorate([(0,r.Injectable)()],_);let s=class{registerResource(a){a.registerResourceProvider(this.diffResourceProvider)}registerEditorComponent(a){a.registerEditorComponentResolver(v.DIFF_SCHEME,(h,u)=>{u.push({type:m.EditorOpenType.diff})})}};t.DefaultDiffEditorContribution=s,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_)],s.prototype,"diffResourceProvider",void 0),t.DefaultDiffEditorContribution=s=n.__decorate([(0,o.Domain)(m.BrowserEditorContribution)],s)},21690:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyDocCacheImpl=void 0;const n=e(85608),r=e(76003);let o=class{hasCache(p){return!1}isFlushed(){return!0}getCache(p){return null}persistCache(p,v){}};t.EmptyDocCacheImpl=o,t.EmptyDocCacheImpl=o=n.__decorate([(0,r.Injectable)()],o)},80487:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(21690),t),n.__exportStar(e(7220),t)},7220:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDocCacheImpl=void 0;const n=e(85608),r=e(76003),o=e(51500),c=e(93107);let p=class{hasCache(m){return!0}isFlushed(){return!0}async getCache(m){const _=this.parseKeyFrom(m);return await this.storageService.getData(_)||null}persistCache(m,_){const s=this.parseKeyFrom(m),f=this.parseCacheFrom(m,_);this.storageService.setData(s,f)}parseCacheFrom(m,_){if(!(!_.dirty||!_.changeMatrix.length))return{path:m.path.toString(),startMD5:_.startMD5,changeMatrix:_.changeMatrix.map(s=>s.map(f=>(0,c.parseCacheValueFrom)(f)))}}parseKeyFrom(m){return`LocalStorageDocCacheImpl_${m.toString()}`}};t.LocalStorageDocCacheImpl=p,n.__decorate([(0,r.Autowired)(o.IWorkspaceStorageService),n.__metadata("design:type",Object)],p.prototype,"storageService",void 0),t.LocalStorageDocCacheImpl=p=n.__decorate([(0,r.Injectable)()],p)},86942:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentError=void 0;var e;(function(n){n.READ_CACHE_ERROR="EditorDocumentError:READ_CACHE_ERROR",n.APPLY_CACHE_TO_DIRTY_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIRTY_DOCUMENT",n.APPLY_CACHE_TO_DIFFERENT_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIFFERENT_DOCUMENT",n.FORMAT_ERROR="EditorDocumentError:FORMAT_ERROR"})(e||(t.EditorDocumentError=e={}))},9519:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModelServiceImpl=t.EDITOR_DOC_OPTIONS_PREF_KEY=t.EDITOR_DOCUMENT_MODEL_STORAGE=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(96405),p=e(14951),v=e(91249),m=e(96689);t.EDITOR_DOCUMENT_MODEL_STORAGE=new o.URI("editor-doc").withScheme(o.STORAGE_SCHEMA.SCOPE),t.EDITOR_DOC_OPTIONS_PREF_KEY="editor_doc_pref";let _=class extends o.WithEventBus{constructor(){super(),this.editorDocModels=new Map,this.creatingEditorModels=new Map,this._modelsToDispose=new Set,this.preferredModelOptions=new Map,this._ready=this.registerDispose(new o.ReadyEvent),this.modelCreationEventDispatcher=this.registerDispose(new o.Dispatcher),this._modelReferenceManager=new o.ReferenceManager(f=>(this._modelsToDispose.has(f)&&this._modelsToDispose.delete(f),this.getOrCreateModel(f))),this._modelReferenceManager.onReferenceAllDisposed(f=>{this._delete(f)}),this._modelReferenceManager.onInstanceCreated(f=>{this.modelCreationEventDispatcher.dispatch(f.uri.toString()),this.eventBus.fire(new m.EditorDocumentModelCreationEvent({uri:f.uri,languageId:f.languageId,eol:f.eol,encoding:f.encoding,content:f.getText(),readonly:f.readonly,versionId:f.getMonacoModel().getVersionId()}))}),this.addDispose(this.preferenceService.onPreferenceChanged(f=>{f.preferenceName==="editor.detectIndentation"&&this.editorDocModels.forEach(a=>{a.updateOptions({})})}))}onDocumentModelCreated(f,a){return this.modelCreationEventDispatcher.on(f)(a)}_delete(f){const a=this.preferenceService.get("editor.modelDisposeTime",3e3);this._modelsToDispose.add(f.toString());let h=null;const u=this.addDispose({dispose:()=>{h&&clearTimeout(h)}});h=window.setTimeout(()=>{u.dispose(),h=null,this._modelsToDispose.has(f.toString())&&this._doDelete(f.toString())},a)}_doDelete(f){const a=this.editorDocModels.get(f);if(a&&(!a.dirty||a.disposeEvenDirty))return a.dispose(),this.editorDocModels.delete(f),a;this._modelsToDispose.delete(f)}async changeModelOptions(f,a){return this.onceReady(()=>{this.preferredModelOptions.has(f.toString())&&(a={...this.preferredModelOptions.get(f.toString()),...a}),this.preferredModelOptions.set(f.toString(),a);const h=this.getModelReference(f);return h&&(a.encoding&&a.encoding!==h.instance.encoding&&h.instance.updateEncoding(a.encoding),a.languageId&&a.languageId!==h.instance.languageId&&(h.instance.languageId=a.languageId),a.eol&&a.eol!==h.instance.eol&&(h.instance.eol=a.eol),h.dispose()),this.persistOptionsPreference()})}persistOptionsPreference(){return this.storage.set(t.EDITOR_DOC_OPTIONS_PREF_KEY,JSON.stringify((0,o.mapToSerializable)(this.preferredModelOptions)))}async initialize(){if(this.storage=await this.getStorage(t.EDITOR_DOCUMENT_MODEL_STORAGE),this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY))try{this.preferredModelOptions=(0,o.serializableToMap)(JSON.parse(this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY)))}catch(f){this.logger.error(f)}this._ready.ready()}async acceptExternalChange(f){this.hashCalculateService.initialized||await this.hashCalculateService.initialize();const a=this.editorDocModels.get(f.payload.toString());if(a&&!a.dirty){const h=await this.contentRegistry.getProvider(a.uri);if(h)if(h.provideEditorDocumentModelContentMd5)await h.provideEditorDocumentModelContentMd5(a.uri,a.encoding)!==a.getBaseContentMd5()&&a.updateContent(await this.contentRegistry.getContentForUri(a.uri,a.encoding),void 0,!0);else{const u=await this.contentRegistry.getContentForUri(a.uri,a.encoding);this.hashCalculateService.calculate(u)!==a.getBaseContentMd5()&&a.updateContent(u,void 0,!0)}}}createModelReference(f,a){return this._modelReferenceManager.getReference(f.toString(),a)}getModelReference(f,a){return this._modelReferenceManager.getReferenceIfHasInstance(f.toString(),a)}getModelDescription(f,a){const h=this.getModelReference(f,a);if(!h)return null;const u=h.instance,d={alwaysDirty:u.alwaysDirty,closeAutoSave:u.closeAutoSave,disposeEvenDirty:u.disposeEvenDirty,eol:u.eol,encoding:u.encoding,dirty:u.dirty,languageId:u.languageId,readonly:u.readonly,uri:u.uri,id:u.id,savable:u.savable};return h.dispose(),d}getAllModels(){return Array.from(this.editorDocModels.values())}hasLanguage(f){return this.getAllModels().findIndex(a=>a.languageId===f)!==-1}async getOrCreateModel(f,a){return this.editorDocModels.has(f)?this.editorDocModels.get(f):this.createModel(f,a)}get onceReady(){return this.initialize(),this._ready.onceReady.bind(this._ready)}createModel(f,a){if(!this.creatingEditorModels.has(f)){const h=this.doCreateModel(f,a).then(u=>(this.creatingEditorModels.delete(f),u),u=>{throw this.creatingEditorModels.delete(f),u});this.creatingEditorModels.set(f,h)}return this.creatingEditorModels.get(f)}async doCreateModel(f,a){const h=new o.URI(f);let u=await this.contentRegistry.getProvider(h);if(u||await this.fileSystem.shouldWaitProvider(h.scheme)&&(u=await this.contentRegistry.getProvider(h)),!u)throw new Error(`No document provider found for ${h.toString()}`);const[d,E,g,l,y,b]=await Promise.all([u.provideEditorDocumentModelContent(h,a),u.isReadonly?u.isReadonly(h):void 0,u.preferLanguageForUri?u.preferLanguageForUri(h):void 0,u.isAlwaysDirty?u.isAlwaysDirty(h):!1,u.closeAutoSave?u.closeAutoSave(h):!1,u.disposeEvenDirty?u.disposeEvenDirty(h):!1]);!a&&u.provideEncoding&&(a=await u.provideEncoding(h));const S=u.provideEOL?await u.provideEOL(h):`
|
|
30463
|
+
`))}}})}registerMenus(u){u.registerMenuItem(c.MenuId.DebugCallStackContext,{command:{id:p.DEBUG_COMMANDS.RESTART_FRAME.id,label:(0,o.localize)("debugger.menu.restartFrame")},when:`${v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame")} && ${v.CONTEXT_RESTART_FRAME_SUPPORTED.raw}`,enabledWhen:v.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.raw,order:10}),u.registerMenuItem(c.MenuId.DebugCallStackContext,{command:{id:p.DEBUG_COMMANDS.COPY_STACK_TRACE.id,label:(0,o.localize)("debugger.menu.copyCallstack")},when:v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame"),order:20})}};t.DebugCallStackContribution=a,n.__decorate([(0,r.Autowired)(m.IDebugSessionManager),n.__metadata("design:type",_.DebugSessionManager)],a.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(o.IClipboardService),n.__metadata("design:type",Object)],a.prototype,"clipboardService",void 0),t.DebugCallStackContribution=a=n.__decorate([(0,o.Domain)(c.MenuContribution,o.CommandContribution)],a)},61520:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackOperationView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(66498),p=e(96090),v=n.__importDefault(e(12920)),m=_=>{const{session:s,thread:f}=_,{doStop:a,doStepIn:h,doStepOut:u,doStepOver:d,doContinue:E,doRestart:g,doPause:l,updateCurrentSession:y}=(0,o.useInjectable)(p.DebugToolbarService);if(s&&!f){const b=S=>{y(s),S()};return r.default.createElement("div",{className:v.default.debug_stack_session_operations},r.default.createElement(c.DebugAction,{run:()=>b(g),icon:"reload",label:(0,o.localize)("debug.action.restart")}),r.default.createElement(c.DebugAction,{run:()=>b(a),icon:"stop",label:(0,o.localize)("debug.action.stop")}))}if(!s&&f){const{stopped:b}=f,S=w=>{f.session.currentThread=f,w()},A=w=>w?r.default.createElement(c.DebugAction,{run:()=>S(E),icon:"continue",label:(0,o.localize)("debug.action.continue")}):r.default.createElement(c.DebugAction,{run:()=>S(l),enabled:!0,icon:"pause",label:(0,o.localize)("debug.action.pause")});return r.default.createElement("div",{className:v.default.debug_stack_thread_operations},A(b),r.default.createElement(c.DebugAction,{run:()=>S(d),enabled:b,icon:"step",label:(0,o.localize)("debug.action.step-over")}),r.default.createElement(c.DebugAction,{run:()=>S(h),enabled:b,icon:"step-in",label:(0,o.localize)("debug.action.step-into")}),r.default.createElement(c.DebugAction,{run:()=>S(u),enabled:b,icon:"step-out",label:(0,o.localize)("debug.action.step-out")}))}return null};t.DebugStackOperationView=m},85294:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackService=void 0;const n=e(85608),r=e(76003),o=e(93899),c=e(50755),p=e(4983),v=e(17280),m=e(29539);let _=class{constructor(){this.handleContextMenu=(f,a)=>{this.stackFrameSupportsRestart.reset(),f.stopPropagation(),f.preventDefault(),a instanceof m.DebugSession?this.callStackItemType.set("session"):a instanceof c.DebugThread?this.callStackItemType.set("thread"):a instanceof c.DebugStackFrame?(this.callStackItemType.set("stackFrame"),this.stackFrameSupportsRestart.set(a.canRestart)):this.callStackItemType.reset();const{x:h,y:u}=f.nativeEvent,d=this.contextMenuService.createMenu({id:o.MenuId.DebugCallStackContext,contextKeyService:this.debugContextKey.contextKeyScoped}),E=d.getMergedMenuNodes();d.dispose();const g=()=>{var y;return a instanceof c.DebugStackFrame?!((y=a.source)===null||y===void 0)&&y.inMemory?a.source.raw.path||a.source.reference||a.source.name:a.source?a.source.uri.toString():"":a instanceof c.DebugThread||a instanceof m.DebugSession?a.id:""},l=()=>a instanceof c.DebugStackFrame?{sessionId:a.session.id,threadId:a.thread.id,frameId:a.id}:a instanceof c.DebugThread?{sessionId:a.session.id,threadId:a.id}:a instanceof m.DebugSession?{sessionId:a.id}:void 0;this.ctxMenuRenderer.show({anchor:{x:h,y:u},menuNodes:E,args:[g(),l()],contextKeyService:this.debugContextKey.contextKeyScoped})},this.stackFrameSupportsRestart||(this.stackFrameSupportsRestart=p.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.bind(this.debugContextKey.contextKeyScoped)),this.callStackItemType||(this.callStackItemType=p.CONTEXT_CALLSTACK_ITEM_TYPE.bind(this.debugContextKey.contextKeyScoped))}};t.DebugCallStackService=_,n.__decorate([(0,r.Autowired)(o.AbstractContextMenuService),n.__metadata("design:type",o.AbstractContextMenuService)],_.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(o.ICtxMenuRenderer),n.__metadata("design:type",o.ICtxMenuRenderer)],_.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(v.DebugContextKey),n.__metadata("design:type",v.DebugContextKey)],_.prototype,"debugContextKey",void 0),t.DebugCallStackService=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},18028:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(64582),p=e(75651),v=n.__importDefault(e(12920)),m=({viewState:_})=>{const s=(0,o.useInjectable)(c.IDebugSessionManager),[f,a]=r.default.useState([]);return r.default.useEffect(()=>{const h=s.onDidStartDebugSession(d=>{f.push(d),a([...f])}),u=s.onDidDestroyDebugSession(d=>{const E=f.findIndex(g=>g.id===d.id);f.splice(E,1),a([...f])});return()=>{h.dispose(),u.dispose()}},[]),r.default.createElement("div",{className:v.default.call_stack_wrapper},f.filter(h=>!h.parentSession).map(h=>r.default.createElement(p.DebugStackSessionView,{key:h.id,viewState:_,session:h,indent:0})))};t.DebugCallStackView=m},59334:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModel=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(98650);let m=n=class extends c.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(c.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugVariablesModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugVariablesModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},30865:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModelService=void 0;const r=e(85608),o=r.__importDefault(e(46343)),c=e(76003),p=e(97267),v=e(41869),m=e(93899),_=e(98650),s=e(32756),f=e(17280),a=e(59334),h=r.__importDefault(e(57259));class u{constructor(){this._keepExpandedScopesMap=new Map}getMirrorScope(g){return Array.from(this._keepExpandedScopesMap.keys()).find(l=>(0,o.default)(l,g.getRawScope()))}set(g){const l=g.getRawScope();if(l){const y=this.getMirrorScope(g);if(y){const b=this._keepExpandedScopesMap.get(y);let S;g.expanded?S=Array.from(new Set([...b,g.variablesReference])):S=b.filter(A=>A!==g.variablesReference),this._keepExpandedScopesMap.set(y,S)}else this._keepExpandedScopesMap.set(l,g.expanded?[g.variablesReference]:[])}}get(g){const l=this.getMirrorScope(g);return l?this._keepExpandedScopesMap.get(l)||[]:[]}clear(){this._keepExpandedScopesMap.clear()}}let d=n=class{constructor(){this.selectedDecoration=new p.Decoration(h.default.mod_selected),this.focusedDecoration=new p.Decoration(h.default.mod_focused),this.contextMenuDecoration=new p.Decoration(h.default.mod_actived),this.loadingDecoration=new p.Decoration(h.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new v.Emitter,this.onDidUpdateTreeModelEmitter=new v.Emitter,this.flushDispatchChangeDelayer=new v.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new v.DisposableCollection,this.keepExpandedScopesModel=new u,this.activeNodeDecoration=(g,l=!0)=>{var y;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),g){if(this.selectedNodes.length>0)for(const b of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(b);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(g),this.focusedDecoration.addTarget(g),this._focusedNode=g,this._selectedNodes=[g],l&&((y=this.treeModel)===null||y===void 0||y.dispatchChange())}},this.activeNodeActivedDecoration=g=>{var l;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(g),this._contextMenuNode=g,(l=this.treeModel)===null||l===void 0||l.dispatchChange()},this.enactiveNodeDecoration=()=>{var g;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(g=this.treeModel)===null||g===void 0||g.dispatchChange()},this.handleContextMenu=(g,l)=>{var y;if(g.stopPropagation(),g.preventDefault(),!l||l instanceof _.DebugScope){this.enactiveNodeDecoration(),this.debugContextKey.contextVariableEvaluateNamePresent.set(!1);return}this._currentVariableInternalContext=l;const{x:b,y:S}=g.nativeEvent;l&&(this.activeNodeActivedDecoration(l),this.debugContextKey.contextDebugProtocolVariableMenu.set(l.variableMenuContext),this.debugContextKey.contextVariableEvaluateNamePresent.set(!!l.evaluateName)),!((y=l.session)===null||y===void 0)&&y.capabilities.supportsReadMemoryRequest&&l.memoryReference!==void 0?this.debugContextKey.contextCanViewMemory.set(!0):this.debugContextKey.contextCanViewMemory.set(!1);const A=this.contextMenuService.createMenu({id:m.MenuId.DebugVariablesContext,contextKeyService:this.debugContextKey.contextKeyScoped}),w=A.getMergedMenuNodes();A.dispose(),this.ctxMenuRenderer.show({anchor:{x:b,y:S},menuNodes:w,args:[l.toDebugProtocolObject()]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=g=>{this.activeNodeDecoration(g)},this.handleTwistierClick=(g,l)=>{l===p.TreeNodeType.CompositeTreeNode?(this.activeNodeDecoration(g,!1),this.toggleDirectory(g)):this.activeNodeDecoration(g)},this.toggleDirectory=async g=>{g.expanded?g.setCollapsed():await g.setExpanded(!0),this.keepExpandedScopesModel.set(g)},this.listenViewModelChange()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugVariablesTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get currentVariableInternalContext(){return this._currentVariableInternalContext}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenViewModelChange(){this.viewModel.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{var g,l;if(this.viewModel&&this.viewModel.currentSession&&!this.viewModel.currentSession.terminated){const y=await this.initTreeModel(this.viewModel.currentSession);this._activeTreeModel=y,await((g=this._activeTreeModel)===null||g===void 0?void 0:g.ensureReady);const b=((l=this._activeTreeModel)===null||l===void 0?void 0:l.root.children)||[];if(b.length>0&&b.every(A=>!A.expanded))for(const A of b)A.getRawScope().expensive===!1&&!A.expanded&&await this.toggleDirectory(A);const S=async A=>{for(const w of A)this.keepExpandedScopesModel.get(w).includes(w.variablesReference)&&(await w.setExpanded(!0),Array.isArray(w.children)&&await S(w.children))};b.forEach(async A=>{Array.isArray(A.children)&&await S(A.children)})}else this._activeTreeModel=void 0,this.keepExpandedScopesModel.clear();this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel)})})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(p.TreeNodeEvent.WillResolveChildren,g=>{this.loadingDecoration.addTarget(g)})),this.disposableCollection.push(this.treeModel.root.watcher.on(p.TreeNodeEvent.DidResolveChildren,g=>{this.loadingDecoration.removeTarget(g)})))}async initTreeModel(g){const l=new _.DebugVariableRoot(g);if(l)return this._activeTreeModel=this.injector.get(a.DebugVariablesModel,[l]),this.initDecorations(l),this.listenTreeViewChange(),this._activeTreeModel}initDecorations(g){this._decorations=new p.DecorationsManager(g),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.loadingDecoration),this.decorations.removeDecoration(this.contextMenuDecoration))}handleTreeHandler(g){this._debugVariablesTreeHandle={...g,getModel:()=>this.treeModel}}async copyEvaluateName(g){g&&await this.clipboardService.writeText(g.evaluateName)}async copyValue(g){if(!g)return;const y=await(async()=>{if(g.session&&g.session.capabilities.supportsValueFormattingOptions)try{const{variable:{evaluateName:b}}=g;if(b){const S=await g.session.evaluate(b,"clipboard");if(S)return S.result}return""}catch{return""}else return g.value})();y&&await this.clipboardService.writeText(y)}};t.DebugVariablesModelService=d,d.DEFAULT_TRIGGER_DELAY=200,r.__decorate([(0,c.Autowired)(c.INJECTOR_TOKEN),r.__metadata("design:type",c.Injector)],d.prototype,"injector",void 0),r.__decorate([(0,c.Autowired)(m.ICtxMenuRenderer),r.__metadata("design:type",m.ICtxMenuRenderer)],d.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,c.Autowired)(m.AbstractContextMenuService),r.__metadata("design:type",m.AbstractContextMenuService)],d.prototype,"contextMenuService",void 0),r.__decorate([(0,c.Autowired)(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],d.prototype,"viewModel",void 0),r.__decorate([(0,c.Autowired)(v.IClipboardService),r.__metadata("design:type",Object)],d.prototype,"clipboardService",void 0),r.__decorate([(0,c.Autowired)(f.DebugContextKey),r.__metadata("design:type",f.DebugContextKey)],d.prototype,"debugContextKey",void 0),t.DebugVariablesModelService=d=n=r.__decorate([(0,c.Injectable)(),r.__metadata("design:paramtypes",[])],d)},86752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(43718),v=e(57517),m=e(14951),_=e(2156),s=e(72665),f=e(94170),a=e(23268),h=e(64582),u=e(61752),d=e(32756),E=e(4983),g=e(95033),l=e(30865);let y=class{registerCommands(S){S.registerCommand(h.DEBUG_COMMANDS.SET_VARIABLE_VALUE,{execute:async()=>{var T;this.reporterService.point(h.DEBUG_REPORT_NAME===null||h.DEBUG_REPORT_NAME===void 0?void 0:h.DEBUG_REPORT_NAME.DEBUG_VARIABLES,h.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id);const{currentVariableInternalContext:D}=this.debugVariablesModelService;if(!D)return;const I=await this.quickInputService.open({placeHolder:(0,o.localize)("debugger.menu.setValue.param"),value:D.description.replace(/^\"(.*)\"$/,"$1")});if(I!=null){try{await D.setValue(I)}catch(O){this.messageService.error(O.message)}(T=this.debugVariablesModelService.treeModel)===null||T===void 0||T.dispatchChange()}}}),S.registerCommand(h.DEBUG_COMMANDS.COPY_VARIABLE_VALUE,{execute:async()=>{const{currentVariableInternalContext:T}=this.debugVariablesModelService;this.debugVariablesModelService.copyValue(T)}}),S.registerCommand(h.DEBUG_COMMANDS.COPY_EVALUATE_PATH,{execute:async()=>{const{currentVariableInternalContext:T}=this.debugVariablesModelService;this.debugVariablesModelService.copyEvaluateName(T)}}),S.registerCommand(h.DEBUG_COMMANDS.ADD_TO_WATCH_ID,{execute:async T=>{const{currentVariableInternalContext:D}=this.debugVariablesModelService;if(T instanceof p.URI){const I=this.workbenchEditorService.currentEditor;if(!I?.monacoEditor||!I?.monacoEditor.hasModel())return;const O=I.monacoEditor,M=O.getModel().getValueInRange(O.getSelection());this.debugWatchModelService.addWatchExpression(M);return}else D&&this.debugWatchModelService.addWatchExpression(D.evaluateName)}});const A="ms-vscode.hexeditor",w=`${p.CUSTOM_EDITOR_SCHEME}-hexEditor.hexedit`;S.registerCommand(h.DEBUG_COMMANDS.VIEW_MEMORY_ID,{execute:async T=>{var D;const I=await this.commandService.executeCommand("extension.getDescription",A);if(I&&I.enabled){const O=(D=this.viewModel.currentSession)===null||D===void 0?void 0:D.id,M=T.memoryReference;this.workbenchEditorService.open(p.URI.from({scheme:E.DEBUG_MEMORY_SCHEME,authority:O,path:"/"+encodeURIComponent(M||"")+"/memory.bin"}),{disableNavigate:!0,preview:!0,forceOpenType:{type:v.EditorOpenType.component,componentId:w}})}else this.messageService.warning((0,o.localize)("debug.variables.view.memory.prompt.hexEditor.notInstalled"))}})}async initialize(){this.fileSystem.registerProvider(E.DEBUG_MEMORY_SCHEME,this.debugMemoryFileSystemProvider)}registerResource(S){S.registerResourceProvider({scheme:E.DEBUG_MEMORY_SCHEME,provideResource:async A=>({uri:A,icon:(0,o.getIcon)("hex"),name:A.displayName})})}registerMenus(S){var A;S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.setValue")},order:10,when:E.CONTEXT_SET_VARIABLE_SUPPORTED.raw,group:"3_modification"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.COPY_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.copyValue")},order:10,group:"5_cutcopypaste"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.COPY_EVALUATE_PATH.id,label:(0,o.localize)("debugger.menu.copyEvaluatePath")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:20,group:"5_cutcopypaste"}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:100,group:"z_commands"}),S.registerMenuItem(c.MenuId.EditorContext,{command:{id:h.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:(A=a.ContextKeyExpr.and(f.EditorContextKeys.hasNonEmptySelection,f.EditorContextKeys.editorTextFocus))===null||A===void 0?void 0:A.keys().reduce((w,T)=>w+" && "+T,E.CONTEXT_IN_DEBUG_MODE.raw),group:"debug",order:1}),S.registerMenuItem(c.MenuId.DebugVariablesContext,{command:{id:h.DEBUG_COMMANDS.VIEW_MEMORY_ID.id,label:(0,o.localize)("debug.variables.view.memory")},iconClass:"",when:`${E.CONTEXT_CAN_VIEW_MEMORY.equalsTo(!0)} && ${E.CONTEXT_IN_DEBUG_MODE.equalsTo(!0)}`,type:"icon"})}};t.VariablesPanelContribution=y,n.__decorate([(0,r.Autowired)(o.IQuickInputService),n.__metadata("design:type",Object)],y.prototype,"quickInputService",void 0),n.__decorate([(0,r.Autowired)(l.DebugVariablesModelService),n.__metadata("design:type",l.DebugVariablesModelService)],y.prototype,"debugVariablesModelService",void 0),n.__decorate([(0,r.Autowired)(g.DebugWatchModelService),n.__metadata("design:type",g.DebugWatchModelService)],y.prototype,"debugWatchModelService",void 0),n.__decorate([(0,r.Autowired)(v.WorkbenchEditorService),n.__metadata("design:type",v.WorkbenchEditorService)],y.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(s.IMessageService),n.__metadata("design:type",Object)],y.prototype,"messageService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],y.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(p.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],y.prototype,"viewModel",void 0),n.__decorate([(0,r.Autowired)(m.IFileServiceClient),n.__metadata("design:type",_.FileServiceClient)],y.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(u.DebugMemoryFileSystemProvider),n.__metadata("design:type",u.DebugMemoryFileSystemProvider)],y.prototype,"debugMemoryFileSystemProvider",void 0),t.VariablesPanelContribution=y=n.__decorate([(0,o.Domain)(o.ClientAppContribution,v.BrowserEditorContribution,c.MenuContribution,o.CommandContribution)],y)},28875:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=t.DebugVariableRenderedNode=t.DebugVariableView=t.DEBUG_VARIABLE_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(97267),p=e(41869),v=e(98650),m=e(30865),_=n.__importDefault(e(57259));t.DEBUG_VARIABLE_TREE_FIELD_NAME="DEBUG_VARIABLE_TREE_FIELD";const s=({viewState:a})=>{const h=(0,p.useInjectable)(m.DebugVariablesModelService),u=o.default.useRef(null),[d,E]=o.default.useState(),g=22,{width:l,height:y}=a;o.default.useEffect(()=>{const M=h.onDidUpdateTreeModel(async R=>{E(R)});return()=>{M.dispose(),h.removeNodeDecoration(),E(void 0)}},[]);const b=M=>{h.handleTreeHandler({...M,hasDirectFocus:()=>u.current===document.activeElement})},S=(M,R,P)=>{M.stopPropagation();const{handleTwistierClick:k}=h;R&&k(R,P)},A=(M,R)=>{const{handleContextMenu:P}=h;P(M,R)},w=M=>{const{handleContextMenu:R}=h;R(M)},T=M=>{const{enactiveNodeDecoration:R}=h;R()},D=M=>{const{enactiveNodeDecoration:R}=h;R()},I=o.default.useCallback(M=>{const R=h.decorations.getDecorations(M.item);return o.default.createElement(t.DebugVariableRenderedNode,{item:M.item,itemType:M.itemType,decorations:R,onClick:S,onTwistierClick:S,onContextMenu:A,defaultLeftPadding:0,leftPadding:8})},[d]),O=()=>d?o.default.createElement(c.RecycleTree,{height:y,width:l,itemHeight:g,onReady:b,model:d,placeholder:()=>o.default.createElement("span",null),overflow:"auto"},I):o.default.createElement("span",null);return o.default.createElement("div",{className:_.default.debug_variables_container,tabIndex:-1,ref:u,onContextMenu:w,onClick:T,onBlur:D,"data-name":t.DEBUG_VARIABLE_TREE_FIELD_NAME},O())};t.DebugVariableView=s;const f=({item:a,decorations:h,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:g,onContextMenu:l,itemType:y})=>{const b=(0,p.useDesignStyles)(_.default.expansion_toggle,"expansion_toggle"),S=k=>{E(k,a,c.CompositeTreeNode.is(a)?c.TreeNodeType.CompositeTreeNode:c.TreeNodeType.TreeNode)},A=k=>{k.nativeEvent.which!==0&&(y===c.TreeNodeType.TreeNode||y===c.TreeNodeType.CompositeTreeNode)&&l&&l(k,a,y)},w=`${(u||8)+(a.depth||0)*(d||0)+(v.ExpressionContainer.is(a)?0:16)}px`,T={height:t.DEBUG_VARIABLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_VARIABLE_TREE_NODE_HEIGHT}px`,paddingLeft:w},D=k=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,_.default.debug_variables_node_displayname,_.default.debug_variables_variable,k.description?_.default.name:"")},k.displayName,k.description?":":""),I=k=>{const F=/^true|false$/i,L=/^(['"]).*\1$/,{description:N=""}=k,j=N!=="undefined"?N.replace("function","\u0192 "):"",W=[_.default.debug_variables_variable];return a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?W.push(_.default[a.variableType]):isNaN(+j)?F.test(j)?W.push(_.default.boolean):L.test(j)&&W.push(_.default.string):W.push(_.default.number),o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment_grow,_.default.debug_variables_node_description,...W)},j)},O=()=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,_.default.debug_variables_node_tail)},M()),M=()=>o.default.createElement("div",{className:_.default.debug_variables_node_status},a.badge),R=(k,F)=>{const L=N=>{F(N,k,y)};return h&&h?.classlist.indexOf(_.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_segment,b)},o.default.createElement(c.Loading,null)):o.default.createElement("div",{onClick:L,className:(0,r.default)(_.default.debug_variables_node_segment,b,(0,p.getIcon)("right"),{[`${_.default.mod_collapsed}`]:!k.expanded})})},P=k=>{if(c.CompositeTreeNode.is(k))return R(k,g)};return o.default.createElement("div",{key:a.id,onClick:S,onContextMenu:A,title:a.description||"",className:(0,r.default)(_.default.debug_variables_node,h?h.classlist:null),style:T,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(_.default.debug_variables_node_content)},P(a),o.default.createElement("div",{className:_.default.debug_variables_node_overflow_wrap},D(a),I(a)),O()))};t.DebugVariableRenderedNode=f,t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=22},85454:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModel=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(98650);let m=n=class extends c.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(c.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugWatchModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugWatchModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},95033:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModelService=void 0;const r=e(85608),o=e(76003),c=e(97267),p=e(41869),v=e(93899),m=e(38029),_=e(50755),s=e(98650),f=e(32756),a=e(4983),h=e(26296),u=e(85454),d=r.__importDefault(e(21315)),{Path:E}=p.path;let g=n=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new c.Decoration(d.default.mod_selected),this.focusedDecoration=new c.Decoration(d.default.mod_focused),this.contextMenuDecoration=new c.Decoration(d.default.mod_actived),this.loadingDecoration=new c.Decoration(d.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new p.Emitter,this.onDidUpdateTreeModelEmitter=new p.Emitter,this.flushDispatchChangeDelayer=new p.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new p.DisposableCollection,this.loadedDeferred=new p.Deferred,this.activeNodeDecoration=(y,b=!0)=>{var S;if(a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService),this.contextMenuNode&&(this.focusedDecoration.removeTarget(this.contextMenuNode),this.selectedDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),y){if(this.selectedNodes.length>0)for(const A of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(A);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(y),this.focusedDecoration.addTarget(y),this._focusedNode=y,this._selectedNodes=[y],b&&((S=this.treeModel)===null||S===void 0||S.dispatchChange())}},this.activeNodeActivedDecoration=y=>{var b;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(y),this._contextMenuNode=y,(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.enactiveNodeDecoration=()=>{var y;a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService).set(!1),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(y=this.treeModel)===null||y===void 0||y.dispatchChange()},this.handleContextMenu=(y,b)=>{var S;y.stopPropagation(),y.preventDefault();const{x:A,y:w}=y.nativeEvent;b?this.activeNodeActivedDecoration(b):this.enactiveNodeDecoration();let T;b?T=b:T=(S=this.treeModel)===null||S===void 0?void 0:S.root,this.watchItemType.set(T instanceof s.DebugWatchNode?"expression":T instanceof s.DebugVariable||T instanceof s.DebugVariableContainer?"variable":void 0);const D=this.contextMenuService.createMenu({id:v.MenuId.DebugWatchContext,contextKeyService:this.contextMenuContextKeyService}),I=D.getMergedMenuNodes();D.dispose(),this.ctxMenuRenderer.show({anchor:{x:A,y:w},menuNodes:I,args:[T]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=y=>{this.activeNodeDecoration(y)},this.handleTwistierClick=(y,b)=>{if(b===c.TreeNodeType.CompositeTreeNode){if(s.DebugWatchNode.is(y)&&y.available){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}else if(y.variablesReference){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}}this.activeNodeDecoration(y)},this.toggleDirectory=async y=>{y.expanded?this.treeHandle.collapseNode(y):this.treeHandle.expandNode(y)},this.proxyPrompt=y=>{let b=!1;const S=async A=>{if(!b){if(b=!0,A){if(y instanceof c.NewPromptHandle){const w=y.parent;if(y.addAddonAfter("loading_indicator"),w.session)this.addWatchExpression(A);else{const T=new s.DebugWatchNode(w.session,A,w);this.dispatchWatchEvent(w.path,{type:c.WatchEvent.Added,node:T,id:w.id}),this.debugWatch.addWatchExpression(A)}}else if(y instanceof c.RenamePromptHandle){const w=y.target,T=w.parent;if(y.addAddonAfter("loading_indicator"),T.session)this.debugWatch.renameWatchExpression(w.name,A),this.initTreeModel();else{const D=new E(w.path).dir.join(A).toString();this.dispatchWatchEvent(T.path,{type:c.WatchEvent.Moved,oldPath:w.path,newPath:D}),this.debugWatch.renameWatchExpression(w.name,A)}}}return!0}};y.destroyed||(y.onCommit(S),y.onBlur(S))},this.flushEventQueue=()=>{let y;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((S,A)=>{const w=E.pathDepth(S),T=E.pathDepth(A);return w-T});const b=[this._changeEventDispatchQueue[0]];for(const S of this._changeEventDispatchQueue)b.some(A=>S.indexOf(A)===0)||b.push(S);return y=(0,p.pSeries)(b.map(S=>async()=>{var A,w;const T=(w=(A=this.treeModel)===null||A===void 0?void 0:A.root)===null||w===void 0?void 0:w.watchEvents.get(S);return T&&typeof T.callback=="function"&&await T.callback({type:c.WatchEvent.Changed,path:S}),null})),this._changeEventDispatchQueue=[],y},this.debugWatch=new _.DebugWatch(this.manager,this.reporterService),this.init(),this.watchItemType=a.CONTEXT_WATCH_ITEM_TYPE.bind(this.contextKeyService)}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}async save(y=[]){await(await this.storageProvider(p.STORAGE_NAMESPACE.DEBUG)).set(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,y)}async load(){const b=await(await this.storageProvider(p.STORAGE_NAMESPACE.DEBUG)).get(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,[]);await this.debugWatch.updateWatchExpressions(b),this.loadedDeferred.resolve()}async init(){await this.loadedDeferred.promise,this.initTreeModel(),this.listenDebugWatchChange()}listenDebugWatchChange(){this.debugWatch.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.initTreeModel()})}),this.debugWatch.onDidVariableChange(async()=>{this.refresh()}),this.debugWatch.onDidExpressionChange(y=>{this.save(y)})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.WillResolveChildren,y=>{this.loadingDecoration.addTarget(y)})),this.disposableCollection.push(this.treeModel.root.watcher.on(c.TreeNodeEvent.DidResolveChildren,y=>{this.loadingDecoration.removeTarget(y)})))}async initTreeModel(){const y=await this.debugWatch.getRoot();if(y)return this._activeTreeModel=this.injector.get(u.DebugWatchModel,[y]),this.initDecorations(y),this.listenTreeViewChange(),this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel),this._activeTreeModel}initDecorations(y){this._decorations=new c.DecorationsManager(y),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(y){this._debugWatchTreeHandle=y}async newDebugWatchNodePrompt(){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptNewTreeNode(this.treeModel.root))}async renameDebugWatchNodePrompt(y){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptRename(y))}removeDebugWatchNode(y){this.debugWatch.removeWatchExpression(y.name),y.session?this.initTreeModel():this.dispatchWatchEvent(y.parent.path,{type:c.WatchEvent.Removed,path:y.path})}async copyValue(y){const b=await y.getClipboardValue();b&&await this.clipboardService.writeText(b)}async clearAllExpression(){this.debugWatch.updateWatchExpressions([]),await this.initTreeModel(),this.save()}addWatchExpression(y){this.debugWatch.addWatchExpression(y),this.initTreeModel()}dispatchWatchEvent(y,b){var S;const A=(S=this.treeModel)===null||S===void 0?void 0:S.root.watchEvents.get(y);A&&A.callback&&A.callback(b)}collapsedAll(){var y;(y=this.treeModel)===null||y===void 0||y.root.collapsedAll()}async refresh(y){if(!y)if(this.treeModel)y=this.treeModel.root;else return;!s.ExpressionContainer.is(y)&&y.parent&&(y=y.parent),this.queueChangeEvent(y.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(y,b){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new p.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var S;await this.flushEventQueue(),(S=this.flushEventQueueDeferred)===null||S===void 0||S.resolve(),this.flushEventQueueDeferred=null,b()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(y)===-1&&this._changeEventDispatchQueue.push(y)}};t.DebugWatchModelService=g,g.DEFAULT_REFRESH_DELAY=100,g.DEFAULT_TRIGGER_DELAY=200,g.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY="watchers",r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],g.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],g.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],g.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(f.DebugViewModel),r.__metadata("design:type",f.DebugViewModel)],g.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(h.IDebugSessionManager),r.__metadata("design:type",m.DebugSessionManager)],g.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(p.IReporterService),r.__metadata("design:type",Object)],g.prototype,"reporterService",void 0),r.__decorate([(0,o.Autowired)(p.IContextKeyService),r.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(p.StorageProvider),r.__metadata("design:type",Function)],g.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(p.IClipboardService),r.__metadata("design:type",Object)],g.prototype,"clipboardService",void 0),t.DebugWatchModelService=g=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],g)},14600:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(64582),v=e(98650),m=e(4983),_=e(95033);let s=class{registerCommands(a){a.registerCommand(p.DEBUG_COMMANDS.ADD_WATCHER,{execute:()=>{this.debugWatchModelService.newDebugWatchNodePrompt()}}),a.registerCommand(p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.collapsedAll()}}),a.registerCommand(p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.clearAllExpression()}}),a.registerCommand(p.DEBUG_COMMANDS.REMOVE_WATCHER,{execute:h=>{h instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(h);const[u]=this.debugWatchModelService.selectedNodes;u instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(u)}}),a.registerCommand(p.DEBUG_COMMANDS.EDIT_WATCHER,{execute:h=>{this.debugWatchModelService.renameDebugWatchNodePrompt(h)}}),a.registerCommand(p.DEBUG_COMMANDS.COPY_WATCHER_VALUE,{execute:h=>{this.debugWatchModelService.copyValue(h)}})}registerToolbarItems(a){a.registerItem({id:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,command:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("close-all"),viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.removeAll")}),a.registerItem({id:p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("collapse-all"),command:p.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.collapseAll"),when:m.CONTEXT_IN_DEBUG_MODE.raw}),a.registerItem({id:p.DEBUG_COMMANDS.ADD_WATCHER.id,iconClass:(0,o.getIcon)("plus"),command:p.DEBUG_COMMANDS.ADD_WATCHER.id,viewId:p.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.add"),when:m.CONTEXT_IN_DEBUG_MODE.raw})}registerMenus(a){a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.ADD_WATCHER.id,label:(0,o.localize)("debug.watch.add")},order:10,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.EDIT_WATCHER.id,label:(0,o.localize)("debug.watch.edit")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:20,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.COPY_WATCHER_VALUE.id,label:(0,o.localize)("debug.watch.copyValue")},when:`${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression")} || ${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("variable")} && ${m.CONTEXT_IN_DEBUG_MODE.raw}`,order:30,enabledWhen:m.CONTEXT_IN_DEBUG_MODE.raw,group:"3_modification"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.REMOVE_WATCHER.id,label:(0,o.localize)("debug.watch.remove")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:10,group:"z_commands"}),a.registerMenuItem(c.MenuId.DebugWatchContext,{command:{id:p.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,label:(0,o.localize)("debug.watch.removeAll")},order:20,group:"z_commands"})}registerKeybindings(a){a.registerKeybinding({command:p.DEBUG_COMMANDS.REMOVE_WATCHER.id,keybinding:"ctrlcmd+backspace",when:m.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.raw})}onStart(){this.debugWatchModelService.load()}};t.WatchPanelContribution=s,n.__decorate([(0,r.Autowired)(_.DebugWatchModelService),n.__metadata("design:type",_.DebugWatchModelService)],s.prototype,"debugWatchModelService",void 0),t.WatchPanelContribution=s=n.__decorate([(0,o.Domain)(o.ClientAppContribution,c.MenuContribution,o.CommandContribution,o.TabBarToolbarContribution,o.KeybindingContribution)],s)},64611:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_WATCH_TREE_NODE_HEIGHT=t.DebugWatchRenderedNode=t.DebugWatchView=t.DEBUG_WATCH_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(97267),p=e(41869),v=e(98650),m=e(95033),_=n.__importDefault(e(21315));t.DEBUG_WATCH_TREE_FIELD_NAME="DEBUG_WATCH_TREE_FIELD";const s=({viewState:a})=>{const h=(0,p.useInjectable)(m.DebugWatchModelService),u=22,d=o.default.useRef(null),[E,g]=o.default.useState(),{height:l}=a;o.default.useEffect(()=>y(),[]);const y=()=>{const M=h.treeModel;let R=!0;const P=new p.DisposableCollection;return P.push(p.Disposable.create(()=>{R=!1})),M&&M.ensureReady.then(()=>{R&&g(M)}),P.push(h.onDidUpdateTreeModel(async k=>{k&&await k.ensureReady,R&&g(k)})),()=>{h.removeNodeDecoration(),P.dispose()}},b=M=>{h.handleTreeHandler({...M,getModel:()=>E,hasDirectFocus:()=>d.current===document.activeElement})},S=(M,R,P)=>{M.stopPropagation();const{handleTwistierClick:k}=h;R&&k(R,P)},A=(M,R)=>{const{handleContextMenu:P}=h;P(M,R)},w=M=>{const{handleContextMenu:R}=h;R(M)},T=M=>{const{enactiveNodeDecoration:R}=h;R()},D=M=>{const{enactiveNodeDecoration:R}=h;R()},I=o.default.useCallback(M=>{const R=h.decorations.getDecorations(M.item);return o.default.createElement(t.DebugWatchRenderedNode,{item:M.item,itemType:M.itemType,decorations:R,onClick:S,onTwistierClick:S,onContextMenu:A,defaultLeftPadding:12,leftPadding:8})},[E]),O=()=>E?o.default.createElement(c.RecycleTree,{height:l,itemHeight:u,onReady:b,model:E,placeholder:()=>o.default.createElement("span",null)},I):o.default.createElement("span",null);return o.default.createElement("div",{className:_.default.debug_watch_container,tabIndex:-1,ref:d,onContextMenu:w,onClick:T,onBlur:D,"data-name":t.DEBUG_WATCH_TREE_FIELD_NAME},O())};t.DebugWatchView=s;const f=({item:a,decorations:h,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:g,onContextMenu:l,itemType:y})=>{const b=(0,p.useDesignStyles)(_.default.expansion_toggle,"expansion_toggle"),S=y===c.TreeNodeType.RenamePrompt,A=y===c.TreeNodeType.NewPrompt,w=S||A,T=N=>{const j=a.getRawWatch();j&&E(N,a,j.variablesReference>0?c.TreeNodeType.CompositeTreeNode:c.TreeNodeType.TreeNode)},D=N=>{N.nativeEvent.which!==0&&(y===c.TreeNodeType.TreeNode||y===c.TreeNodeType.CompositeTreeNode)&&l&&l(N,a,y)},I={height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_WATCH_TREE_NODE_HEIGHT}px`,paddingLeft:`${(u||8)+(a.depth||0)*(d||0)}px`},O=N=>w&&N instanceof c.PromptHandle?o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_inputbox)},o.default.createElement("div",{className:(0,r.default)("input-box",_.default.debug_watch_node_prompt_box)},o.default.createElement(N.ProxiedInput,{wrapperStyle:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,padding:"0 5px"}}))):o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_displayname,_.default.debug_watch_variable,N.description?_.default.name:"")},N.name,N.description?":":""),M=N=>{const j=/^true|false$/i,W=/^(['"]).*\1$/,U=N.description?N.description.replace("function","\u0192 "):"",X=[_.default.debug_watch_variable];return w?null:(a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?X.push(_.default[a.variableType]):isNaN(+U)?j.test(U)?X.push(_.default.boolean):W.test(U)&&X.push(_.default.string):X.push(_.default.number),o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment_grow,_.default.debug_watch_node_description,...X)},U))},R=()=>o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,_.default.debug_watch_node_tail)},P()),P=()=>o.default.createElement("div",{className:_.default.debug_watch_node_status},a.badge),k=()=>a.tooltip,F=(N,j)=>{const W=U=>{j(U,N,y)};return h&&h?.classlist.indexOf(_.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_segment,b)},o.default.createElement(c.Loading,null)):o.default.createElement("div",{onClick:W,className:(0,r.default)(_.default.debug_watch_node_segment,b,(0,p.getIcon)("right"),{[`${_.default.mod_collapsed}`]:!N.expanded})})},L=N=>{if(v.DebugWatchNode.is(N)){if(N.available&&N.variablesReference)return F(N,g)}else if(v.ExpressionContainer.is(N)&&N.variablesReference)return F(N,g)};return o.default.createElement("div",{key:a.id,onClick:T,onContextMenu:D,title:k(),className:(0,r.default)(_.default.debug_watch_node,h?h.classlist:null),style:I,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(_.default.debug_watch_node_content)},L(a),o.default.createElement("div",{style:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT},className:w?_.default.debug_watch_node_prompt_wrap:_.default.debug_watch_node_overflow_wrap},O(a),M(a)),R()))};t.DebugWatchRenderedNode=f,t.DEBUG_WATCH_TREE_NODE_HEIGHT=22},46118:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_COMMANDS=void 0;var e;(function(n){n.ADD_WATCHER={id:"debug.watch.add"},n.COLLAPSE_ALL_WATCHER={id:"debug.watch.collapseAll"},n.REMOVE_ALL_WATCHER={id:"debug.watch.removeAll"},n.REMOVE_WATCHER={id:"debug.watch.remove"},n.EDIT_WATCHER={id:"debug.watch.edit"},n.COPY_WATCHER_VALUE={id:"debug.watch.copyValue"},n.REMOVE_ALL_BREAKPOINTS={id:"debug.breakpoints.remove.all"},n.TOGGLE_BREAKPOINTS={id:"debug.breakpoints.toggle"},n.ACTIVE_BREAKPOINTS={id:"debug.breakpoints.active"},n.DEACTIVE_BREAKPOINTS={id:"debug.breakpoints.deactive"},n.START={id:"debug.start"},n.NEXT={id:"debug.next"},n.PREV={id:"debug.prev"},n.OVER={id:"debug.over"},n.STOP={id:"debug.stop"},n.CONTINUE={id:"debug.continue"},n.RESTART={id:"debug.restart"},n.PAUSE={id:"debug.pause"},n.DELETE_BREAKPOINT={id:"debug.delete.breakpoint",label:"%debug.menu.delete.breakpoint%"},n.EDIT_BREAKPOINT={id:"debug.edit.breakpoint",label:"%debug.menu.edit.breakpoint%"},n.DISABLE_BREAKPOINT={id:"debug.disable.breakpoint",label:"%debug.menu.disable.breakpoint%"},n.ENABLE_BREAKPOINT={id:"debug.enable.breakpoint",label:"%debug.menu.enable.breakpoint%"},n.ENABLE_LOGPOINT={id:"debug.enable.logpoint",label:"%debug.menu.enable.logpoint"},n.ADD_BREAKPOINT={id:"debug.add.breakpoint",label:"%debug.menu.add.breakpoint%"},n.ADD_LOGPOINT={id:"debug.add.logpoint",label:"%debug.menu.add.logpoint%"},n.ADD_CONDITIONAL_BREAKPOINT={id:"debug.add.conditional",label:"%debug.menu.add.conditional%"},n.RESTART_FRAME={id:"debug.callstack.restart.frame"},n.COPY_STACK_TRACE={id:"debug.callstack.copy"},n.SET_VARIABLE_VALUE={id:"debug.variables.setValue"},n.COPY_VARIABLE_VALUE={id:"debug.variables.copy"},n.COPY_EVALUATE_PATH={id:"debug.evaluate.copy"},n.ADD_TO_WATCH_ID={id:"debug.addToWatchExpressions"},n.VIEW_MEMORY_ID={id:"debug.variables.view.memory"},n.CLEAR_CONSOLE={id:"debug.console.clear",label:"%debug.console.clear%"},n.COPY_CONSOLE_ITEM={id:"debug.console.copy"},n.COPY_CONSOLE_ALL={id:"debug.console.copyALl"},n.COLLAPSE_ALL_CONSOLE_ITEM={id:"debug.console.collapseAll",label:"%debug.console.collapseAll%"},n.CONSOLE_ENTER_EVALUATE={id:"debug.console.keybing.enter.evaluate"},n.CONSOLE_INPUT_DOWN_ARROW={id:"debug.console.input.down.arrow"},n.CONSOLE_INPUT_UP_ARROW={id:"debug.console.input.up.arrow"},n.CONSOLE_FILTER_FOCUS={id:"debug.console.filter.input.focus"},n.RUN_TO_CURSOR={id:"debug.action.runToCursor",label:"%debug.action.runToCursor%"},n.FORCE_RUN_TO_CURSOR={id:"debug.action.forceRunToCursor",label:"%debug.action.forceRunToCursor%"},n.EXCEPTION_WIDGET_CLOSE={id:"debug.action.closeExceptionWidget"},n.SHOW_ALL_AUTOMATIC_DEBUG_CONFIGURATIONS={id:"debug.showAllAutomaticDebugConfigurations"}})(e||(t.DEBUG_COMMANDS=e={}))},4983:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_DEBUGGERS_AVAILABLE=t.CONTEXT_BREAKPOINTS_EXIST=t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=t.CONTEXT_RESTART_FRAME_SUPPORTED=t.CONTEXT_STEP_BACK_SUPPORTED=t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=t.CONTEXT_BREAKPOINT_ACCESS_TYPE=t.CONTEXT_BREAKPOINT_ITEM_TYPE=t.CONTEXT_WATCH_ITEM_TYPE=t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=t.CONTEXT_CALLSTACK_ITEM_STOPPED=t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=t.CONTEXT_CALLSTACK_ITEM_TYPE=t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=t.CONTEXT_EXPRESSION_SELECTED=t.CONTEXT_VARIABLES_FOCUSED=t.CONTEXT_WATCH_EXPRESSIONS_EXIST=t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=t.CONTEXT_BREAKPOINTS_FOCUSED=t.CONTEXT_IN_BREAKPOINT_WIDGET=t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=t.CONTEXT_IN_DEBUG_CONSOLE=t.CONTEXT_IN_DEBUG_REPL=t.CONTEXT_IN_DEBUG_MODE=t.CONTEXT_DEBUG_UX=t.CONTEXT_DEBUG_UX_KEY=t.CONTEXT_DEBUG_STATE=t.CONTEXT_DEBUG_CONFIGURATION_TYPE=t.CONTEXT_DEBUG_TYPE=t.CONTEXT_DEBUG_TYPE_KEY=t.CONTEXT_IN_DEBUG_MODE_KEY=t.CONTEXT_DEBUG_STOPPED_KEY=t.DEBUG_SCHEME=t.DEBUG_FLOATING_CLICK_WIDGET=t.DEBUG_STACK_ID=t.DEBUG_WELCOME_ID=t.DEBUG_BREAKPOINTS_ID=t.DEBUG_VARIABLES_ID=t.DEBUG_THREAD_ID=t.DEBUG_WATCH_ID=t.DEBUG_MEMORY_SCHEME=t.LAUNCH_VIEW_COMPONENT_ID=t.LAUNCH_VIEW_SCHEME=t.DEBUG_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=void 0,t.CONTEXT_ACTIVE_BREAKPOINTS=t.CONTEXT_CAN_VIEW_MEMORY=t.CONTEXT_MULTI_SESSION_DEBUG=t.CONTEXT_MULTI_SESSION_REPL=t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=t.CONTEXT_SET_VARIABLE_SUPPORTED=t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=void 0;const n=e(30144);Object.defineProperty(t,"DEBUG_CONSOLE_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONSOLE_CONTAINER_ID}}),Object.defineProperty(t,"DEBUG_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONTAINER_ID}});const r=e(40191);t.LAUNCH_VIEW_SCHEME="launch_view_scheme",t.LAUNCH_VIEW_COMPONENT_ID="launch-view",t.DEBUG_MEMORY_SCHEME="vscode-debug-memory",t.DEBUG_WATCH_ID="debug-watch",t.DEBUG_THREAD_ID="debug-thread",t.DEBUG_VARIABLES_ID="debug-variable",t.DEBUG_BREAKPOINTS_ID="debug-breakpoints",t.DEBUG_WELCOME_ID="debug-welcome",t.DEBUG_STACK_ID="debug-stack",t.DEBUG_FLOATING_CLICK_WIDGET="debug.overlayWidget.floatingClickWidget",t.DEBUG_SCHEME="debug",t.CONTEXT_DEBUG_STOPPED_KEY="debugStopped",t.CONTEXT_IN_DEBUG_MODE_KEY="inDebugMode",t.CONTEXT_DEBUG_TYPE_KEY="debugType",t.CONTEXT_DEBUG_TYPE=new r.RawContextKey("debugType",void 0),t.CONTEXT_DEBUG_CONFIGURATION_TYPE=new r.RawContextKey("debugConfigurationType",void 0),t.CONTEXT_DEBUG_STATE=new r.RawContextKey("debugState","Inactive"),t.CONTEXT_DEBUG_UX_KEY="debugUx",t.CONTEXT_DEBUG_UX=new r.RawContextKey(t.CONTEXT_DEBUG_UX_KEY,"default"),t.CONTEXT_IN_DEBUG_MODE=new r.RawContextKey("inDebugMode",!1),t.CONTEXT_IN_DEBUG_REPL=new r.RawContextKey("inDebugRepl",!1),t.CONTEXT_IN_DEBUG_CONSOLE=new r.RawContextKey("inDebugConsole",!1),t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=new r.RawContextKey("breakpointWidgetVisible",!1),t.CONTEXT_IN_BREAKPOINT_WIDGET=new r.RawContextKey("inBreakpointWidget",!1),t.CONTEXT_BREAKPOINTS_FOCUSED=new r.RawContextKey("breakpointsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=new r.RawContextKey("watchExpressionsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_EXIST=new r.RawContextKey("watchExpressionsExist",!1),t.CONTEXT_VARIABLES_FOCUSED=new r.RawContextKey("variablesFocused",!0),t.CONTEXT_EXPRESSION_SELECTED=new r.RawContextKey("expressionSelected",!1),t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=new r.RawContextKey("breakpointInputFocused",!1),t.CONTEXT_CALLSTACK_ITEM_TYPE=new r.RawContextKey("callStackItemType",void 0),t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=new r.RawContextKey("callStackSessionIsAttach",!1),t.CONTEXT_CALLSTACK_ITEM_STOPPED=new r.RawContextKey("callStackItemStopped",!1),t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=new r.RawContextKey("callStackSessionHasOneThread",!1),t.CONTEXT_WATCH_ITEM_TYPE=new r.RawContextKey("watchItemType",void 0),t.CONTEXT_BREAKPOINT_ITEM_TYPE=new r.RawContextKey("breakpointItemType",void 0),t.CONTEXT_BREAKPOINT_ACCESS_TYPE=new r.RawContextKey("breakpointAccessType",void 0),t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=new r.RawContextKey("breakpointSupportsCondition",!1),t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=new r.RawContextKey("loadedScriptsSupported",!1),t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=new r.RawContextKey("loadedScriptsItemType",void 0),t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=new r.RawContextKey("focusedSessionIsAttach",!1),t.CONTEXT_STEP_BACK_SUPPORTED=new r.RawContextKey("stepBackSupported",!1),t.CONTEXT_RESTART_FRAME_SUPPORTED=new r.RawContextKey("restartFrameSupported",!1),t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=new r.RawContextKey("stackFrameSupportsRestart",!1),t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=new r.RawContextKey("jumpToCursorSupported",!1),t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=new r.RawContextKey("stepIntoTargetsSupported",!1),t.CONTEXT_BREAKPOINTS_EXIST=new r.RawContextKey("breakpointsExist",!1),t.CONTEXT_DEBUGGERS_AVAILABLE=new r.RawContextKey("debuggersAvailable",!1),t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=new r.RawContextKey("debugProtocolVariableMenuContext",void 0),t.CONTEXT_SET_VARIABLE_SUPPORTED=new r.RawContextKey("debugSetVariableSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=new r.RawContextKey("breakWhenValueChangesSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=new r.RawContextKey("breakWhenValueIsAccessedSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=new r.RawContextKey("breakWhenValueIsReadSupported",!1),t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=new r.RawContextKey("variableEvaluateNamePresent",!1),t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=new r.RawContextKey("exceptionWidgetVisible",!1),t.CONTEXT_MULTI_SESSION_REPL=new r.RawContextKey("multiSessionRepl",!1),t.CONTEXT_MULTI_SESSION_DEBUG=new r.RawContextKey("multiSessionDebug",!1),t.CONTEXT_CAN_VIEW_MEMORY=new r.RawContextKey("canViewMemory",void 0),t.CONTEXT_ACTIVE_BREAKPOINTS=new r.RawContextKey("activateBreakpoints",!0)},95581:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53670:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MASSIVE_PROPERTY_FLAG=t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR=t.DEFAULT_CONFIGURATION_NAME_SEPARATOR=t.DEFAULT_NO_CONFIGURATION_KEY=t.DEFAULT_DYNAMIC_CONFIGURATION_KEY=t.DEFAULT_EDIT_CONFIGURATION_KEY=t.DEFAULT_ADD_CONFIGURATION_KEY=t.DebugConfiguration=void 0;var e;(function(n){function r(o){return!!o&&typeof o=="object"&&"type"in o&&"name"in o&&"request"in o}n.is=r})(e||(t.DebugConfiguration=e={})),t.DEFAULT_ADD_CONFIGURATION_KEY="__ADD_CONF__",t.DEFAULT_EDIT_CONFIGURATION_KEY="__EDIT_CONF__",t.DEFAULT_DYNAMIC_CONFIGURATION_KEY="__DYNAMIC_CONF__",t.DEFAULT_NO_CONFIGURATION_KEY="__NO_CONF__",t.DEFAULT_CONFIGURATION_NAME_SEPARATOR="__CONF__",t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR="__INDEX__",t.MASSIVE_PROPERTY_FLAG="massive_property_flag"},70049:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugConsoleModelService=void 0,t.IDebugConsoleModelService=Symbol("IDebugConsoleModelService")},24395:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditor=void 0,t.DebugEditor=Symbol("DebugEditor")},2242:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32385:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugModelManager=t.DebugModelSupportedEventType=t.MemoryRegion=t.IDebugModel=t.DebugModelFactory=t.DebugAdapterContribution=t.DebugAdapterFactory=t.DebugAdapterSessionFactory=t.DebugAdapterSession=void 0;const n=e(43718);t.DebugAdapterSession=Symbol("DebugAdapterSession"),t.DebugAdapterSessionFactory=Symbol("DebugAdapterSessionFactory"),t.DebugAdapterFactory=Symbol("DebugAdapterFactory"),t.DebugAdapterContribution=Symbol("DebugAdapterContribution"),t.DebugModelFactory=Symbol("DebugModelFactory"),t.IDebugModel=Symbol("IDebugModel");class r extends n.Disposable{constructor(p,v){super(),this.memoryReference=p,this.session=v,this.invalidateEmitter=this.registerDispose(new n.Emitter),this.onDidInvalidate=this.invalidateEmitter.event,this.writable=!!this.session.capabilities.supportsWriteMemoryRequest,this.registerDispose(v.onDidInvalidateMemory(m=>{m.body.memoryReference===p&&this.invalidate(m.body.offset,m.body.count-m.body.offset)}))}async read(p,v){var m;const _=v-p,s=p,f=await this.session.readMemory(this.memoryReference,s,_);if(f===void 0||!(!((m=f.body)===null||m===void 0)&&m.data))return[{type:1,offset:s,length:_}];let a;try{a=(0,n.decodeBase64)(f.body.data)}catch(d){return[{type:2,offset:s,length:_,error:d.message}]}const h=f.body.unreadableBytes||0,u=_-h;if(a.byteLength<u){const d=n.BinaryBuffer.alloc(u-a.byteLength);d.buffer.fill(0),a=n.BinaryBuffer.concat([a,d],u)}else a.byteLength>u&&(a=a.slice(0,u));return h?[{type:0,offset:s,length:u,data:a},{type:1,offset:s+u,length:h}]:[{type:0,offset:s,length:_,data:a}]}async write(p,v){var m,_;const s=await this.session.writeMemory(this.memoryReference,p,(0,n.encodeBase64)(v),!0),f=(_=(m=s?.body)===null||m===void 0?void 0:m.bytesWritten)!==null&&_!==void 0?_:v.byteLength;return this.invalidate(p,p+f),f}dispose(){super.dispose()}invalidate(p,v){this.invalidateEmitter.fire({fromOffset:p,toOffset:v})}}t.MemoryRegion=r;var o;(function(c){c.down="Down",c.move="Move",c.leave="Leave",c.contextMenu="contextMenu"})(o||(t.DebugModelSupportedEventType=o={})),t.IDebugModelManager=Symbol("DebugModelManager")},79845:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugProgress=void 0,t.IDebugProgress=Symbol("DebugProgress")},60709:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA_TYPE=t.launchDefaultSchemaUri=t.launchExtensionSchemaUri=t.launchSchemaUri=void 0,t.launchSchemaUri="vscode://schemas/launch",t.launchExtensionSchemaUri="vscode://schemas/launch/extension",t.launchDefaultSchemaUri="vscode://schemas/launch/default";var e;(function(n){n.ARRAY="array",n.BOOLEAN="boolean",n.NULL="null",n.NUMBER="number",n.OBJECT="object",n.STRING="string"})(e||(t.JSON_SCHEMA_TYPE=e={}))},70159:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILaunchService=t.IDebugService=t.IDebugServer=t.DebugAdapterPath=t.DebugConfigurationProviderTriggerKind=void 0;var e;(function(n){n[n.Initial=1]="Initial",n[n.Dynamic=2]="Dynamic"})(e||(t.DebugConfigurationProviderTriggerKind=e={})),t.DebugAdapterPath="DebugAdaptor",t.IDebugServer=Symbol("DebugServer"),t.IDebugService=Symbol("DebugService"),t.ILaunchService=Symbol("ILaunchService")},50883:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionDTO=void 0;var e;(function(n){function r(o){return"id"in o}n.is=r})(e||(t.IDebugSessionDTO=e={}))},26296:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionManager=t.IDebugSession=t.DebugState=void 0,t.getSequenceId=r;var e;(function(o){o[o.Inactive=0]="Inactive",o[o.Initializing=1]="Initializing",o[o.Running=2]="Running",o[o.Stopped=3]="Stopped"})(e||(t.DebugState=e={})),t.IDebugSession=Symbol("DebugSession"),t.IDebugSessionManager=Symbol("DebugSessionManager");let n=1;function r(){return n++}},64582:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(53670),t),n.__exportStar(e(70159),t),n.__exportStar(e(2242),t),n.__exportStar(e(95581),t),n.__exportStar(e(32385),t),n.__exportStar(e(26296),t),n.__exportStar(e(70049),t),n.__exportStar(e(50883),t),n.__exportStar(e(24395),t),n.__exportStar(e(79845),t),n.__exportStar(e(60709),t),n.__exportStar(e(7428),t),n.__exportStar(e(37723),t),n.__exportStar(e(4983),t),n.__exportStar(e(71120),t),n.__exportStar(e(46118),t)},7428:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},71120:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindowsDriveLetter=r,t.hasDriveLetter=o,t.getDriveLetter=c,t.prepareCommand=p;const n=e(43718);function r(v){return v>=65&&v<=90||v>=97&&v<=122}function o(v,m=n.isWindows){return m?r(v.charCodeAt(0))&&v.charCodeAt(1)===58:!1}function c(v){return o(v)?v[0]:void 0}function p(v,m,_,s,f){v=v.trim().toLowerCase();let a;v.indexOf("powershell")>=0||v.indexOf("pwsh")>=0?a=1:v.indexOf("cmd.exe")>=0?a=0:v.indexOf("bash")>=0?a=2:n.isWindows?a=0:a=2;let h,u=" ";switch(a){case 1:if(h=d=>(d=d.replace(/'/g,"''"),d.length>0&&d.charAt(d.length-1)==="\\"?`'${d}\\'`:`'${d}'`),s){const d=c(s);d&&(u+=`${d}:; `),u+=`cd ${h(s)}; `}if(f)for(const d in f){const E=f[d];E===null?u+=`Remove-Item env:${d}; `:u+=`\${env:${d}}='${E}'; `}if(m.length>0){const d=m.shift(),E=_?d:h(d);u+=E[0]==="'"?`& ${E} `:`${E} `;for(const g of m)u+=g==="<"||g===">"||_?g:h(g),u+=" "}break;case 0:if(h=d=>(d=d.replace(/"/g,'""'),d=d.replace(/([><!^&|])/g,"^$1"),' "'.split("").some(E=>d.includes(E))||d.length===0?`"${d}"`:d),s){const d=c(s);d&&(u+=`${d}: && `),u+=`cd ${h(s)} && `}if(f){u+='cmd /C "';for(const d in f){let E=f[d];E===null?u+=`set "${d}=" && `:(E=E.replace(/[&^|<>]/g,g=>`^${g}`),u+=`set "${d}=${E}" && `)}}for(const d of m)u+=d==="<"||d===">"||_?d:h(d),u+=" ";f&&(u+='"');break;case 2:{h=E=>(E=E.replace(/(["'\\$!><#()[\]*&^| ;{}`])/g,"\\$1"),E.length===0?'""':E);const d=E=>/[^\w@%/+=,.:^-]/.test(E)?`'${E.replace(/'/g,"'\\''")}'`:E;if(s&&(u+=`cd ${h(s)} ; `),f){u+="/usr/bin/env";for(const E in f){const g=f[E];g===null?u+=` -u ${d(E)}`:u+=` ${d(`${E}=${g}`)}`}u+=" "}for(const E of m)u+=E==="<"||E===">"||_?E:h(E),u+=" ";break}}return u}},37723:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationsReadyEvent=t.DEBUG_REPORT_NAME=void 0;const n=e(43718);var r;(function(c){c.DEBUG_SESSION_START_TIME="debugSessionStartTime",c.DEBUG_PRE_LAUNCH_TASK_TIME="debugPreLaunchTaskTime",c.DEBUG_TOOLBAR_OPERATION_TIME="debugToolBarOperationTime",c.DEBUG_TOOLBAR_OPERATION="debugToolBarOperation",c.DEBUG_PANEL_OPERATION_FOLDEXPR="debugPanelOperationFoldexpr",c.DEBUG_WATCH="debugWatch",c.DEBUG_VARIABLES="debugVariables",c.DEBUG_BREAKPOINT="debugBreakpoint",c.DEBUG_ADAPTER_PROTOCOL_TIME="debugAdapterProtocolTime",c.DEBUG_STOPPED="debugStopped",c.DEBUG_UI_FRONTEND_TIME="debugFrontEndTime"})(r||(t.DEBUG_REPORT_NAME=r={}));class o extends n.BasicEvent{}t.DebugConfigurationsReadyEvent=o},66482:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(64582),t)},83670:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDecorationsService=void 0;const n=e(85608),r=e(76003),o=e(43718),{isFalsyOrWhitespace:c}=o.strings,{asArray:p}=o.arrays;class v{constructor(){this._data=o.TernarySearchTree.forPaths()}affectsResource(u){return this._data.get(u.toString())||this._data.findSuperstr(u.toString())!==void 0}static debouncer(u,d){if(u||(u=new v),Array.isArray(d))for(const E of d)u._data.set(E.toString(),!0);else u._data.set(d.toString(),!0);return u}}class m{constructor(u,d){this.source=u,this.thenable=d}}class _{constructor(u,d,E){this._provider=u,this._uriEmitter=d,this._flushEmitter=E,this.data=o.TernarySearchTree.forPaths(),this._dispoable=this._provider.onDidChange(g=>{if(!g)this.data.clear(),this._flushEmitter.fire({affectsResource(){return!0}});else for(const l of g)this._fetchData(l)})}dispose(){this._dispoable.dispose(),this.data.clear()}knowsAbout(u){return!!this.data.get(u.toString())||!!this.data.findSuperstr(u.toString())}getOrRetrieve(u,d,E){const g=u.toString();let l=this.data.get(g);if(l===void 0&&(l=this._fetchData(u)),l&&!(l instanceof m)&&E(l,!1),d){const y=this.data.findSuperstr(g);if(y)for(let b=y.next();!b.done;b=y.next())b.value&&!(b.value instanceof m)&&E(b.value,!0)}}_fetchData(u){const d=this.data.get(u.toString());d instanceof m&&(d.source.cancel(),this.data.delete(u.toString()));const E=new o.CancellationTokenSource,g=this._provider.provideDecorations(u,E.token);if((0,o.isThenable)(g)){const l=new m(E,Promise.resolve(g).then(y=>{this.data.get(u.toString())===l&&this._keepItem(u,y)}).catch(y=>{!(0,o.isPromiseCanceledError)(y)&&this.data.get(u.toString())===l&&this.data.delete(u.toString())}));return this.data.set(u.toString(),l),null}else return this._keepItem(u,g)}_keepItem(u,d){const E=d||null,g=this.data.set(u.toString(),E);return(E||g)&&this._uriEmitter.fire(u),E}}function s(h){return p(h).map(({color:d,letter:E})=>`${d}/${E}`).join(",")}function f(h){const u=p(h);if(u.length)return{key:s(h),color:u[0].color,badge:u.filter(d=>!c(d.letter)).map(d=>d.letter).join(","),tooltip:u.filter(d=>!c(d.tooltip)).map(d=>d.tooltip).join(" \u2022 ")}}let a=class extends o.Disposable{constructor(){super(...arguments),this.logger=(0,o.getDebugLogger)(),this._data=new o.LinkedList,this._onDidChangeDecorationsDelayed=new o.Emitter,this._onDidChangeDecorations=new o.Emitter,this.onDidChangeDecorations=o.Event.any(this._onDidChangeDecorations.event,o.Event.debounce(this._onDidChangeDecorationsDelayed.event,v.debouncer,void 0,void 0,500))}dispose(){(0,o.dispose)(this._onDidChangeDecorations),(0,o.dispose)(this._onDidChangeDecorationsDelayed)}registerDecorationsProvider(u){this.logger.log("DecorationService#registerDecorationsProvider",u);const d=new _(u,this._onDidChangeDecorationsDelayed,this._onDidChangeDecorations),E=this._data.push(d);return this._onDidChangeDecorations.fire({affectsResource(){return!0}}),(0,o.toDisposable)(()=>{E(),this._onDidChangeDecorations.fire({affectsResource:g=>d.knowsAbout(g)}),d.dispose()})}getDecoration(u,d){const E=[];let g=!1;for(let l=this._data.iterator(),y=l.next();!y.done;y=l.next())y.value.getOrRetrieve(u,d,(b,S)=>{(!S||b.bubble)&&(E.push(b),g=S||g)});if(E.length!==0)return this.asDecoration(E,g)}asDecoration(u,d){u.sort((g,l)=>(l.weight||0)-(g.weight||0));const E=f(u);return E&&d&&(E.badge="\u2022",E.tooltip=(0,o.localize)("bubbleTitle","Contains emphasized items")),E}};t.FileDecorationsService=a,t.FileDecorationsService=a=n.__decorate([(0,r.Injectable)()],a)},4958:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93364),p=e(83670);let v=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IDecorationsService,useClass:p.FileDecorationsService}]}};t.DecorationModule=v,t.DecorationModule=v=n.__decorate([(0,r.Injectable)()],v)},93364:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationsService=void 0;const n=e(43718);class r extends n.Disposable{}t.IDecorationsService=r},87323:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(93364),t)},41893:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(87323),t)},67988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignCoreContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(1149),p=e(43718),v=e(14951),m=e(2156),_=e(11090),s=e(37517);let f=class{initialize(){this.fileSystem.registerProvider(p.Schemes.design,this.designThemeFileSystemProvider),this.layoutViewSize.setEditorTabsHeight(36,c.ConfigPriority.ModuleDefined),this.layoutViewSize.setStatusBarHeight(36,c.ConfigPriority.ModuleDefined),this.layoutViewSize.setAccordionHeaderSizeHeight(36,c.ConfigPriority.ModuleDefined)}registerRenderer(h){h.registerSlotRenderer(o.SlotLocation.left,_.DesignLeftTabRenderer),h.registerSlotRenderer(o.SlotLocation.bottom,_.DesignBottomTabRenderer),h.registerSlotRenderer(o.SlotLocation.right,_.DesignRightTabRenderer)}};t.DesignCoreContribution=f,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",m.FileServiceClient)],f.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",s.DesignThemeFileSystemProvider)],f.prototype,"designThemeFileSystemProvider",void 0),n.__decorate([(0,r.Autowired)(c.LayoutViewSizeConfig),n.__metadata("design:type",c.LayoutViewSizeConfig)],f.prototype,"layoutViewSize",void 0),t.DesignCoreContribution=f=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution,o.SlotRendererContribution)],f)},17242:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(71707),p=e(80832),v=e(97222),m=e(43718),_=e(57517),s=e(52416),f=e(51706),a=e(9132),h=e(67988),u=e(3013),d=e(31385),E=e(72141),g=e(45365),l=n.__importDefault(e(49107)),y=n.__importDefault(e(13925)),b=n.__importDefault(e(63080)),S=e(98741);let A=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[u.DesignMenuBarContribution,h.DesignCoreContribution],this.preferences=T=>{e.e(454).then(e.bind(e,77454)),T.get(p.IDesignStyleService).setStyles(l.default),(0,S.overrideColorToken)(),(0,S.overrideMonacoColorToken)();const I=T.get(m.AppLifeCycleServiceToken);m.Event.once(m.Event.filter(I.onDidLifeCyclePhaseChange,O=>O===3))(()=>{const O=T.get(s.IThemeService);[y.default,b.default].forEach(M=>{O.registerThemes([{id:M.id,label:M.name,path:"",extensionId:M.id,uiTheme:M.base}],o.URI.parse(`${M.id}.json`).withQuery(M.id).withScheme(m.Schemes.design))})}),T.overrideProviders({token:s.IThemeStore,useClass:class extends f.ThemeStore{async getThemeData(O,M){const R=await super.getThemeData(O,M);return document.body.classList.remove(b.default.designThemeType),document.body.classList.remove(y.default.designThemeType),y.default.id===O?.id?document.body.classList.add(y.default.designThemeType):b.default.id===O?.id&&document.body.classList.add(b.default.designThemeType),R}},override:!0,isDefault:!0},{token:s.IThemeService,useClass:class extends a.WorkbenchThemeService{async ensureValidTheme(){return super.ensureValidTheme(y.default.id)}},override:!0,isDefault:!0},{token:_.IEditorTabService,useClass:d.DesignEditorTabService,override:!0,isDefault:!0},{token:c.ISplitPanelService,useClass:g.DesignSplitPanelService,override:!0,isDefault:!0},{token:v.IBrowserCtxMenu,useClass:E.DesignBrowserCtxMenuService})}}};t.DesignModule=A,t.DesignModule=A=n.__decorate([(0,r.Injectable)()],A)},11090:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignRightTabRenderer=t.DesignBottomTabRenderer=t.DesignLeftTabRenderer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(19951),p=({className:_,components:s,tabbarView:f})=>o.default.createElement(c.LeftTabRenderer,{className:(0,r.default)(_,"design_left_slot"),components:s,tabbarView:f});t.DesignLeftTabRenderer=p;const v=({className:_,components:s})=>o.default.createElement(c.BottomTabRenderer,{className:(0,r.default)(_,"design_bottom_slot"),components:s});t.DesignBottomTabRenderer=v;const m=({className:_,components:s,tabbarView:f,tabpanelView:a})=>o.default.createElement(c.RightTabRenderer,{className:(0,r.default)("design_right_slot",_),components:s,tabbarView:f,tabpanelView:a});t.DesignRightTabRenderer=m},3013:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(64267),v=e(38879),m=e(12458);let _=class extends o.Disposable{constructor(){super(),this.menubarStore.unregisterMenusBarByCompact(c.MenuId.DesignMenuBarTopExtra);let f;this.addDispose(this.menubarStore.onDidMenuBarChange(a=>{f&&f.dispose(),f=this.menuRegistry.registerMenuItems(c.MenuId.DesignMenuBarTopExtra,a.map(h=>{var u;return{label:h.label,submenu:h.id,iconClass:h.iconClass,group:h.group||"1_navigation",order:(u=h.order)!==null&&u!==void 0?u:100}}))}))}registerComponent(f){f.register(v.DESIGN_MENUBAR_CONTAINER_VIEW_ID,{component:m.DesignMenuBarView,id:v.DESIGN_MENUBAR_CONTAINER_VIEW_ID})}};t.DesignMenuBarContribution=_,n.__decorate([(0,r.Autowired)(p.MenubarStore),n.__metadata("design:type",p.MenubarStore)],_.prototype,"menubarStore",void 0),n.__decorate([(0,r.Autowired)(c.IMenuRegistry),n.__metadata("design:type",c.IMenuRegistry)],_.prototype,"menuRegistry",void 0),t.DesignMenuBarContribution=_=n.__decorate([(0,o.Domain)(o.ComponentContribution),n.__metadata("design:paramtypes",[])],_)},12458:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),p=e(81878),v=e(89195),m=e(1149),_=e(63373),s=e(93899),f=e(43718),a=e(63067),h=e(55039),u=e(38879),d=n.__importDefault(e(52151)),E=n.__importDefault(e(90946)),g=()=>{const y=(0,c.useInjectable)(s.AbstractContextMenuService),b=(0,c.useInjectable)(m.DesignLayoutConfig),S=(0,c.useInjectable)(s.ICtxMenuRenderer),A=o.useRef(null),[w,T]=o.useState(void 0);o.useEffect(()=>{D()},[]);const D=o.useCallback(R=>{requestAnimationFrame(()=>{if(A.current){const P=A.current.getBoundingClientRect(),{x:k,y:F,width:L,height:N}=P,j={x:k,y:F+N};T(j),R&&R(j)}})},[A.current]),I=o.useMemo(()=>y.createMenu({id:s.MenuId.DesignMenuBarTopExtra}),[y]),O=o.useCallback(()=>{if(!w)return;const R=I.getMergedMenuNodes();I.dispose(),D(P=>{S.show({anchor:P,menuNodes:R})})},[w,I]),M=o.useMemo(()=>b.menubarLogo||d.default,[b.menubarLogo]);return o.createElement(o.Fragment,null,o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.ai_enhance_menu,ref:A,onClick:O},o.createElement("div",{className:E.default.logo_container},o.createElement("img",{className:E.default.extra_top_icon,src:M,alt:""}),o.createElement(p.Icon,{className:(0,r.default)((0,c.getIcon)("down"),E.default.caret_icon)}))))},l=()=>{const y=(0,c.useInjectable)(f.CommandService),b=(0,c.useInjectable)(a.IMainLayoutService),S=(0,c.useInjectable)(c.AINativeConfigService),[A,w]=o.useState(!1);o.useEffect(()=>{requestAnimationFrame(()=>{w(D())});const O=b.getTabbarService(c.SlotLocation.left).onCurrentChange(({previousId:M,currentId:R})=>{M&&!R?w(!1):!M&&R&&w(!0)});return()=>{O.dispose()}},[]);const T=o.useCallback(()=>{y.executeCommand("main-layout.left-panel.toggle"),requestAnimationFrame(()=>{w(D())})},[]),D=o.useCallback(()=>!!b.getTabbarService(c.SlotLocation.left).currentContainerId.get(),[b]);return o.createElement("div",{id:_.VIEW_CONTAINERS.MENUBAR,className:E.default.menu_bar_view,style:{height:S.layoutViewSize.menubarHeight}},o.createElement("div",{className:E.default.container},o.createElement("div",{className:E.default.left},o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.enhance_menu,icon:A?"left-nav-open":"left-nav-close",onClick:T}),o.createElement("span",{className:E.default.dividing}),o.createElement("div",{className:E.default.top_menus_bar},o.createElement(g,null)),o.createElement(c.SlotRenderer,{id:"design-menubar-left",slot:u.DESIGN_MENU_BAR_LEFT,flex:1})),o.createElement("div",{className:E.default.right},o.createElement(h.ToolBar,null),o.createElement(c.SlotRenderer,{id:"design-menubar-right",slot:u.DESIGN_MENU_BAR_RIGHT,flex:1}))))};t.DesignMenuBarView=l},31385:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignEditorTabService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),p=e(81878),v=e(1149),m=e(43718),_=e(30612),s=n.__importDefault(e(49107)),f=h=>{const{children:u}=h,[d,E]=o.default.useState(!1),g=(0,o.useMemo)(()=>"editor-tab-close-"+(0,m.uuid)(6),[]),l=(0,o.useCallback)(()=>{E(!1)},[]),y=(0,o.useMemo)(()=>(0,m.formatLocalize)("editor.closeTab.title",m.isMacintosh?"\u2318W":"Ctrl+W"),[]);return o.default.createElement(p.Popover,{delay:1e3,position:p.PopoverPosition.bottom,id:g,title:y,onClickAction:l,display:d},o.default.createElement("span",{title:""},u))};let a=class extends _.EditorTabService{renderEditorTab(u,d){return o.default.createElement("div",{className:(0,r.default)({[s.default["design-editor_tab_block_container"]]:!0,[s.default.active]:d}),style:{height:this.layoutViewSize.editorTabsHeight}},u)}renderTabCloseComponent(u){return o.default.createElement(f,null,u)}};t.DesignEditorTabService=a,n.__decorate([(0,c.Autowired)(v.LayoutViewSizeConfig),n.__metadata("design:type",v.LayoutViewSizeConfig)],a.prototype,"layoutViewSize",void 0),t.DesignEditorTabService=a=n.__decorate([(0,c.Injectable)()],a)},72141:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignBrowserCtxMenuService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),p=e(97267),v=e(41869),m=e(31388),_=e(52416),s=n.__importDefault(e(49107)),f=h=>{const u=(0,v.useInjectable)(_.IIconService),{data:d,disabled:E,hasSubmenu:g}=h,l=(0,o.useMemo)(()=>d.checked?o.default.createElement(p.Icon,{icon:"check"}):d.icon?o.default.createElement(p.Icon,{iconClass:d.icon}):null,[d]);return o.default.createElement("div",{className:(0,r.default)(s.default.menuAction__sub_menu_action_container,{[s.default.disabled]:E,[s.default.checked]:d.checked},d.className)},o.default.createElement("div",{className:s.default.icon},l),o.default.createElement("div",{className:s.default.label},d.label?(0,v.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(d.label,!0),{margin:"0 3px"},u?.fromString.bind(u)):""),o.default.createElement("div",{className:s.default.tip},d.keybinding?o.default.createElement("div",{className:s.default.shortcut},d.keybinding):null,g?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(p.Icon,{icon:"right-arrow"})):null,!d.keybinding&&!g&&d.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},d.extraDesc)))};let a=class extends m.BrowserCtxMenuService{renderSubMenuTitle(u,d){return o.default.createElement(f,{data:u,...d})}renderMenuItem(u,d){return o.default.createElement(f,{data:u,...d})}};t.DesignBrowserCtxMenuService=a,t.DesignBrowserCtxMenuService=a=n.__decorate([(0,c.Injectable)()],a)},45365:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSplitPanelService=void 0;const n=e(71707);class r extends n.SplitPanelService{renderSplitPanel(c,p,v){return super.renderSplitPanel(c,p,v)}interceptProps(c){return c}}t.DesignSplitPanelService=r},13925:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#D4D4D4"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#6A9955"}},{scope:"constant.language",settings:{foreground:"#569cd6"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#b5cea8"}},{scope:"constant.regexp",settings:{foreground:"#646695"}},{scope:"entity.name.tag",settings:{foreground:"#569cd6"}},{scope:"entity.name.tag.css",settings:{foreground:"#d7ba7d"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9cdcfe"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#d7ba7d"}},{scope:"invalid",settings:{foreground:"#f44747"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#b5cea8"}},{scope:"markup.deleted",settings:{foreground:"#ce9178"}},{scope:"markup.changed",settings:{foreground:"#569cd6"}},{scope:"punctuation.definition.quote.begin.markdown",settings:{foreground:"#6A9955"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#6796e6"}},{scope:"markup.inline.raw",settings:{foreground:"#ce9178"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#808080"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#569cd6"}},{scope:"meta.preprocessor.string",settings:{foreground:"#ce9178"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#b5cea8"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#9cdcfe"}},{scope:"meta.diff.header",settings:{foreground:"#569cd6"}},{scope:"storage",settings:{foreground:"#569cd6"}},{scope:"storage.type",settings:{foreground:"#569cd6"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#569cd6"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#ce9178"}},{scope:"string.tag",settings:{foreground:"#ce9178"}},{scope:"string.value",settings:{foreground:"#ce9178"}},{scope:"string.regexp",settings:{foreground:"#d16969"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#569cd6"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#d4d4d4"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#9cdcfe"}},{scope:"keyword",settings:{foreground:"#569cd6"}},{scope:"keyword.control",settings:{foreground:"#569cd6"}},{scope:"keyword.operator",settings:{foreground:"#d4d4d4"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#569cd6"}},{scope:"keyword.other.unit",settings:{foreground:"#b5cea8"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#569cd6"}},{scope:"support.function.git-rebase",settings:{foreground:"#9cdcfe"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#b5cea8"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#d4d4d4"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#569cd6"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#DCDCAA"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#4EC9B0"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#4EC9B0"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#C586C0"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.nam1e.variable","constant.other.placeholder"],settings:{foreground:"#9CDCFE"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#4FC1FF"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#9CDCFE"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#CE9178"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#CE9178"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#d16969"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#DCDCAA"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#d7ba7d"}},{scope:"constant.character",settings:{foreground:"#569cd6"}},{scope:"constant.character.escape",settings:{foreground:"#d7ba7d"}},{scope:"entity.name.label",settings:{foreground:"#C8C8C8"}}],colors:{"activityBar.activeBorder":"#ffffff1f","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#fff","activityBar.inactiveForeground":"#ffffff73","activityBarBadge.background":"#167CDB","activityBarBadge.foreground":"#FFFFFF","badge.background":"#FFFFFF40","badge.foreground":"#D7DBDE","breadcrumb.background":"#222830","breadcrumb.foreground":"#ffffff73","checkbox.background":"#ffffff14","checkbox.border":"#ffffff1f",descriptionForeground:"#868C91","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#43484D","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#00000000","editorGroupHeader.tabsBackground":"#222830","editorSuggestWidget.selectedBackground":"#1A66AC",errorForeground:"#D21F28",focusBorder:"#ffffff1f",foreground:"#D7DBDE","editorCommentsWidget.unresolvedBorder":"#ffffff","gitDecoration.addedResourceForeground":"#8FD460","gitDecoration.conflictingResourceForeground":"#7F9EF3","gitDecoration.deletedResourceForeground":"#F3956A","gitDecoration.ignoredResourceForeground":"#BBC0C4","gitDecoration.modifiedResourceForeground":"#F3CC62","gitDecoration.submoduleResourceForeground":"#67ABEB","gitDecoration.untrackedResourceForeground":"#58D1C9","icon.foreground":"#D7DBDE","input.background":"#ffffff14","input.foreground":"#d7dbde","input.placeholderForeground":"#ffffff59","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#332510","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#d7dbde","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#D7DBDE","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#5F656B40","kt.button.disableBorder":"#5F656B80","kt.button.disableForeground":"#5F656B","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.defaultButton.background":"#ffffff14","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#ffffff14","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#ffffff14","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#ffffff40","kt.defaultButton.foreground":"#D7DBDE","kt.defaultButton.hoverBackground":"#ffffff29","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#ffffff29","kt.defaultButton.selectionForeground":"#fff","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#ffffff73","kt.icon.hoverBackground":"#ffffff14","kt.icon.hoverForeground":"#D7DBDE","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#00000000","kt.input.disableBackground":"#5F656B40","kt.input.disableForeground":"#ffffff40","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#222830","kt.modal.foreground":"#D7DBDE","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#868C91","kt.panelTab.activeBackground":"#151b21","kt.panelTab.activeForeground":"#FFFFFF","kt.panelTab.border":"#ffffff1f","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#D7DBDE","kt.panelTitle.background":"#222830","kt.popover.background":"#2b333d","kt.popover.border":"#363940","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dffa6","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#3c8dffa6","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#00000000","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#00000000","kt.secondaryButton.border":"#5F656B","kt.secondaryButton.clickBorder":"#167CDB","kt.secondaryButton.clickForeground":"#167CDB","kt.secondaryButton.foreground":"#D7DBDE","kt.secondaryButton.hoverBorder":"#3895EB","kt.secondaryButton.hoverForeground":"#3895EB","kt.secondaryButton.background":"#00000000","kt.select.background":"#ffffff14","kt.select.border":"#00000000","kt.select.disableBackground":"#5F656B40","kt.select.disableForeground":"#5F656B","kt.select.foreground":"#D7DBDE","kt.select.placeholderForeground":"#5F656B","kt.selectDropdown.background":"#222830","kt.selectDropdown.foreground":"#D7DBDE","kt.selectDropdown.hoverBackground":"#ffffff14","kt.selectDropdown.selectionBackground":"#ffffff14","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#FFFFFF","kt.tab.borderDown":"#5F656B40","kt.tab.inactiveForeground":"#D7DBDE","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#5F656B40","kt.tree.hoverForeground":"#D7DBDE","kt.tree.inactiveSelectionBackground":"#ffffff1f","kt.tree.inactiveSelectionForeground":"#fff","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#5F656B40","menu.background":"#222830d9","menu.foreground":"#D7DBDE","menu.selectionBackground":"#5F656B40","menu.selectionForeground":"#FFFFFF","menu.separatorBackground":"#43484D","menubar.selectionBackground":"#5f656b40","menubar.selectionForeground":"#FFFFFF","message.background":"#222830","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#222830","notifications.foreground":"#D7DBDE","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#151b21","panel.border":"#43484D","panel.foreground":"#D7DBDE","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#167CDB","panelTitle.activeForeground":"#FFFFFF","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#ffffff73","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#ffffff1f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#ffffffa6","sideBarTitle.foreground":"#FFFFFF","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#ffffff73","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#d2d2d2a6","statusBarItem.prominentBackground":"#2a2a2a80","tab.activeBackground":"#151b21","tab.activeForeground":"#FFFFFF","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#ffffff73","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#151b21","terminal.border":"#252729","terminal.foreground":"#D7DBDE","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#ffffff14","editor.background":"#181818","quickInput.background":"#222830","list.focusBackground":"#ffffff1f","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#151b21"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs-dark",designThemeType:"design-dark",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-dark-theme",name:"OpenSumi Design Dark+ (default dark)"}},37517:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignThemeFileSystemProvider=void 0;const n=e(85608),r=e(76003),o=e(43718),c=n.__importDefault(e(13925)),p=n.__importDefault(e(63080));let v=class{constructor(){this.capabilities=2048,this.onDidChangeCapabilities=o.Event.None,this.onDidChangeFile=o.Event.None}stat(_){return Promise.resolve({type:o.FileType.File,uri:_.toString(),lastModification:Date.now(),isDirectory:!1})}async readFile(_){const{query:s}=_;return c.default.id===s?this.toBuffer(JSON.stringify(c.default)):this.toBuffer(JSON.stringify(p.default))}toBuffer(_){return o.BinaryBuffer.fromString(_).buffer}readDirectory(){throw new Error("Not allowed")}createDirectory(){throw new Error("Not allowed")}rename(){throw new Error("Not allowed")}delete(){throw new Error("Not allowed")}watch(){throw new Error("Not allowed")}writeFile(){throw new Error("Not allowed")}};t.DesignThemeFileSystemProvider=v,t.DesignThemeFileSystemProvider=v=n.__decorate([(0,r.Injectable)()],v)},63080:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#000000ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"meta.diff.header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#008000"}},{scope:"constant.language",settings:{foreground:"#0000ff"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#098658"}},{scope:"constant.regexp",settings:{foreground:"#811f3f"}},{name:"css tags in selectors, xml tags",scope:"entity.name.tag",settings:{foreground:"#800000"}},{scope:"entity.name.selector",settings:{foreground:"#800000"}},{scope:"entity.other.attribute-name",settings:{foreground:"#ff0000"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#800000"}},{scope:"invalid",settings:{foreground:"#cd3131"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#000080"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#800000"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#098658"}},{scope:"markup.deleted",settings:{foreground:"#a31515"}},{scope:"markup.changed",settings:{foreground:"#0451a5"}},{scope:["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],settings:{foreground:"#0451a5"}},{scope:"markup.inline.raw",settings:{foreground:"#800000"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#800000"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#0000ff"}},{scope:"meta.preprocessor.string",settings:{foreground:"#a31515"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#098658"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#0451a5"}},{scope:"storage",settings:{foreground:"#0000ff"}},{scope:"storage.type",settings:{foreground:"#0000ff"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#0000ff"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#a31515"}},{scope:["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],settings:{foreground:"#0000ff"}},{scope:"string.regexp",settings:{foreground:"#811f3f"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#0000ff"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#000000"}},{scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#ff0000"}},{scope:["support.type.property-name.json"],settings:{foreground:"#0451a5"}},{scope:"keyword",settings:{foreground:"#0000ff"}},{scope:"keyword.control",settings:{foreground:"#0000ff"}},{scope:"keyword.operator",settings:{foreground:"#000000"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#0000ff"}},{scope:"keyword.other.unit",settings:{foreground:"#098658"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#800000"}},{scope:"support.function.git-rebase",settings:{foreground:"#0451a5"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#098658"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#000000"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#0000ff"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#795E26"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#267f99"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#267f99"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#AF00DB"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],settings:{foreground:"#001080"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#0070C1"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#001080"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#d16969"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#811f3f"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#000000"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#EE0000"}},{scope:"constant.character",settings:{foreground:"#0000ff"}},{scope:"constant.character.escape",settings:{foreground:"#EE0000"}},{scope:"entity.name.label",settings:{foreground:"#000000"}}],colors:{"activityBar.activeBorder":"#151b2114","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#151b21","activityBar.inactiveForeground":"#151b21a6","activityBarBadge.background":"#3C8DFF","activityBarBadge.foreground":"#FFFFFF","badge.background":"#151b5814","badge.foreground":"#151b21a6","breadcrumb.background":"#fff","breadcrumb.foreground":"#5d646c","checkbox.background":"#fff","checkbox.border":"#151b2129",descriptionForeground:"#151b21a6","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#151b2133","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#ffffff","editorGroupHeader.tabsBackground":"#DDE8F4","editorSuggestWidget.selectedBackground":"#6eb6fa40",errorForeground:"#D21F28",focusBorder:"#151b2129",foreground:"#151b21d9","editorCommentsWidget.unresolvedBorder":"#4d9ded","gitDecoration.addedResourceForeground":"#52c41a","gitDecoration.modifiedResourceForeground":"#faad14","gitDecoration.deletedResourceForeground":"#fa541c","gitDecoration.untrackedResourceForeground":"#13c2c2","gitDecoration.ignoredResourceForeground":"#666666","gitDecoration.conflictingResourceForeground":"#ff0000","gitDecoration.submoduleResourceForeground":"#1785eb","icon.foreground":"#151b21d9","input.background":"#fff","input.foreground":"#151b21","input.placeholderForeground":"#151b2173","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#fff","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#151b21","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#151b21a6","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#151b210a","kt.button.disableBorder":"#151b2114","kt.button.disableForeground":"#151b2159","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#151b21a6","kt.icon.hoverBackground":"#151b2114","kt.icon.hoverForeground":"#151b21d9","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#151b2129","kt.input.disableBackground":"#151b210a","kt.input.disableForeground":"#151b2159","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#fff","kt.modal.foreground":"#151b21d9","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#151b21a6","kt.panelTab.activeBackground":"#fff","kt.panelTab.activeForeground":"#151b21","kt.panelTab.border":"#151b2114","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#151b21d9","kt.panelTitle.background":"#fff","kt.popover.background":"#000000e3","kt.popover.border":"#000000e3","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.defaultButton.background":"#fafafb","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#fafafb","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#fff","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#151b2159","kt.defaultButton.foreground":"#000a1aff","kt.defaultButton.hoverBackground":"#F5F5F6","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#fff","kt.defaultButton.selectionForeground":"#151b21","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dff","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#5b9fff","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#fff","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#fff","kt.secondaryButton.border":"#00000026","kt.secondaryButton.clickBorder":"#00000026","kt.secondaryButton.clickForeground":"#151b21","kt.secondaryButton.foreground":"#151b21d9","kt.secondaryButton.background":"#fff","kt.secondaryButton.hoverBorder":"#00000026","kt.secondaryButton.hoverForeground":"#151b21","kt.select.background":"#fff","kt.select.border":"#151b2129","kt.select.disableBackground":"#151b2114","kt.select.disableForeground":"#151b2159","kt.select.foreground":"#151b21","kt.select.placeholderForeground":"#151b2173","kt.selectDropdown.background":"#fff","kt.selectDropdown.foreground":"#151b21","kt.selectDropdown.hoverBackground":"#151b2114","kt.selectDropdown.selectionBackground":"#151b2114","kt.selectDropdown.selectionForeground":"#151b21","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#151b21","kt.tab.borderDown":"#151b211f","kt.tab.inactiveForeground":"#151b21a6","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#151b5814","kt.tree.hoverForeground":"#151b21","kt.tree.inactiveSelectionBackground":"#151b5814","kt.tree.inactiveSelectionForeground":"#151b21","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#151b5814","menu.background":"#FFFFFF","menu.foreground":"#151b21","menu.selectionBackground":"#151b2114","menu.selectionForeground":"#151b21","menu.separatorBackground":"#151b211f","menubar.selectionBackground":"#151b2114","menubar.selectionForeground":"#151b21","message.background":"#151b21d9","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#fff","notifications.foreground":"#151b21d9","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#fff","panel.border":"#43484D","panel.foreground":"#151b21","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#3c8dff","panelTitle.activeForeground":"#151b21","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#151b21a6","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#151b211f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#151b21d9","sideBarTitle.foreground":"#151b21d9","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#151b21a6","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#151b21a6","statusBarItem.prominentBackground":"#f1f1f180","tab.activeBackground":"#ffffff","tab.activeForeground":"#151b21","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#151b21d9","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#FFFFFF","terminal.border":"#252729","terminal.foreground":"#151b21","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#151b211f","editor.background":"#F1F2F3","quickInput.background":"#fff","list.focusBackground":"#151b5814","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#fff"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs",designThemeType:"design-light",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-light-theme",name:"OpenSumi Design Light+ (default light)"}},98741:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideMonacoColorToken=t.overrideColorToken=void 0;const n=e(85608),r=e(52416),o=n.__importDefault(e(13925)),c=n.__importDefault(e(63080)),p=()=>{const m=(0,r.getColorRegistry)();m.getColors().forEach(({id:_})=>{if(o.default.colors[_]&&c.default.colors[_]){const s=m.getColor(_);(0,r.registerColor)(_,{dark:o.default.colors[_],light:c.default.colors[_],hcDark:s.defaults.hcDark||null,hcLight:s.defaults.hcLight||null},s.description)}})};t.overrideColorToken=p;const v=()=>{(0,r.registerColor)("vscode.quickInputList.focusBackground",{light:"#151b2114",dark:"#5F656B40",hcDark:null,hcLight:null},"Quick picker background color for the focused item."),(0,r.registerColor)("quickInputList.focusForeground",{dark:"#ffffff",light:"#151b21",hcDark:null,hcLight:null},"Quick picker foreground color for the focused item.")};t.overrideMonacoColorToken=v},66338:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DESIGN_MENU_BAR_LEFT=t.DESIGN_MENU_BAR_RIGHT=t.DESIGN_MENUBAR_CONTAINER_VIEW_ID=void 0,t.DESIGN_MENUBAR_CONTAINER_VIEW_ID="design_menubar",t.DESIGN_MENU_BAR_RIGHT="design_menu_bar_right",t.DESIGN_MENU_BAR_LEFT="design_menu_bar_left"},38879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(66338),t)},82353:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(38879),t)},87802:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBreadCrumbProvider=void 0,t.findCurrentDocumentSymbol=h;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(26542),v=e(79929),m=e(97408),_=e(82196),s=e(17459),{Path:f}=c.path;let a=class extends c.WithEventBus{constructor(){super(...arguments),this._onDidUpdateBreadCrumb=new c.Emitter,this.onDidUpdateBreadCrumb=this._onDidUpdateBreadCrumb.event,this.debouncedFireUriEvent=new Map,this.cachedBreadCrumb=new c.LRUMap(200,100)}handlesUri(l){return this.fileServiceClient.handlesScheme(l.scheme)}provideBreadCrumbForUri(l,y){return this.getFileParts(l).concat(this.getDocumentSymbolParts(l,y))}getFileParts(l){const y=this.workspaceService.workspace?new c.URI(this.workspaceService.workspace.uri):void 0;let b,S;y&&y.isEqualOrParent(l)?(b=y,S=y.relative(l)):(b=c.URI.from({scheme:l.scheme,authority:l.authority}),S=l.path);let A=b.path;const w=[];for(const T of S.toString().split(f.separator).filter(D=>!!D)){A=A.join(T);const D=b.withPath(A);w.push(this.createFilePartBreadCrumbUri(D,!D.isEqual(l)))}return w}createFilePartBreadCrumbUri(l,y){const b=l.toString();if(this.cachedBreadCrumb.has(b))return this.cachedBreadCrumb.get(b);const S={name:l.path.base,uri:l,icon:this.labelService.getIcon(l,{isDirectory:y}),getSiblings:async()=>{const A=c.URI.from({scheme:l.scheme}).withPath(l.path.dir),w=await this.fileServiceClient.getFileStat(A.toString()),T=[];let D=-1;return w&&w.children&&w.children.length>0&&u(w.children).forEach((I,O)=>{T.push(this.createFilePartBreadCrumbUri(new c.URI(I.uri),I.isDirectory)),D===-1&&l.toString()===I.uri&&(D=O)}),{parts:T,currentIndex:D}}};return y?S.getChildren=async()=>{const A=await this.fileServiceClient.getFileStat(l.toString()),w=[];return A&&A.children&&A.children.length>0&&u(A.children).forEach((T,D)=>{w.push(this.createFilePartBreadCrumbUri(new c.URI(T.uri),T.isDirectory))}),w}:S.onClick=()=>{this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,l)},this.cachedBreadCrumb.set(b,S),S}getDocumentSymbolParts(l,y){if(!y)return[];const b=this.documentSymbolStore.getDocumentSymbol(l);if(b&&b.length>0){const S=h(b,y.monacoEditor.getPosition());return S.length>0?S.map(A=>this.createFromDocumentSymbol(A,y)):[{name:"...",getSiblings:()=>({parts:b.sort((A,w)=>E(A.range,w.range)).map(A=>this.createFromDocumentSymbol(A,y)),currentIndex:-1})}]}else return[]}createFromDocumentSymbol(l,y){const b={name:l.name,icon:(0,c.getSymbolIcon)(l.kind),isSymbol:!0,onClick:()=>{y.setSelection({startColumn:l.range.startColumn,endColumn:l.range.startColumn,startLineNumber:l.range.startLineNumber,endLineNumber:l.range.startLineNumber}),y.monacoEditor.revealRangeInCenter(l.range),y.monacoEditor.focus()}};return l.parent&&(b.getSiblings=()=>({parts:l.parent.children.sort((S,A)=>E(S.range,A.range)).map(S=>this.createFromDocumentSymbol(S,y)),currentIndex:l.parent.children.indexOf(l)})),l.children&&l.children.length>0&&(b.getChildren=()=>l.children.sort((S,A)=>E(S.range,A.range)).map(S=>this.createFromDocumentSymbol(S,y))),b}onDocumentSymbolChangedEvent(l){this.notifyUpdate(l.payload)}onEditorSelectionChangeEvent(l){this.notifyUpdate(l.payload.editorUri)}notifyUpdate(l){this.debouncedFireUriEvent.has(l.toString())||this.debouncedFireUriEvent.set(l.toString(),(0,r.default)(()=>{this._onDidUpdateBreadCrumb.fire(l)},100,{maxWait:1e3})),this.debouncedFireUriEvent.get(l.toString())()}};t.DefaultBreadCrumbProvider=a,n.__decorate([(0,o.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],a.prototype,"fileServiceClient",void 0),n.__decorate([(0,o.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],a.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(p.LabelService),n.__metadata("design:type",p.LabelService)],a.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],a.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",s.DocumentSymbolStore)],a.prototype,"documentSymbolStore",void 0),n.__decorate([(0,c.OnEvent)(s.DocumentSymbolChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.DocumentSymbolChangedEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onDocumentSymbolChangedEvent",null),n.__decorate([(0,c.OnEvent)(_.EditorSelectionChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.EditorSelectionChangeEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onEditorSelectionChangeEvent",null),t.DefaultBreadCrumbProvider=a=n.__decorate([(0,o.Injectable)()],a);function h(g,l){const y=[];if(!l)return y;let b=g;for(;b&&b.length>0;){let S=!1;for(const A of b)if(d(l,A.range)){y.push(A),b=A.children,S=!0;break}if(!S)break}return y}function u(g){return g.sort((l,y)=>{if(l.isDirectory&&y.isDirectory||!l.isDirectory&&!y.isDirectory){const b=new c.URI(l.uri).path.name,S=new c.URI(y.uri).path.name;return b.localeCompare(S,"kn",{numeric:!0})}else return l.isDirectory&&!y.isDirectory?-1:!l.isDirectory&&y.isDirectory?1:0})}function d(g,l){return g.lineNumber<l.startLineNumber?!1:g.lineNumber===l.startLineNumber?g.column>=l.startColumn:g.lineNumber<l.endLineNumber?!0:g.lineNumber===l.endLineNumber?g.column<=l.endColumn:!1}function E(g,l){return g.startLineNumber>l.startLineNumber?1:g.startLineNumber<l.startLineNumber?-1:g.startColumn===l.startColumn?0:g.startColumn>l.startColumn?1:-1}},17459:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SymbolTag=t.DocumentSymbolChangedEvent=t.DocumentSymbolStore=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(79865),v=e(40540);Object.defineProperty(t,"SymbolTag",{enumerable:!0,get:function(){return v.SymbolTag}});const m=e(23418),_=e(96689);let s=class extends c.WithEventBus{constructor(){super(),this.documentSymbols=new Map,this.pendingUpdate=new Set,this.debounced=new Map,this.symbolDeferred=new Map,this.addDispose(p.languageFeaturesService.documentSymbolProvider.onDidChange(()=>{Array.from(this.documentSymbols.keys()).forEach(d=>{this.markNeedUpdate(new c.URI(d))})}))}getDocumentSymbol(d){return this.documentSymbols.has(d.toString())||(this.documentSymbols.set(d.toString(),void 0),this.createDocumentSymbolCache(d)),this.pendingUpdate.has(d.toString())&&this.updateDocumentSymbolCache(d),this.documentSymbols.get(d.toString())}async getDocumentSymbolAsync(d,E){var g;const l=d.toString();return E&&E.onCancellationRequested(()=>{var y;(y=this.symbolDeferred.get(l))===null||y===void 0||y.resolve(),this.symbolDeferred.delete(l)}),(!this.documentSymbols.has(l)||this.pendingUpdate.has(l))&&!this.symbolDeferred.has(l)&&(this.symbolDeferred.set(l,new c.Deferred),this.updateDocumentSymbolCache(d)),await((g=this.symbolDeferred.get(l))===null||g===void 0?void 0:g.promise),this.documentSymbols.get(l)}async createDocumentSymbolCache(d){this.updateDocumentSymbolCache(d)}async doUpdateDocumentSymbolCache(d){var E,g;this.pendingUpdate.delete(d.toString());const l=await this.editorDocumentModelRegistry.createModelReference(d);if(!l){(E=this.symbolDeferred.get(d.toString()))===null||E===void 0||E.resolve();return}try{const y=p.languageFeaturesService.documentSymbolProvider.all(l.instance.getMonacoModel());let b;for(const S of y)if(b=await S.provideDocumentSymbols(l.instance.getMonacoModel(),new c.CancellationTokenSource().token),b)break;b&&a(b,{children:b},d),this.documentSymbols.set(d.toString(),b),this.eventBus.fire(new f(d))}finally{l.dispose()}(g=this.symbolDeferred.get(d.toString()))===null||g===void 0||g.resolve()}updateDocumentSymbolCache(d){this.debounced.has(d.toString())||this.debounced.set(d.toString(),(0,r.default)(()=>this.doUpdateDocumentSymbolCache(d),100,{maxWait:1e3})),this.debounced.get(d.toString())()}onEditorDocumentModelContentChangedEvent(d){d.payload.changes&&d.payload.changes.length>0&&this.markNeedUpdate(d.payload.uri)}markNeedUpdate(d){this.pendingUpdate.add(d.toString()),this.isWatching(d)&&this.updateDocumentSymbolCache(d)}isWatching(d){for(const E of this.editorService.editorGroups)if(E.currentResource&&E.currentResource.uri.isEqual(d))return!0;return!1}};t.DocumentSymbolStore=s,n.__decorate([(0,o.Autowired)(_.IEditorDocumentModelService),n.__metadata("design:type",Object)],s.prototype,"editorDocumentModelRegistry",void 0),n.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],s.prototype,"editorService",void 0),n.__decorate([(0,c.OnEvent)(_.EditorDocumentModelContentChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.EditorDocumentModelContentChangedEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onEditorDocumentModelContentChangedEvent",null),t.DocumentSymbolStore=s=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],s);class f extends c.BasicEvent{}t.DocumentSymbolChangedEvent=f;function a(u,d,E){return u.forEach((g,l)=>{const y=g;y.parent=d,y.id=h(E,y,l),g.children&&g.children.length>0&&a(g.children,g,E)}),u}function h(u,d,E){const g=[d.name];for(;d.parent;){const l=d.parent;if(!l.name)break;g.unshift(l.name),d=l}return`${u.toString()}__${g.join("-")}__${E}`}},88895:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumbServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(87802),{addElement:p}=o.arrays;let v=class{constructor(){this.providers=[],this._onDidUpdateBreadCrumbResults=new o.Emitter,this.onDidUpdateBreadCrumbResults=this._onDidUpdateBreadCrumbResults.event,this.crumbResults=new Map,this.registerBreadCrumbProvider(this.defaultBreadCrumbProvider)}registerBreadCrumbProvider(f){const a=p(this.providers,f);return f.onDidUpdateBreadCrumb(h=>{this.crumbResults.forEach((u,d)=>{u.has(h.toString())&&this.getBreadCrumbs(h,d)})}),a}getBreadCrumbs(f,a){const h=this.getEditorCrumbResults(a);for(const u of this.providers)if(u.handlesUri(f)){const d=h.get(f.toString()),E=u.provideBreadCrumbForUri(f,a);m(d,E)||(h.set(f.toString(),E),this._onDidUpdateBreadCrumbResults.fire({editor:a,uri:f}));break}return h.get(f.toString())}getEditorCrumbResults(f){return this.crumbResults.has(f)||(this.crumbResults.set(f,new Map),f&&f.monacoEditor.onDidDispose(()=>{this.crumbResults.delete(f)})),this.crumbResults.get(f)}disposeCrumb(f){}};t.BreadCrumbServiceImpl=v,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",c.DefaultBreadCrumbProvider)],v.prototype,"defaultBreadCrumbProvider",void 0),t.BreadCrumbServiceImpl=v=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],v);function m(s,f){if(!s&&!f)return!0;if(!s||!f)return!1;if(s.length!==f.length)return!1;for(let a=0;a<s.length;a++)if(!_(s[a],f[a]))return!1;return!0}function _(s,f){return s.name===f.name}},11673:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorComponentRegistryImpl=void 0;const n=e(85608),r=n.__importDefault(e(46343)),o=n.__importDefault(e(19106)),c=n.__importDefault(e(43144)),p=e(76003),v=e(43718),m=e(82196);let _=class{constructor(){this.components=new Map,this.sideWidgets={bottom:new Set,top:new Set},this.initialPropsMap=new Map,this.resolvers=new Map,this.normalizedResolvers=[],this.perWorkbenchComponents={}}registerEditorComponent(f,a){const h=f.uid;return f.renderMode||(f.renderMode=m.EditorComponentRenderMode.ONE_PER_GROUP),this.components.set(h,f),this.initialPropsMap.set(h,a),this.eventBus.fire(new v.ExtensionActivateEvent({topic:"onRegisterEditorComponent",data:h})),this.eventBus.fire(new m.RegisterEditorComponentEvent(h)),{dispose:()=>{this.components.get(h)===f&&(this.components.delete(h),this.eventBus.fire(new m.EditorComponentDisposeEvent(f)))}}}registerEditorComponentResolver(f,a){let h;return typeof f=="function"?h={handleScheme:f,resolver:a}:h={handleScheme:u=>u===f?10:-1,resolver:a},this.normalizedResolvers.push(h),this.resolvers.clear(),{dispose:()=>{for(const d of this.resolvers.values()){const E=d.indexOf(a);E!==-1&&d.splice(E,1)}const u=this.normalizedResolvers.indexOf(h);u!==-1&&this.normalizedResolvers.splice(u,1)}}}async resolveEditorComponent(f){let a=[];const h=this.getResolvers(f.uri.scheme).slice();let u=!1;const d=E=>{a=E,u=!0};for(const E of h)if(await E(f,a,d),u)break;return a.sort((E,g)=>{const l=E.weight||0;return(g.weight||0)-l}),(0,o.default)(a,r.default)}calculateSchemeResolver(f){const a=this.normalizedResolvers.slice(),h=[];return a.forEach((u,d)=>{const E=u.handleScheme(f);E>=0&&h.push({weight:E,index:d,resolver:u.resolver})}),h.sort((u,d)=>u.weight>d.weight?-1:u.weight<d.weight?1:d.index-u.index).map(u=>u.resolver)}getResolvers(f){return this.resolvers.has(f)||this.resolvers.set(f,this.calculateSchemeResolver(f)),this.resolvers.get(f)}getEditorComponent(f){return this.components.get(f)||null}getEditorInitialProps(f){return this.initialPropsMap.get(f)||null}clearPerWorkbenchComponentCache(f){c.default.unmountComponentAtNode(this.perWorkbenchComponents[f]),delete this.perWorkbenchComponents[f]}getSideWidgets(f,a){const h=[];return this.sideWidgets[f].forEach(u=>{u.displaysOnResource(a)&&h.push(u)}),h.sort((u,d)=>{const E=u.weight===void 0?10:u.weight;return(d.weight===void 0?10:d.weight)-E})}registerEditorSideWidget(f){const a=f.side||"bottom";return this.sideWidgets[a].add(f),this.eventBus.fire(new m.RegisterEditorSideComponentEvent),{dispose:()=>{this.sideWidgets[a].delete(f)}}}};t.EditorComponentRegistryImpl=_,n.__decorate([(0,p.Autowired)(v.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),t.EditorComponentRegistryImpl=_=n.__decorate([(0,p.Injectable)()],_)},84677:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonacoEditorDecorationApplier=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=e(76003),c=e(43718),p=e(52416),v=e(82196);let m=class extends c.Disposable{constructor(u){super(),this.editor=u,this.decorations=new Map,this.applyDecorationFromProvider(),this.editor.onDidChangeModel(()=>{this.clearDecorations(),this.applyDecorationFromProvider()}),this.editor.onDidDispose(()=>{this.dispose()}),this.addDispose(this.eventBus.on(v.EditorDecorationChangeEvent,d=>{const E=this.getEditorUri();E&&d.payload.uri.isEqual(E)&&this.applyDecorationFromProvider(d.payload.key)})),this.addDispose(this.eventBus.on(v.EditorDecorationTypeRemovedEvent,d=>{this.deltaDecoration(d.payload,[])}))}getEditorUri(){return this.editor.getModel()?new c.URI(this.editor.getModel().uri.toString()):null}async applyDecorationFromProvider(u){if(this.editor.getModel()){const d=new c.URI(this.editor.getModel().uri.toString()),E=await this.decorationService.getDecorationFromProvider(d,u);if(!this.editor.getModel()||this.editor.getModel().uri.toString()!==d.toString())return;for(const g of Object.keys(E))this.deltaDecoration(g,E[g]);this.eventBus.fire(new v.DidApplyEditorDecorationFromProvider({key:u,uri:d}))}}dispose(){super.dispose(),this.clearDecorations()}clearDecorations(){this.decorations.forEach(u=>{u.dispose(),this.editor.deltaDecorations(u.decorations,[])}),this.decorations.clear()}deltaDecoration(u,d){let E=[];if(this.decorations.has(u)&&(E=this.decorations.get(u).decorations,this.decorations.get(u).dispose(),this.decorations.delete(u)),E.length===0&&d.length===0)return;const g=this.editor.deltaDecorations(E,d);this.decorations.set(u,{decorations:g,dispose:()=>null})}applyDecoration(u,d){const E=this.decorations.get(u);E&&E.dispose();const g=E?E.decorations:[],l=[],y=new c.Disposable;if(g.length===0&&d.length===0)return;d.forEach(S=>{const A=this.resolveDecorationRenderer(u,S.renderOptions);l.push({range:S.range,options:{...A.options,hoverMessage:f(S.hoverMessage)}}),y.addDispose(A)});const b=this.editor.deltaDecorations(g,l);this.decorations.set(u,{decorations:b,dispose:()=>y.dispose()})}resolveDecorationRenderer(u,d){const E=this.decorationService.getTextEditorDecorationType(u),g={description:u},l=this.themeService.getCurrentThemeSync().type,y=new c.Disposable;if(E){const b=E.property;_(g,b,l)}if(d){const b=this.decorationService.createTextEditorDecorationType(d);_(g,b.property,l),y.addDispose(b)}return{options:g,dispose:()=>y.dispose()}}};t.MonacoEditorDecorationApplier=m,n.__decorate([(0,o.Autowired)(v.IEditorDecorationCollectionService),n.__metadata("design:type",Object)],m.prototype,"decorationService",void 0),n.__decorate([(0,o.Autowired)(p.IThemeService),n.__metadata("design:type",Object)],m.prototype,"themeService",void 0),n.__decorate([(0,o.Autowired)(c.IEventBus),n.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),t.MonacoEditorDecorationApplier=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],m);function _(h,u,d){u.overviewRulerLane&&(h.overviewRuler?h.overviewRuler.position=u.overviewRulerLane:h.overviewRuler={color:null,position:u.overviewRulerLane}),u.default&&s(h,u.default),d==="dark"&&u.dark&&s(h,u.dark),d==="light"&&u.light&&s(h,u.light),u.isWholeLine!==void 0&&(h.isWholeLine=u.isWholeLine),u.rangeBehavior&&(h.stickiness=u.rangeBehavior),h.inlineClassNameAffectsLetterSpacing=!0}function s(h,u){u.className&&(h.className=(0,r.default)(h.className,u.className)),u.inlineClassName&&(h.inlineClassName=(0,r.default)(h.inlineClassName,u.inlineClassName)),u.afterContentClassName&&(h.afterContentClassName=(0,r.default)(h.afterContentClassName,u.afterContentClassName)),u.beforeContentClassName&&(h.beforeContentClassName=(0,r.default)(h.beforeContentClassName,u.beforeContentClassName)),u.glyphMarginClassName&&(h.glyphMarginClassName=(0,r.default)(h.glyphMarginClassName,u.glyphMarginClassName)),u.overviewRulerColor&&h.overviewRuler&&(h.overviewRuler.color=u.overviewRulerColor)}function f(h){if(h)return h instanceof Array?h.map(a):a(h)}function a(h){return typeof h=="string"?{value:h,isTrusted:!0}:h}},84158:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareEditorContribution=t.CompareService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(82196);let v=class{constructor(){this.comparing=new Map}compare(s,f,a){const h=o.URI.from({scheme:p.DIFF_SCHEME,query:o.URI.stringifyQuery({name:a,original:s,modified:f,comparing:!0})});if(!this.comparing.has(h.toString())){const u=new o.Deferred;this.comparing.set(h.toString(),u),u.promise.then(()=>{this.comparing.delete(h.toString()),this.commandService.executeCommand(o.EDITOR_COMMANDS.CLOSE_ALL.id,h)})}return this.commandService.executeCommand(o.EDITOR_COMMANDS.OPEN_RESOURCE.id,h),this.comparing.get(h.toString()).promise}};t.CompareService=v,n.__decorate([(0,r.Autowired)(o.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),t.CompareService=v=n.__decorate([(0,r.Injectable)()],v);let m=class{registerMenus(s){s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.ACCEPT.id,label:(0,o.localize)("editor.action.accept")},iconClass:(0,o.getIcon)("check"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.REVERT.id,label:(0,o.localize)("editor.action.revert")},iconClass:(0,o.getIcon)("rollback"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS.id,label:(0,o.localize)("diffEditor.action.toggleCollapseUnchangedRegions")},toggledWhen:"config.diffEditor.hideUnchangedRegions.enabled",iconClass:"codicon codicon-map",group:"navigation",when:"isInDiffEditor"}])}registerCommands(s){s.registerCommand(o.DIFF_EDITOR_COMMANDS.ACCEPT,{execute:f=>{f&&this.compareService.comparing.has(f.toString())&&this.compareService.comparing.get(f.toString()).resolve(p.CompareResult.accept)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.REVERT,{execute:f=>{f&&this.compareService.comparing.has(f.toString())&&this.compareService.comparing.get(f.toString()).resolve(p.CompareResult.revert)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS,{execute:()=>{const f=this.preferenceService.get("diffEditor.hideUnchangedRegions.enabled");this.preferenceService.set("diffEditor.hideUnchangedRegions.enabled",!f,o.PreferenceScope.User)}})}};t.CompareEditorContribution=m,n.__decorate([(0,r.Autowired)(p.ICompareService),n.__metadata("design:type",v)],m.prototype,"compareService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.CompareEditorContribution=m=n.__decorate([(0,o.Domain)(c.MenuContribution,o.CommandContribution)],m)},57581:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDiffEditorContribution=t.DiffResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(26542),p=e(14951),v=e(23418),m=e(82196);let _=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=v.DIFF_SCHEME,this.modifiedToResource=new Map}onResourceDecorationChangeEvent(a){a.payload.uri&&this.modifiedToResource.has(a.payload.uri.toString())&&this.eventBus.fire(new v.ResourceDecorationNeedChangeEvent({uri:this.modifiedToResource.get(a.payload.uri.toString()),decoration:a.payload.decoration}))}async getCurrentUserHome(){if(!this.userhomePath)try{const a=await this.fileServiceClient.getCurrentUserHome();a&&(this.userhomePath=new o.URI(a.uri))}catch{}return this.userhomePath}async getReadableTooltip(a){const h=a.toString(),u=await this.getCurrentUserHome();if(!u)return decodeURIComponent(a.withScheme("").toString());if(u.isEqualOrParent(a)){const d=u&&u.toString();return decodeURIComponent(h.replace(d,"~"))}return decodeURIComponent(a.withScheme("").toString())}async provideResource(a){const{original:h,modified:u,name:d}=a.getParsedQuery(),E=new o.URI(h),g=new o.URI(u);return this.modifiedToResource.set(g.toString(),a),Promise.all([this.labelService.getIcon(E),this.getReadableTooltip(g)]).then(([l,y])=>{var b;return{name:d,icon:l,uri:a,supportsRevive:(b=this.appConfig.enableDiffRevive)!==null&&b!==void 0?b:!0,metadata:{original:E,modified:g},title:y}})}async shouldCloseResource(a,h){const{modified:u}=a.uri.getParsedQuery(),d=new o.URI(u),E=await this.resourceService.getResource(d);return E?await this.resourceService.shouldCloseResource(E,h):!0}};t.DiffResourceProvider=_,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",c.LabelService)],_.prototype,"labelService",void 0),n.__decorate([(0,r.Autowired)(v.ResourceService),n.__metadata("design:type",v.ResourceService)],_.prototype,"resourceService",void 0),n.__decorate([(0,r.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],_.prototype,"fileServiceClient",void 0),n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),n.__decorate([(0,o.OnEvent)(v.ResourceDecorationChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.ResourceDecorationChangeEvent]),n.__metadata("design:returntype",void 0)],_.prototype,"onResourceDecorationChangeEvent",null),t.DiffResourceProvider=_=n.__decorate([(0,r.Injectable)()],_);let s=class{registerResource(a){a.registerResourceProvider(this.diffResourceProvider)}registerEditorComponent(a){a.registerEditorComponentResolver(v.DIFF_SCHEME,(h,u)=>{u.push({type:m.EditorOpenType.diff})})}};t.DefaultDiffEditorContribution=s,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_)],s.prototype,"diffResourceProvider",void 0),t.DefaultDiffEditorContribution=s=n.__decorate([(0,o.Domain)(m.BrowserEditorContribution)],s)},21690:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyDocCacheImpl=void 0;const n=e(85608),r=e(76003);let o=class{hasCache(p){return!1}isFlushed(){return!0}getCache(p){return null}persistCache(p,v){}};t.EmptyDocCacheImpl=o,t.EmptyDocCacheImpl=o=n.__decorate([(0,r.Injectable)()],o)},80487:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(21690),t),n.__exportStar(e(7220),t)},7220:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDocCacheImpl=void 0;const n=e(85608),r=e(76003),o=e(51500),c=e(93107);let p=class{hasCache(m){return!0}isFlushed(){return!0}async getCache(m){const _=this.parseKeyFrom(m);return await this.storageService.getData(_)||null}persistCache(m,_){const s=this.parseKeyFrom(m),f=this.parseCacheFrom(m,_);this.storageService.setData(s,f)}parseCacheFrom(m,_){if(!(!_.dirty||!_.changeMatrix.length))return{path:m.path.toString(),startMD5:_.startMD5,changeMatrix:_.changeMatrix.map(s=>s.map(f=>(0,c.parseCacheValueFrom)(f)))}}parseKeyFrom(m){return`LocalStorageDocCacheImpl_${m.toString()}`}};t.LocalStorageDocCacheImpl=p,n.__decorate([(0,r.Autowired)(o.IWorkspaceStorageService),n.__metadata("design:type",Object)],p.prototype,"storageService",void 0),t.LocalStorageDocCacheImpl=p=n.__decorate([(0,r.Injectable)()],p)},86942:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentError=void 0;var e;(function(n){n.READ_CACHE_ERROR="EditorDocumentError:READ_CACHE_ERROR",n.APPLY_CACHE_TO_DIRTY_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIRTY_DOCUMENT",n.APPLY_CACHE_TO_DIFFERENT_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIFFERENT_DOCUMENT",n.FORMAT_ERROR="EditorDocumentError:FORMAT_ERROR"})(e||(t.EditorDocumentError=e={}))},9519:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModelServiceImpl=t.EDITOR_DOC_OPTIONS_PREF_KEY=t.EDITOR_DOCUMENT_MODEL_STORAGE=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(96405),p=e(14951),v=e(91249),m=e(96689);t.EDITOR_DOCUMENT_MODEL_STORAGE=new o.URI("editor-doc").withScheme(o.STORAGE_SCHEMA.SCOPE),t.EDITOR_DOC_OPTIONS_PREF_KEY="editor_doc_pref";let _=class extends o.WithEventBus{constructor(){super(),this.editorDocModels=new Map,this.creatingEditorModels=new Map,this._modelsToDispose=new Set,this.preferredModelOptions=new Map,this._ready=this.registerDispose(new o.ReadyEvent),this.modelCreationEventDispatcher=this.registerDispose(new o.Dispatcher),this._modelReferenceManager=new o.ReferenceManager(f=>(this._modelsToDispose.has(f)&&this._modelsToDispose.delete(f),this.getOrCreateModel(f))),this._modelReferenceManager.onReferenceAllDisposed(f=>{this._delete(f)}),this._modelReferenceManager.onInstanceCreated(f=>{this.modelCreationEventDispatcher.dispatch(f.uri.toString()),this.eventBus.fire(new m.EditorDocumentModelCreationEvent({uri:f.uri,languageId:f.languageId,eol:f.eol,encoding:f.encoding,content:f.getText(),readonly:f.readonly,versionId:f.getMonacoModel().getVersionId()}))}),this.addDispose(this.preferenceService.onPreferenceChanged(f=>{f.preferenceName==="editor.detectIndentation"&&this.editorDocModels.forEach(a=>{a.updateOptions({})})}))}onDocumentModelCreated(f,a){return this.modelCreationEventDispatcher.on(f)(a)}_delete(f){const a=this.preferenceService.get("editor.modelDisposeTime",3e3);this._modelsToDispose.add(f.toString());let h=null;const u=this.addDispose({dispose:()=>{h&&clearTimeout(h)}});h=window.setTimeout(()=>{u.dispose(),h=null,this._modelsToDispose.has(f.toString())&&this._doDelete(f.toString())},a)}_doDelete(f){const a=this.editorDocModels.get(f);if(a&&(!a.dirty||a.disposeEvenDirty))return a.dispose(),this.editorDocModels.delete(f),a;this._modelsToDispose.delete(f)}async changeModelOptions(f,a){return this.onceReady(()=>{this.preferredModelOptions.has(f.toString())&&(a={...this.preferredModelOptions.get(f.toString()),...a}),this.preferredModelOptions.set(f.toString(),a);const h=this.getModelReference(f);return h&&(a.encoding&&a.encoding!==h.instance.encoding&&h.instance.updateEncoding(a.encoding),a.languageId&&a.languageId!==h.instance.languageId&&(h.instance.languageId=a.languageId),a.eol&&a.eol!==h.instance.eol&&(h.instance.eol=a.eol),h.dispose()),this.persistOptionsPreference()})}persistOptionsPreference(){return this.storage.set(t.EDITOR_DOC_OPTIONS_PREF_KEY,JSON.stringify((0,o.mapToSerializable)(this.preferredModelOptions)))}async initialize(){if(this.storage=await this.getStorage(t.EDITOR_DOCUMENT_MODEL_STORAGE),this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY))try{this.preferredModelOptions=(0,o.serializableToMap)(JSON.parse(this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY)))}catch(f){this.logger.error(f)}this._ready.ready()}async acceptExternalChange(f){this.hashCalculateService.initialized||await this.hashCalculateService.initialize();const a=this.editorDocModels.get(f.payload.toString());if(a&&!a.dirty){const h=await this.contentRegistry.getProvider(a.uri);if(h)if(h.provideEditorDocumentModelContentMd5)await h.provideEditorDocumentModelContentMd5(a.uri,a.encoding)!==a.getBaseContentMd5()&&a.updateContent(await this.contentRegistry.getContentForUri(a.uri,a.encoding),void 0,!0);else{const u=await this.contentRegistry.getContentForUri(a.uri,a.encoding);this.hashCalculateService.calculate(u)!==a.getBaseContentMd5()&&a.updateContent(u,void 0,!0)}}}createModelReference(f,a){return this._modelReferenceManager.getReference(f.toString(),a)}getModelReference(f,a){return this._modelReferenceManager.getReferenceIfHasInstance(f.toString(),a)}getModelDescription(f,a){const h=this.getModelReference(f,a);if(!h)return null;const u=h.instance,d={alwaysDirty:u.alwaysDirty,closeAutoSave:u.closeAutoSave,disposeEvenDirty:u.disposeEvenDirty,eol:u.eol,encoding:u.encoding,dirty:u.dirty,languageId:u.languageId,readonly:u.readonly,uri:u.uri,id:u.id,savable:u.savable};return h.dispose(),d}getAllModels(){return Array.from(this.editorDocModels.values())}hasLanguage(f){return this.getAllModels().findIndex(a=>a.languageId===f)!==-1}async getOrCreateModel(f,a){return this.editorDocModels.has(f)?this.editorDocModels.get(f):this.createModel(f,a)}get onceReady(){return this.initialize(),this._ready.onceReady.bind(this._ready)}createModel(f,a){if(!this.creatingEditorModels.has(f)){const h=this.doCreateModel(f,a).then(u=>(this.creatingEditorModels.delete(f),u),u=>{throw this.creatingEditorModels.delete(f),u});this.creatingEditorModels.set(f,h)}return this.creatingEditorModels.get(f)}async doCreateModel(f,a){const h=new o.URI(f);let u=await this.contentRegistry.getProvider(h);if(u||await this.fileSystem.shouldWaitProvider(h.scheme)&&(u=await this.contentRegistry.getProvider(h)),!u)throw new Error(`No document provider found for ${h.toString()}`);const[d,E,g,l,y,b]=await Promise.all([u.provideEditorDocumentModelContent(h,a),u.isReadonly?u.isReadonly(h):void 0,u.preferLanguageForUri?u.preferLanguageForUri(h):void 0,u.isAlwaysDirty?u.isAlwaysDirty(h):!1,u.closeAutoSave?u.closeAutoSave(h):!1,u.disposeEvenDirty?u.disposeEvenDirty(h):!1]);!a&&u.provideEncoding&&(a=await u.provideEncoding(h));const S=u.provideEOL?await u.provideEOL(h):`
|
|
30464
30464
|
`,A=!!u.saveDocumentModel,w=this.injector.get(v.EditorDocumentModel,[h,d,{readonly:E,languageId:g,savable:A,eol:S,encoding:a,alwaysDirty:l,closeAutoSave:y,disposeEvenDirty:b}]);return this.onceReady(()=>{if(this.preferredModelOptions.has(h.toString())){const T=this.preferredModelOptions.get(h.toString());T?.encoding&&w.updateEncoding(T.encoding),T?.eol&&(w.eol=T.eol),T?.languageId&&(w.languageId=T.languageId)}}),this.editorDocModels.set(h.toString(),w),w}async saveEditorDocumentModel(f,a,h,u,d,E,g){const l=await this.contentRegistry.getProvider(f);if(!l)throw new Error(`No document provider found for ${f.toString()}`);if(!l.saveDocumentModel)throw new Error(`The document provider of ${f.toString()} does not have a save method`);return await l.saveDocumentModel(f,a,h,u,d,E,g)}dispose(){super.dispose(),this.getAllModels().forEach(f=>{f.getMonacoModel().dispose()})}};t.EditorDocumentModelServiceImpl=_,n.__decorate([(0,r.Autowired)(m.IEditorDocumentModelContentRegistry),n.__metadata("design:type",Object)],_.prototype,"contentRegistry",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],_.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],_.prototype,"getStorage",void 0),n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],_.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(c.IHashCalculateService),n.__metadata("design:type",Object)],_.prototype,"hashCalculateService",void 0),n.__decorate([(0,r.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],_.prototype,"fileSystem",void 0),n.__decorate([o.memoize,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",Promise)],_.prototype,"initialize",null),n.__decorate([(0,o.OnEvent)(m.EditorDocumentModelOptionExternalUpdatedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[m.EditorDocumentModelOptionExternalUpdatedEvent]),n.__metadata("design:returntype",Promise)],_.prototype,"acceptExternalChange",null),t.EditorDocumentModelServiceImpl=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},91249:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModel=void 0;const r=e(85608),o=r.__importDefault(e(12784)),c=e(76003),p=e(41869),v=e(96405),m=e(52902),_=e(68475),s=e(72665),f=e(2261),a=e(44781),h=e(43255),u=e(24347),d=e(23418),E=e(55113),g=e(90915),l=e(82196),y=e(86942),b=e(98469),S=e(96689);let A=n=class extends p.Disposable{constructor(T,D,I={}){super(),this.uri=T,this.saveQueue=new p.Throttler,this._encoding="utf8",this.readonly=!1,this.savable=!1,this.alwaysDirty=!1,this.closeAutoSave=!1,this.disposeEvenDirty=!1,this._originalEncoding=this._encoding,this._persistVersionId=0,this._baseContent="",this.savingTasks=[],this.dirtyChanges=[],this._isInitOption=!0,this._onDidChangeEncoding=new p.Emitter,this.onDidChangeEncoding=this._onDidChangeEncoding.event,this.onDispose(()=>{this.eventBus.fire(new S.EditorDocumentModelRemovalEvent(this.uri))}),I.encoding&&(this._encoding=I.encoding),this.readonly=!!I.readonly,this.savable=!!I.savable,this.alwaysDirty=!!I.alwaysDirty,this.disposeEvenDirty=!!I.disposeEvenDirty,this.closeAutoSave=!!I.closeAutoSave,this.monacoModel=m.monaco.editor.createModel(D,I.languageId,m.URI.parse(T.toString())),this.editorPreferences=(0,g.createEditorPreferenceProxy)(this.preferences,this.uri.toString(),this.languageId),this.updateOptions({}),I.eol&&(this.eol=I.eol),this._originalEncoding=this._encoding,this._previousVersionId=this.monacoModel.getVersionId(),this._persistVersionId=this.monacoModel.getAlternativeVersionId(),this.baseContent=D,this._isInitOption=!1,this.listenTo(this.monacoModel),this.readCacheToApply(),this.addDispose(this._onDidChangeEncoding),this.addDispose(this.monacoModel.onDidChangeLanguage(O=>{this.eventBus.fire(new S.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:O.newLanguage}))}))}updateOptions(T){const D={tabSize:this.editorPreferences["editor.tabSize"]||1,insertSpaces:this.editorPreferences["editor.insertSpaces"],detectIndentation:this.editorPreferences["editor.detectIndentation"],...T};D.detectIndentation?this.monacoModel.detectIndentation(D.insertSpaces,D.tabSize):this.monacoModel.updateOptions(D)}listenTo(T){this.addDispose(T.onDidChangeContent(D=>{D.changes&&D.changes.length>0&&this.dirtyChanges.push({fromVersionId:this._previousVersionId,toVersionId:D.versionId,changes:D.changes}),this._previousVersionId=D.versionId,this.notifyChangeEvent(D.changes,D.isRedoing,D.isUndoing)})),this.addDispose(T)}readCacheToApply(){if(!this.cacheProvider.hasCache(this.uri))return;const T=this.cacheProvider.getCache(this.uri,this.encoding);T&&((0,p.isThenable)(T)?T.then(D=>{D&&this.applyCache(D)}).catch(D=>{this.logger.error(`${y.EditorDocumentError.READ_CACHE_ERROR} ${D&&D.message}`)}):this.applyCache(T))}applyCache(T){if(this.dirty){this.logger.error(y.EditorDocumentError.APPLY_CACHE_TO_DIRTY_DOCUMENT);return}if(this.baseContentMd5!==T.startMD5){this.logger.error(y.EditorDocumentError.APPLY_CACHE_TO_DIFFERENT_DOCUMENT);return}const D=I=>{const[O,M,R,P,k]=I;return a.Range.lift({startLineNumber:M,startColumn:R,endLineNumber:P,endColumn:k})};if((0,d.isDocContentCache)(T))this.monacoModel.setValue(T.content);else for(const I of T.changeMatrix){const O=I.map(M=>({range:D(M),text:M[0]}));this.monacoModel.applyEdits(O)}}cleanAndUpdateContent(T){this.monacoModel.setValue(T),this.monacoModel._commandManager.clear(),this._persistVersionId=this.monacoModel.getAlternativeVersionId(),this.savingTasks=[],this.notifyChangeEvent([],!1,!1),this.baseContent=T}async updateEncoding(T){let D=!1;this._encoding!==T&&(D=!0),this._encoding=T,await this.reload(),D&&(this.eventBus.fire(new S.EditorDocumentModelOptionChangedEvent({uri:this.uri,encoding:this._encoding})),this._onDidChangeEncoding.fire())}get encoding(){return this._encoding}set eol(T){this.monacoModel.setEOL(T===`
|
|
30465
30465
|
`?_.EndOfLineSequence.LF:_.EndOfLineSequence.CRLF),this._isInitOption||this.eventBus.fire(new S.EditorDocumentModelOptionChangedEvent({uri:this.uri,eol:T}))}get eol(){return this.monacoModel.getEOL()}get dirty(){return this.alwaysDirty?!0:!this.savable||this.monacoModel.isDisposed()||this.readonly?!1:this._persistVersionId!==this.monacoModel.getAlternativeVersionId()}set languageId(T){m.monaco.editor.setModelLanguage(this.monacoModel,T),this.eventBus.fire(new S.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:T}))}get languageId(){return this.monacoModel.getLanguageId()}get id(){return this.monacoModel.id}getMonacoModel(){return this.monacoModel}async syncDocumentModelToExtThread(){await this.eventBus.fireAndAwait(new S.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:this.languageId,encoding:this.encoding,eol:this.eol,dirty:this.dirty}))}async save(T=!1,D=d.SaveReason.Manual){if(!this.dirty)return await this.syncDocumentModelToExtThread(),!1;const I=await this.contentRegistry.getProvider(this.uri);if(await I?.isReadonly(this.uri))return!1;const M=async(R=!1,P=d.SaveReason.Manual)=>{if(await this.formatOnSave(P),await this.eventBus.fireAndAwait(new S.EditorDocumentModelWillSaveEvent({uri:this.uri,reason:P,language:this.languageId,dirty:this.dirty})),this.editorPreferences["editor.askIfDiff"]||(R=!0),!this.dirty)return!1;const k=this.monacoModel.getVersionId(),F=this.savingTasks[this.savingTasks.length-1];if(F&&F.versionId===k){F.cancel();const j=this.savingTasks.pop();j?.dispose()}const L=new b.SaveTask(this.uri,k,this.monacoModel.getAlternativeVersionId(),this.getText(),R);this.savingTasks.push(L),this.savingTasks.length>0&&this.initSave();const N=await L.finished;if(N.state===p.SaveTaskResponseState.SUCCESS)return this.monacoModel.pushStackElement(),!0;if(N.state===p.SaveTaskResponseState.ERROR)return N.errorMessage!=="cancel"&&(this.logger.error(N.errorMessage),this.messageService.error((0,p.localize)("doc.saveError.failed")+`
|
|
30466
30466
|
`+N.errorMessage)),!1;if(N.state===p.SaveTaskResponseState.DIFF){const j=(0,p.localize)("doc.saveError.diffAndSave"),W=(0,p.localize)("doc.saveError.overwrite");return this.messageService.error((0,p.formatLocalize)("doc.saveError.diff",this.uri.toString()),[j,W]).then(U=>{U===j?this.compareAndSave():U===W&&M(!0,P)}),this.logger.error("The file cannot be saved, the version is inconsistent with the disk"),!1}return!1};return this.saveQueue.queue(M.bind(this,T,D))}async compareAndSave(){const T=p.URI.from({scheme:S.ORIGINAL_DOC_SCHEME,query:p.URI.stringifyQuery({target:this.uri.toString()})}),D=this.uri.path.base,I=await this.compareService.compare(T,this.uri,(0,p.formatLocalize)("editor.compareAndSave.title",D,D));I===l.CompareResult.revert?this.revert():I===l.CompareResult.accept&&this.save(!0)}async initSave(){for(;this.savingTasks.length>0;){const T=this.dirtyChanges;this.dirtyChanges=[],(await this.savingTasks[0].run(this.service,this.baseContent,T,this.encoding,this.eol)).state==="success"&&this.savingTasks[0]?(this.baseContent=this.savingTasks[0].content,this.eventBus.fire(new S.EditorDocumentModelSavedEvent(this.uri)),this.setPersist(this.savingTasks[0].alternativeVersionId)):this.dirtyChanges.unshift(...T),this.savingTasks.shift()}}setPersist(T){this._persistVersionId=T,this.notifyChangeEvent([],!1,!1)}async reload(){try{const T=await this.contentRegistry.getContentForUri(this.uri,this._encoding);(0,p.isUndefinedOrNull)(T)||this.cleanAndUpdateContent(T)}catch{this._persistVersionId=this.monacoModel.getAlternativeVersionId()}}async revert(T){T?this._persistVersionId=this.monacoModel.getAlternativeVersionId():await this.updateEncoding(this._originalEncoding)}getText(T){return T?this.monacoModel.getValueInRange(T):this.monacoModel.getValue()}updateContent(T,D,I=!1){D&&(this.eol=D);const O=this.eol===`\r
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/cli-engine",
|
|
3
|
-
"version": "3.8.2-next-
|
|
3
|
+
"version": "3.8.2-next-1741622293.0",
|
|
4
4
|
"description": "Integration engine runtime for opensumi-cli and opensumi extension",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@koa/cors": "^5.0.0",
|
|
28
28
|
"@opensumi/di": "^1.8.0",
|
|
29
|
-
"@opensumi/ide-core-browser": "3.8.2-next-
|
|
30
|
-
"@opensumi/ide-core-common": "3.8.2-next-
|
|
31
|
-
"@opensumi/ide-core-node": "3.8.2-next-
|
|
32
|
-
"@opensumi/ide-express-file-server": "3.8.2-next-
|
|
33
|
-
"@opensumi/ide-extension": "3.8.2-next-
|
|
34
|
-
"@opensumi/ide-i18n": "3.8.2-next-
|
|
35
|
-
"@opensumi/ide-main-layout": "3.8.2-next-
|
|
36
|
-
"@opensumi/ide-startup": "3.8.2-next-
|
|
29
|
+
"@opensumi/ide-core-browser": "3.8.2-next-1741622293.0",
|
|
30
|
+
"@opensumi/ide-core-common": "3.8.2-next-1741622293.0",
|
|
31
|
+
"@opensumi/ide-core-node": "3.8.2-next-1741622293.0",
|
|
32
|
+
"@opensumi/ide-express-file-server": "3.8.2-next-1741622293.0",
|
|
33
|
+
"@opensumi/ide-extension": "3.8.2-next-1741622293.0",
|
|
34
|
+
"@opensumi/ide-i18n": "3.8.2-next-1741622293.0",
|
|
35
|
+
"@opensumi/ide-main-layout": "3.8.2-next-1741622293.0",
|
|
36
|
+
"@opensumi/ide-startup": "3.8.2-next-1741622293.0",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"ejs": "^3.1.7",
|
|
39
39
|
"ip": "^1.1.8",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack": "^5.90.0",
|
|
73
73
|
"webpack-cli": "^5.1.4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "dc52950c079da503dc1428591f5926714e65d99b"
|
|
76
76
|
}
|