@opensumi/cli-engine 3.7.1-next-1736320460.0 → 3.7.1-next-1736417771.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.
@@ -13418,6 +13418,8 @@ html li {
13418
13418
  justify-content: center;
13419
13419
  z-index: 10;
13420
13420
  user-select: none;
13421
+ top: 0;
13422
+ left: 0;
13421
13423
  }
13422
13424
  .zNZBCtqTtRh9nDHp6miQ .Ec0gK9CeY8JaR4yQ0WWQ {
13423
13425
  height: 100%;
@@ -13443,7 +13445,7 @@ html li {
13443
13445
  height: 100%;
13444
13446
  align-items: center;
13445
13447
  }
13446
- `,"",{version:3,sources:["webpack://./../../packages/debug/lib/browser/view/configuration/debug-configuration.module.less"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,2BAA2B;EAC3B,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;EACd,WAAW;EACX,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,OAAO;EACP,8BAA8B;EAC9B,mBAAmB;EACnB,eAAe;EACf,eAAe;AACjB;AACA;EACE,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,qBAAqB;EACrB,uBAAuB;EACvB,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,gDAAgD;EAChD,4CAA4C;EAC5C,0CAA0C;AAC5C;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;AACrB",sourcesContent:[`.text-ellipsis {
13448
+ `,"",{version:3,sources:["webpack://./../../packages/debug/lib/browser/view/configuration/debug-configuration.module.less"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,2BAA2B;EAC3B,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;EACd,WAAW;EACX,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,OAAO;EACP,8BAA8B;EAC9B,mBAAmB;EACnB,eAAe;EACf,eAAe;AACjB;AACA;EACE,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,qBAAqB;EACrB,uBAAuB;EACvB,WAAW;EACX,iBAAiB;EACjB,MAAM;EACN,OAAO;AACT;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,gDAAgD;EAChD,4CAA4C;EAC5C,0CAA0C;AAC5C;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;AACrB",sourcesContent:[`.text-ellipsis {
13447
13449
  overflow: hidden;
13448
13450
  text-overflow: ellipsis;
13449
13451
  white-space: nowrap;
@@ -13528,6 +13530,8 @@ html li {
13528
13530
  justify-content: center;
13529
13531
  z-index: 10;
13530
13532
  user-select: none;
13533
+ top: 0;
13534
+ left: 0;
13531
13535
  }
13532
13536
  .debug_toolbar_container .debug_action_bar {
13533
13537
  height: 100%;
@@ -28344,7 +28348,7 @@ ${a}`)}return this.keybindingsChanged.fire({affectsCommands:[v.command]}),{dispo
28344
28348
  `);for(let O=0;O<w.length-1;O++)w[O]=w[O]+`
28345
28349
  `;w[w.length-1]||w.pop();const D=w.map(O=>this.linkify(O,!1,A));if(D.length===1)return D[0];const I=document.createElement("span");return D.forEach(O=>I.appendChild(O)),I}const T=document.createElement("span");for(const w of this.detectLinks(y))try{switch(w.kind){case"text":T.appendChild(document.createTextNode(w.value));break;case"web":T.appendChild(this.createWebLink(w.value));break;case"path":{const D=w.captures[0],I=w.captures[1]?Number(w.captures[1]):0,O=w.captures[2]?Number(w.captures[2]):0;T.appendChild(this.createPathLink(w.value,D,I,O,A));break}}}catch{T.appendChild(document.createTextNode(w.value))}return T}createWebLink(y){const S=this.createLink(y),A=l.URI.parse(y);return this.decorateLink(S,async()=>{if(A.scheme===o.Schemes.file){const T=A.toString(),w=o.OS.type()===l.OperatingSystem.Windows?l.path.win32:l.path.posix,D=l.path.normalize(w.sep===l.path.posix.sep&&l.isWindows?T.replace(/\\/g,l.path.posix.sep):T);await this.workbenchEditorService.open(l.URI.parse(D));return}this.openerService.open(y)}),S}createPathLink(y,S,A,T,w){if(S[0]==="/"&&S[1]==="/")return document.createTextNode(y);if(S[0]==="."){if(!w)return document.createTextNode(y);const O=w.toResource(S),P=this.createLink(y);return this.decorateLink(P,()=>{this.workbenchEditorService.open(l.URI.parse(O.toString()))}),P}const D=this.createLink(y);D.tabIndex=0;const I=l.URI.file(l.path.normalize(S));return this.fileServiceClient.getFileStat(I.toString()).then(O=>{!O||O&&O.isDirectory||this.decorateLink(D,()=>{this.workbenchEditorService.open(l.URI.parse(I.toString()),{range:{startColumn:T,startLineNumber:A,endLineNumber:A,endColumn:T}})})}),D}createLink(y){const S=document.createElement("a");return S.textContent=y,S}decorateLink(y,S){y.classList.add(p.default.link),y.title=(0,o.formatLocalize)("debug.console.followLink",l.isMacintosh?"Cmd":"Ctrl"),y.onmousemove=A=>{y.classList.toggle(p.default.pointer,l.isMacintosh?A.metaKey:A.ctrlKey)},y.onmouseleave=()=>y.classList.remove(p.default.pointer),y.onclick=A=>{const T=window.getSelection();!T||T.type==="Range"||(l.isMacintosh?A.metaKey:A.ctrlKey)&&(A.preventDefault(),A.stopImmediatePropagation(),S(!1))}}detectLinks(y){if(!y)return[];if(y.length>f)return[{kind:"text",value:y,captures:[]}];const S=[s,v],A=["web","path"],T=[],w=(D,I)=>{if(I>=S.length){T.push({value:D,kind:"text",captures:[]});return}const O=S[I];let P=0,R;for(O.lastIndex=0;(R=O.exec(D))!==null;){const k=D.substring(P,R.index);k&&w(k,I+1);const B=R[0];T.push({value:B,kind:A[I],captures:R.slice(1)}),P=R.index+B.length}const M=D.substring(P);M&&w(M,I+1)};return w(y,0),T}};t.LinkDetector=a,n.__decorate([(0,r.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],a.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(E.IFileServiceClient),n.__metadata("design:type",Object)],a.prototype,"fileServiceClient",void 0),n.__decorate([(0,r.Autowired)(o.IOpenerService),n.__metadata("design:type",Object)],a.prototype,"openerService",void 0),t.LinkDetector=a=n.__decorate([(0,r.Injectable)({multiple:!0})],a)},61752:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugMemoryFileSystemProvider=void 0;const n=e(85608),r=n.__importDefault(e(17228)),o=e(76003),l=e(43718),m=e(64582),E=e(38029),{Path:p}=l.path;let _=class{constructor(){this.memoryFdCounter=0,this.changeEmitter=new l.Emitter,this.fdMemory=new Map,this.capabilities=1028,this.onDidChangeCapabilities=l.Event.None,this.onDidChangeFile=this.changeEmitter.event,this.emptyBuffer=this.toBuffer("")}stat(c){return Promise.resolve({type:l.FileType.File,uri:c.toString(),mtime:0,ctime:0,size:0,lastModification:0,isDirectory:!1})}async readFile(c){const h=this.parseUri(c);if(!h)return this.emptyBuffer;if(!h.offset)return this.emptyBuffer;const{session:u,memoryReference:d,offset:v}=h,f=new Uint8Array(v.toOffset-v.fromOffset),a=this.memoryFdCounter++;let b=u.getMemory(d);return v&&(b=new s(b,v)),this.fdMemory.set(a,{session:u,region:b}),await this.read(a,v.fromOffset,f,0,f.length),f}async read(c,h,u,d,v){const f=this.fdMemory.get(c);if(!f)return;const a=await f.region.read(h,v);let b=0;for(const y of a)switch(y.type){case 1:return b;case 2:return b>0?b:this.logger.error(y.error);case 0:{const S=Math.max(0,h-y.offset),A=y.data.slice(S,Math.min(y.data.byteLength,S+(v-b)));u.set(A.buffer,d+b),b+=A.byteLength;break}default:this.logger.log(y)}return b}toBuffer(c){return l.BinaryBuffer.fromString(c).buffer}parseUri(c){if(c.scheme!==m.DEBUG_MEMORY_SCHEME)return;const h=this.debugSessionManager.sessions.find(f=>f.id.toLowerCase()===c.authority.toLowerCase());if(!h)return;let u;const d=/range=([0-9]+):([0-9]+)/.exec(c.query);d&&(u={fromOffset:Number(d[1]),toOffset:Number(d[2])});const[,v]=c.path.split(p.separator);return{session:h,offset:u,readOnly:!h.capabilities.supportsWriteMemoryRequest,sessionId:c.authority,memoryReference:decodeURIComponent(v)}}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("Method not implemented.")}};t.DebugMemoryFileSystemProvider=_,n.__decorate([(0,o.Autowired)(m.IDebugSessionManager),n.__metadata("design:type",E.DebugSessionManager)],_.prototype,"debugSessionManager",void 0),n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),t.DebugMemoryFileSystemProvider=_=n.__decorate([(0,o.Injectable)()],_);class s extends l.Disposable{constructor(c,h){super(),this.parent=c,this.range=h,this.invalidateEmitter=new l.Emitter,this.onDidInvalidate=this.invalidateEmitter.event,this.width=this.range.toOffset-this.range.fromOffset,this.writable=c.writable,this.registerDispose(c),this.registerDispose(c.onDidInvalidate(u=>{const d=(0,r.default)(u.fromOffset-h.fromOffset,0,this.width),v=(0,r.default)(u.toOffset-h.fromOffset,0,this.width);v>d&&this.invalidateEmitter.fire({fromOffset:d,toOffset:v})}))}read(c,h){if(c<0)throw new RangeError(`Invalid fromOffset: ${c}`);return this.parent.read(this.range.fromOffset+c,this.range.fromOffset+Math.min(h,this.width))}write(c,h){return this.parent.write(this.range.fromOffset+c,h)}}},31141:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugPreferences=t.IDebugConfiguration=t.debugPreferencesSchema=void 0,t.createDebugPreferences=o,t.injectDebugPreferences=l;const n=e(41869);t.debugPreferencesSchema={type:"object",properties:{"debug.trace":{type:"boolean",default:!1,description:(0,n.localize)("preference.debug.trace")},"debug.debugViewLocation":{enum:["default","left","right","bottom"],default:"default",description:(0,n.localize)("preference.debug.debugViewLocation")},"debug.openDebug":{enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart","openOnDebugBreak"],default:"openOnDebugBreak",description:(0,n.localize)("preference.debug.openDebug")},"debug.internalConsoleOptions":{enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart"],default:"openOnFirstSessionStart",description:(0,n.localize)("preference.debug.internalConsoleOptions")},"debug.allowBreakpointsEverywhere":{type:"boolean",description:(0,n.localize)("preference.debug.allowBreakpointsEverywhere"),default:!1}}};class r{}t.IDebugConfiguration=r,t.DebugPreferences=Symbol("DebugPreferences");function o(m){return(0,n.createPreferenceProxy)(m,t.debugPreferencesSchema)}function l(m){m.addProviders({token:t.DebugPreferences,useFactory:E=>{const p=E.get(n.PreferenceService);return o(p)}}),m.addProviders({token:n.PreferenceContribution,useValue:{schema:t.debugPreferencesSchema}})}},40453:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProgressService=void 0;const r=e(85608),o=e(76003),l=e(41869),m=e(68969),E=e(43718),p=e(26296);let _=n=class{constructor(){this.toDispose=[]}async onDebugServiceStateChange(g){this.progressResolve&&(this.progressResolve(),this.progressResolve=void 0),g===p.DebugState.Initializing&&this.progressService.getIndicator(n.DEBUG_PANEL_PROGRESS_ID)&&this.progressService.withProgress({location:n.DEBUG_PANEL_PROGRESS_ID},c=>new Promise(h=>this.progressResolve=h))}run(g){let c;const h=u=>{c=new E.DisposableCollection,u&&(c?.push(u.onDidChangeState(d=>this.onDebugServiceStateChange(d))),c?.push(u.onDidProgressStart(async d=>{const v=new Promise(f=>{const a=l.Event.any(l.Event.filter(u.onDidProgressEnd,b=>b.body.progressId===d.body.progressId),u.onDidExitAdapter)(()=>{a.dispose(),f()})});this.progressService.getIndicator(n.DEBUG_PANEL_PROGRESS_ID)&&this.progressService.withProgress({location:n.DEBUG_PANEL_PROGRESS_ID},()=>v),this.progressService.withProgress({location:E.ProgressLocation.Notification,title:d.body.title,cancellable:d.body.cancellable,silent:!0,delay:500},f=>{let a=0;const b=S=>{let A;typeof S.percentage=="number"&&(A=S.percentage-a,a+=A),f.report({message:S.message,increment:A,total:typeof A=="number"?100:void 0})};d.body.message&&b(d.body);const y=u.onDidProgressUpdate(S=>{S.body.progressId===d.body.progressId&&b(S.body)});return v.then(()=>y.dispose())},()=>u.cancel(d.body.progressId))})))};this.toDispose.push(g.onDidChangeActiveDebugSession(({current:u})=>{c&&c.dispose(),h(u)})),h(g.currentSession)}};t.DebugProgressService=_,_.DEBUG_PANEL_PROGRESS_ID="debug",r.__decorate([(0,o.Autowired)(m.IProgressService),r.__metadata("design:type",Object)],_.prototype,"progressService",void 0),t.DebugProgressService=_=n=r.__decorate([(0,o.Injectable)()],_)},69946:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.launchSchema=t.DebugSchemaManager=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(64582),m=e(70159),E=e(37499),{deepClone:p}=o.objects;let _=class{async update(){const g=this.config.getDebuggers(),c={...p(t.launchSchema)},h=c.properties.configurations.items,u=g.map(d=>({attributes:Object.keys(d.configurationAttributes||{}).map(v=>d.configurationAttributes[v]),configurationSnippets:d.configurationSnippets}));for(const{attributes:d,configurationSnippets:v}of u)d&&h.oneOf&&h.oneOf.push(...d),v&&h.defaultSnippets&&h.defaultSnippets.push(...v);this.schemaRegistry.registerSchema(l.launchExtensionSchemaUri,c,["launch.json"])}};t.DebugSchemaManager=_,n.__decorate([(0,r.Autowired)(m.IDebugServer),n.__metadata("design:type",Object)],_.prototype,"debug",void 0),n.__decorate([(0,r.Autowired)(o.IJSONSchemaRegistry),n.__metadata("design:type",Object)],_.prototype,"schemaRegistry",void 0),n.__decorate([(0,r.Autowired)(E.DebugConfigurationManager),n.__metadata("design:type",E.DebugConfigurationManager)],_.prototype,"config",void 0),t.DebugSchemaManager=_=n.__decorate([(0,r.Injectable)()],_),t.launchSchema={$id:l.launchSchemaUri,type:"object",title:"Launch",required:[],default:{version:"0.2.0",configurations:[]},properties:{version:{type:"string",description:"Version of this file format.",default:"0.2.0"},configurations:{type:"array",description:"List of configurations. Add new configurations or edit existing ones by using IntelliSense.",items:{defaultSnippets:[],type:"object",oneOf:[]}}}}},90408:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugService=void 0;const n=e(85608),r=e(76003),o=e(41869);let l=class{constructor(){this.onDidDebugContributionPointChangeEmitter=new o.Emitter,this.debugContributionPointsMap=new Map}registerDebugContributionPoints(E,p){this.debugContributionPointsMap.has(E)||(this.debugContributionPointsMap.set(E,p),this.onDidDebugContributionPointChangeEmitter.fire({path:E,contributions:p}))}unregisterDebugContributionPoints(E){const p=this.debugContributionPointsMap.get(E);p&&(this.debugContributionPointsMap.delete(E),this.onDidDebugContributionPointChangeEmitter.fire({path:E,contributions:p,removed:!0}))}get debugContributionPoints(){return this.debugContributionPointsMap}get onDidDebugContributionPointChange(){return this.onDidDebugContributionPointChangeEmitter.event}};t.DebugService=l,t.DebugService=l=n.__decorate([(0,r.Injectable)()],l)},3520:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSessionConnection=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(64582),m=e(38029),E=new Set(["breakpoint","capabilities","continued","exited","initialized","loadedSource","module","output","process","stopped","terminated","thread","progressStart","progressUpdate","progressEnd","invalidated"]);let p=class{constructor(s,g,c){this.sessionId=s,this.connectionFactory=g,this.traceOutputChannel=c,this.pendingRequests=new Map,this.requestHandlers=new Map,this.onDidCustomEventEmitter=new o.Emitter,this.onDidCustomEvent=this.onDidCustomEventEmitter.event,this.toDispose=new o.DisposableCollection(this.onDidCustomEventEmitter,o.Disposable.create(()=>this.pendingRequests.clear()),o.Disposable.create(()=>this.emitters.clear())),this.allThreadsContinued=!0,this.emitters=new Map,this.connection=this.createConnection()}get disposed(){return this.toDispose.disposed}dispose(){this.toDispose.dispose()}async createConnection(){if(this.disposed)throw new Error("Connection has been already disposed.");{const s=await this.connectionFactory(this.sessionId);return s.onceClose((g,c)=>{this.fire("exited",{code:g,reason:c})}),s.onMessage(g=>this.handleMessage(g)),this.toDispose.push(o.Disposable.create(()=>{s.dispose()})),s}}async sendRequest(s,g,c,h){var u;s==="initialize"&&(this.sessionAdapterID=g.adapterID);const d=this.manager.reportTime(l.DEBUG_REPORT_NAME.DEBUG_ADAPTER_PROTOCOL_TIME,{sessionId:this.sessionId,threadId:g&&g.threadId||((u=this.manager.currentThread)===null||u===void 0?void 0:u.raw.id)}),v=await this.doSendRequest(s,g,h),f={adapterID:this.sessionAdapterID,request:c.request};if(s==="threads"&&(f.amount=v.body.threads.length),d(s,f),(s==="next"||s==="stepIn"||s==="stepOut"||s==="stepBack"||s==="reverseContinue"||s==="restartFrame")&&this.fireContinuedEvent(g.threadId),s==="continue"){const a=v;return(a&&a.body&&a.body.allThreadsContinued)!==void 0&&(this.allThreadsContinued=v.body.allThreadsContinued),this.fireContinuedEvent(g.threadId,this.allThreadsContinued),v}return v}async sendCustomRequest(s,g){var c;return(c=await this.doSendRequest(s,g))===null||c===void 0?void 0:c.body}async doSendRequest(s,g=null,c){const h=new o.Deferred,u={seq:(0,l.getSequenceId)(),type:"request",command:s};let d;return g&&(u.arguments=g),this.pendingRequests.set(u.seq,v=>{d&&d.dispose(),v.success?h.resolve(v):h.reject(v)}),c&&(d=c.onCancellationRequested(async()=>{d.dispose();const v=this.manager.getSession(this.sessionId);v&&v.capabilities.supportsCancelRequest&&v.sendRequest("cancel",{requestId:u.seq})})),await this.send(u),h.promise}async send(s){const g=await this.connection,c=JSON.stringify(s);this.traceOutputChannel&&this.traceOutputChannel.appendLine(`${this.sessionId.substring(0,8)} [UI -> adapter]: ${c}`),g.send(c)}handleMessage(s){this.traceOutputChannel&&this.traceOutputChannel.appendLine(`${this.sessionId.substring(0,8)} [adapter -> UI ]: ${s}`);const g=JSON.parse(s);g.type==="request"?this.handleRequest(g):g.type==="response"?this.handleResponse(g):g.type==="event"&&this.handleEvent(g)}handleResponse(s){const g=this.pendingRequests.get(s.request_seq);g&&(this.pendingRequests.delete(s.request_seq),g(s))}onRequest(s,g){this.requestHandlers.set(s,g)}async handleRequest(s){const g={type:"response",seq:(0,l.getSequenceId)(),command:s.command,request_seq:s.seq,success:!0},c=this.requestHandlers.get(s.command);if(c)try{g.body=await c(s)}catch(h){g.success=!1,g.message=h.message}else(0,o.getDebugLogger)().error("Unhandled request",s);await this.send(g)}handleEvent(s){"event"in s?(s.event==="continued"&&(this.allThreadsContinued=s.body.allThreadsContinued!==!1),E.has(s.event)?this.doFire(s.event,s):this.onDidCustomEventEmitter.fire(s)):this.fire("exited",s)}on(s,g){return this.disposed?o.Disposable.create(()=>{}):this.getEmitter(s).event(g)}fire(s,g){this.doFire(s,g)}doFire(s,g){this.disposed||this.getEmitter(s).fire(g)}getEmitter(s){const g=this.emitters.get(s)||this.newEmitter();return this.emitters.set(s,g),g}newEmitter(){const s=new o.Emitter;return this.toDispose.push(s),s}fireContinuedEvent(s,g=!1){this.fire("continued",{type:"event",event:"continued",body:{threadId:s,allThreadsContinued:g},seq:(0,l.getSequenceId)()})}};t.DebugSessionConnection=p,n.__decorate([(0,r.Autowired)(l.IDebugSessionManager),n.__metadata("design:type",m.DebugSessionManager)],p.prototype,"manager",void 0),t.DebugSessionConnection=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__param(0,(0,r.Optional)()),n.__param(1,(0,r.Optional)()),n.__param(2,(0,r.Optional)()),n.__metadata("design:paramtypes",[String,Function,Object])],p)},97186:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSessionFactory=t.DebugSessionContributionRegistryImpl=t.DebugSessionContributionRegistry=t.DebugSessionContribution=void 0;const n=e(85608),r=e(76003),o=e(41869);t.DebugSessionContribution=Symbol("DebugSessionContribution"),t.DebugSessionContributionRegistry=Symbol("DebugSessionContributionRegistry");let l=class{constructor(){this.contribs=new Map,this.init()}init(){for(const E of this.contributions.getContributions())this.contribs.set(E.debugType,E)}get(E){return this.contribs.get(E)}};t.DebugSessionContributionRegistryImpl=l,n.__decorate([(0,r.Autowired)(t.DebugSessionContribution),n.__metadata("design:type",Object)],l.prototype,"contributions",void 0),t.DebugSessionContributionRegistryImpl=l=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],l),t.DebugSessionFactory=Symbol("DebugSessionFactory")},38029:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSessionManager=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26542),m=e(54414),E=e(72665),p=e(93950),_=e(80907),s=e(64582),g=e(79845),c=e(80712),h=e(17280),u=e(97186),d=e(5905);let v=class{fireDidChange(a){this.inDebugModeKey.set(this.inDebugMode),this.onDidChangeEmitter.fire(a)}constructor(){this._uid=(0,o.uuid)(),this._sessions=new Map,this._extraMap=new Map,this._actionIndex=0,this.onWillStartDebugSessionEmitter=new o.Emitter,this.onWillStartDebugSession=this.onWillStartDebugSessionEmitter.event,this.onWillResolveDebugConfigurationEmitter=new o.Emitter,this.onWillResolveDebugConfiguration=this.onWillResolveDebugConfigurationEmitter.event,this.onDidCreateDebugSessionEmitter=new o.Emitter,this.onDidCreateDebugSession=this.onDidCreateDebugSessionEmitter.event,this.onDidStartDebugSessionEmitter=new o.Emitter,this.onDidStartDebugSession=this.onDidStartDebugSessionEmitter.event,this.onDidStopDebugSessionEmitter=new o.Emitter,this.onDidStopDebugSession=this.onDidStopDebugSessionEmitter.event,this.onDidChangeActiveDebugSessionEmitter=new o.Emitter,this.onDidChangeActiveDebugSession=this.onDidChangeActiveDebugSessionEmitter.event,this.onDidDestroyDebugSessionEmitter=new o.Emitter,this.onDidDestroyDebugSession=this.onDidDestroyDebugSessionEmitter.event,this.onDidReceiveDebugSessionCustomEventEmitter=new o.Emitter,this.onDidReceiveDebugSessionCustomEvent=this.onDidReceiveDebugSessionCustomEventEmitter.event,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.configurationIds=new Map,this.toDisposeOnCurrentSession=new o.DisposableCollection,this.init()}init(){this.debugTypeKey=this.contextKeyService.createKey(s.CONTEXT_DEBUG_TYPE_KEY,void 0),this.inDebugModeKey=this.contextKeyService.createKey(s.CONTEXT_IN_DEBUG_MODE_KEY,this.inDebugMode),this.debugStopped=this.contextKeyService.createKey(s.CONTEXT_DEBUG_STOPPED_KEY,!1),this.modelManager.onModelChanged(a=>{const{newModelUrl:b}=a;if(b){const y=o.URI.parse(b.toString()),S=this.modelManager.model;if(this.currentSession&&this.currentThread&&S){const A=this.currentThread.frames.find(T=>{var w;return((w=T.source)===null||w===void 0?void 0:w.uri.toString())===y.toString()});A&&A!==this.currentFrame&&(this.currentThread.currentFrame=A,setTimeout(()=>{this.workbenchEditorService.currentEditor&&this.workbenchEditorService.currentEditor.monacoEditor.revealLineInCenter(A.raw.line)},0))}}})}_getExtra(a,b){if(a==null)return;const y=this._extraMap.get(a);if(y)return{traceId:y.traceId,remote:y.remote,adapterID:y.adapterID,request:y.request,...b&&y.threads.get(`${b}`)}}getExtra(a,b){return this._getExtra(a,b)}_setExtra(a,b,y){const S=this._extraMap.get(a);S&&(y?S.threads.set(b,y):S.threads.delete(b))}setExtra(a,b,y){return this._setExtra(a,b,y)}report(a,b,y){return y={traceId:this._uid,...this._getExtra(y?.sessionId,y?.threadId),...y},this.reporterService.point(a,b,y)}reportTime(a,b){const y=this.reporterService.time(a);return(S,A)=>(A={...b,...A},A={traceId:this._uid,...this._getExtra(A?.sessionId,A?.threadId),...A},y.timeEnd(S,A))}reportAction(a,b,y){var S,A,T;let w=this._getExtra(a,b);w&&(b&&!w.threadId&&(w={...w}),this._actionIndex+=1,w.action=`${y}-${this._actionIndex}`,w.filePath=(A=(S=this.currentFrame)===null||S===void 0?void 0:S.raw.source)===null||A===void 0?void 0:A.path,w.fileLineNumber=(T=this.currentFrame)===null||T===void 0?void 0:T.raw.line,this._setExtra(a,`${b??""}`,w))}async start(a){const{configuration:b}=a,y={adapterID:b.type,request:b.request==="launch"?"launch":"attach",traceId:this._uid,remote:0,threads:new Map};if((0,d.isRemoteAttach)(b)&&(y.remote=1),this.report(s.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"number",{count:this.breakpoints.getBreakpoints().length,...y}),!a.configuration.__restart&&this.isExistedDebugSession(a)){this.messageService.error((0,o.formatLocalize)("debug.launch.existed",a.configuration.name));return}try{const S=this.reportTime(s.DEBUG_REPORT_NAME.DEBUG_SESSION_START_TIME,y);await this.fireWillStartDebugSession();const A=await this.resolveConfiguration(a);if(A){if(A.configuration.preLaunchTask){this.debugProgressService.onDebugServiceStateChange(s.DebugState.Initializing);const w=o.Uri.parse(A.workspaceFolderUri),D=await this.taskService.getTask(w,A.configuration.preLaunchTask);if(D){const I=this.reportTime(s.DEBUG_REPORT_NAME.DEBUG_PRE_LAUNCH_TASK_TIME,y),O=await this.taskService.run(D);O.exitCode!==0&&this.messageService.error(`The preLaunchTask ${A.configuration.preLaunchTask} exitCode is ${O.exitCode}`),I(w.toString(),{exitCode:O.exitCode})}this.debugProgressService.onDebugServiceStateChange(s.DebugState.Running)}}else{a.configuration.type?this.messageService.error((0,o.formatLocalize)("debug.notSupported.type",a.configuration.type)):this.messageService.error((0,o.localize)("debug.notSupported.any"));return}const T=await this.debug.createDebugSession(A);if(S(A.configuration.type,{adapterID:A.configuration.type,request:A.configuration.request,sessionId:T}),!T){this.messageService.error((0,o.formatLocalize)("debug.launch.typeNotSupported",A.configuration.type));return}return this.doStart(T,A,y)}catch(S){throw this.messageService.error((0,o.localize)("debug.launch.catchError")),S}}async fireWillStartDebugSession(){await o.WaitUntilEvent.fire(this.onWillStartDebugSessionEmitter,{})}async resolveConfiguration(a){if(s.IDebugSessionDTO.is(a))return a;const{workspaceFolderUri:b,index:y,noDebug:S,parentSession:A,repl:T,compact:w,lifecycleManagedByParent:D}=a,I=await this.resolveDebugConfiguration(a.configuration,b);I&&!("cwd"in I)&&(I.cwd="${workspaceFolder}");let O=await this.variableResolver.resolve(I,{});if(!O){O===null&&this.commandService.executeCommand(o.COMMON_COMMANDS.OPEN_LAUNCH_CONFIGURATION.id);return}if(O=await this.resolveDebugConfigurationWithSubstitutedVariables(O,b),!O){O===null&&this.commandService.executeCommand(o.COMMON_COMMANDS.OPEN_LAUNCH_CONFIGURATION.id);return}const P=O.name+b,R=this.configurationIds.has(P)?this.configurationIds.get(P)+1:0;return this.configurationIds.set(P,R),{id:R,configuration:O,workspaceFolderUri:b,index:y,noDebug:S,parentSession:A,repl:T,compact:w,lifecycleManagedByParent:D}}async resolveDebugConfiguration(a,b){return await this.fireWillResolveDebugConfiguration(a.type),this.debug.resolveDebugConfiguration(a,b)}async resolveDebugConfigurationWithSubstitutedVariables(a,b){return this.debug.resolveDebugConfigurationWithSubstitutedVariables(a,b)}async fireWillResolveDebugConfiguration(a){await o.WaitUntilEvent.fire(this.onWillResolveDebugConfigurationEmitter,{debugType:a})}async doStart(a,b,y){const S=this.sessionContributionRegistry.get(b.configuration.type);if(!S)return;const T=S.debugSessionFactory().get(a,b);this._sessions.set(a,T),this._extraMap.set(a,y),this.debugTypeKey.set(T.configuration.type),this.onDidCreateDebugSessionEmitter.fire(T);let w=s.DebugState.Inactive;return T.onDidChange(()=>{var D,I;w!==T.state&&(w=T.state,w===s.DebugState.Stopped?(this.onDidStopDebugSessionEmitter.fire(T),this.debugStopped.set(!0)):this.debugStopped.set(!1)),this.debugContextKey.contextSetVariableSupported.set((D=T.capabilities.supportsSetVariable)!==null&&D!==void 0?D:!1),this.debugContextKey.contextRestartFrameSupported.set((I=T.capabilities.supportsRestartFrame)!==null&&I!==void 0?I:!1),this.debugContextKey.contextDebugState.set(s.DebugState[T.state]),this.debugContextKey.contextInDebugMode.set(w!==s.DebugState.Inactive)}),T.on("terminated",D=>{const I=D.body&&D.body.restart;I?this.doRestart(T,I):this.destroy(T.id)}),T.on("exited",()=>this.destroy(T.id)),T.start().then(()=>this.onDidStartDebugSessionEmitter.fire(T)),T.onDidCustomEvent(({event:D,body:I})=>this.onDidReceiveDebugSessionCustomEventEmitter.fire({event:D,body:I,session:T})),this.updateCurrentSession(T),T}isExistedDebugSession(a){const{name:b}=a.configuration;for(const[,y]of this._sessions)if(y.configuration.name===b&&!y.terminated)return!0;return!1}async restart(a=this.currentSession){return a&&this.doRestart(a)}async doRestart(a,b){const{options:y,configuration:S}=a;return await a.restart({arguments:S})?a:(await a.terminate(!0),S.__restart=b,this.start(y))}updateCurrentSession(a){this.currentSession=a||this.sessions[this.sessions.length-1]}get inDebugMode(){return this.state>s.DebugState.Inactive}get currentThread(){const a=this.currentSession;return a&&a.currentThread}get state(){const a=this.currentSession;return a?a.state:s.DebugState.Inactive}get currentFrame(){const{currentThread:a}=this;return a&&a.currentFrame}get topFrame(){const{currentThread:a}=this;return a&&a.topFrame}getSession(a){if(a)return this._sessions.get(a)}get sessions(){return Array.from(this._sessions.values()).filter(a=>a.state>s.DebugState.Inactive)}get currentSession(){return this._currentSession}set currentSession(a){if(this._currentSession===a)return;this.toDisposeOnCurrentSession.dispose();const b=this._currentSession;this._currentSession=a,this.onDidChangeActiveDebugSessionEmitter.fire({previous:b,current:a}),a&&(this.toDisposeOnCurrentSession.push(a.onDidChange(()=>{this.currentFrame===this.topFrame&&this.open(),this.fireDidChange(a)})),this.toDisposeOnCurrentSession.push(a.onCurrentThreadChange(()=>{this.fireDidChange(a)}))),this.open(),this.fireDidChange(a)}open(){const{currentFrame:a}=this;a&&a.open()}async stopSession(a,b=!1){return a?b?a.disconnect():a.terminate():Promise.all(this.sessions.map(y=>b?y.disconnect():y.terminate()))}destroy(a){if(a){const b=this._sessions.get(a);b&&this.doDestroy(b)}else this._sessions.forEach(b=>this.doDestroy(b))}doDestroy(a){this.debug.terminateDebugSession(a.id),this.remove(a.id),a.dispose(),this.onDidDestroyDebugSessionEmitter.fire(a)}remove(a){this._sessions.delete(a);const{currentSession:b}=this;b&&b.id===a&&this.updateCurrentSession(void 0),setTimeout(()=>{this._extraMap.delete(a)})}};t.DebugSessionManager=v,n.__decorate([(0,r.Autowired)(l.LabelService),n.__metadata("design:type",l.LabelService)],v.prototype,"labelProvider",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],v.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(u.DebugSessionContributionRegistry),n.__metadata("design:type",Object)],v.prototype,"sessionContributionRegistry",void 0),n.__decorate([(0,r.Autowired)(s.IDebugServer),n.__metadata("design:type",Object)],v.prototype,"debug",void 0),n.__decorate([(0,r.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],v.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(E.IMessageService),n.__metadata("design:type",Object)],v.prototype,"messageService",void 0),n.__decorate([(0,r.Autowired)(_.IVariableResolverService),n.__metadata("design:type",Object)],v.prototype,"variableResolver",void 0),n.__decorate([(0,r.Autowired)(c.BreakpointManager),n.__metadata("design:type",c.BreakpointManager)],v.prototype,"breakpoints",void 0),n.__decorate([(0,r.Autowired)(s.IDebugModelManager),n.__metadata("design:type",Object)],v.prototype,"modelManager",void 0),n.__decorate([(0,r.Autowired)(p.ITaskService),n.__metadata("design:type",Object)],v.prototype,"taskService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],v.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(g.IDebugProgress),n.__metadata("design:type",Object)],v.prototype,"debugProgressService",void 0),n.__decorate([(0,r.Autowired)(h.DebugContextKey),n.__metadata("design:type",h.DebugContextKey)],v.prototype,"debugContextKey",void 0),n.__decorate([(0,r.Autowired)(o.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),t.DebugSessionManager=v=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],v)},29539:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSession=void 0;const r=e(85608).__importDefault(e(12784)),o=e(41869),l=e(43718),m=e(64582),E=e(32385),p=e(99797),_=e(88776),s=e(7885);class g{fireDidChange(){this.onDidChangeEmitter.fire(void 0),this.onStateChange()}get capabilities(){return this._capabilities}get supportsThreadIdCorrespond(){return!!this.capabilities.supportsThreadIdCorrespond}constructor(h,u,d,v,f,a,b,y,S,A,T){this.id=h,this.options=u,this.connection=d,this.terminalService=v,this.workbenchEditorService=f,this.breakpointManager=a,this.modelManager=b,this.labelProvider=y,this.messages=S,this.fileSystem=A,this.sessionManager=T,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this._onDidChangeCallStack=new o.Emitter,this.onDidChangeCallStack=this._onDidChangeCallStack.event,this._onVariableChange=new o.Emitter,this.onVariableChange=this._onVariableChange.event,this._onCurrentThreadChange=new o.Emitter,this.onCurrentThreadChange=this._onCurrentThreadChange.event,this._onDidStop=new o.Emitter,this.onDidStop=this._onDidStop.event,this._onDidContinued=new o.Emitter,this.onDidContinued=this._onDidContinued.event,this._onDidThread=new o.Emitter,this.onDidThread=this._onDidThread.event,this._onRequest=new o.Emitter,this.onRequest=this._onRequest.event,this._onDidExitAdapter=new o.Emitter,this.onDidExitAdapter=this._onDidExitAdapter.event,this._onDidProgressStart=new o.Emitter,this.onDidProgressStart=this._onDidProgressStart.event,this._onDidProgressUpdate=new o.Emitter,this.onDidProgressUpdate=this._onDidProgressUpdate.event,this._onDidProgressEnd=new o.Emitter,this.onDidProgressEnd=this._onDidProgressEnd.event,this._onDidInvalidated=new o.Emitter,this.onDidInvalidated=this._onDidInvalidated.event,this._onDidChangeState=new o.Emitter,this.onDidChangeState=this._onDidChangeState.event,this._onDidInvalidMemory=new o.Emitter,this.onDidInvalidateMemory=this._onDidInvalidMemory.event,this.toDispose=new o.DisposableCollection,this._capabilities={},this.updateDeffered=null,this.exitDeferred=new o.Deferred,this.cancellationMap=new Map,this.toDisposeOnCurrentThread=new o.DisposableCollection,this.initialized=!1,this.id2Breakpoint=new Map,this.settingBreakpoints=null,this._multipleThreadPaused=new Map,this.sources=new Map,this._threads=new Map,this.scheduleUpdateThreads=(0,r.default)(()=>this.updateThreads(void 0),100),this.pendingThreads=Promise.resolve(),this.terminated=!1,this.connection.onRequest("runInTerminal",async w=>await this.runInTerminal(w)),this.toDispose.pushAll([this.onDidChangeEmitter,this.connection,this.on("initialized",()=>{this.configure()}),this.on("breakpoint",({body:w})=>this.onUpdateBreakpoint(w)),this.on("continued",async w=>{const{body:{allThreadsContinued:D,threadId:I}}=w;if(this.handleCancellation(I),this.supportsThreadIdCorrespond){I?this._multipleThreadPaused.delete(I):D!==!1&&this._multipleThreadPaused.clear(),await this.updateCurrentThread(),this._onDidContinued.fire(w);return}if(D!==!1){this.clearThreads(),this._onDidContinued.fire(w);return}(0,l.isDefined)(I)&&this.clearThread(I),this.onStateChange(),this._onDidContinued.fire(w)}),this.on("stopped",async w=>{const{body:D}=w;this.stoppedDetails=D;const{threadId:I}=D,O=this.sessionManager.reportTime(m.DEBUG_REPORT_NAME.DEBUG_STOPPED,{sessionId:this.id,threadId:I});if(this.supportsThreadIdCorrespond===!0){if(await this.collectPausedThread(D),D.threadId&&this._multipleThreadPaused.has(D.threadId)){const R=this._multipleThreadPaused.get(D.threadId);await this.updateCurrentThread(R),await this.updateCurrentThreadFramesOnFocus()}}else this.updateDeffered=new o.Deferred,await this.updateThreads(D),await this.updateCurrentThreadFramesOnFocus(),this.updateDeffered.resolve();O("stopped");const P=this.sessionManager.getExtra(this.id,I);I&&P&&P.action&&(P.action=void 0,this.sessionManager.setExtra(this.id,`${I??""}`,P)),this.onStateChange(),this._onDidStop.fire(w)}),this.on("thread",w=>{const{body:{reason:D,threadId:I}}=w;if(this.supportsThreadIdCorrespond){this.state===m.DebugState.Stopped&&this._onDidThread.fire(w);return}D==="started"?this.scheduleUpdateThreads():D==="exited"&&this.clearThread(I),this._onDidThread.fire(w)}),this.on("terminated",()=>{this.terminated=!0}),this.on("exited",w=>{this.exitDeferred.resolve(w)}),this.on("progressStart",w=>{this._onDidProgressStart.fire(w)}),this.on("progressUpdate",w=>{this._onDidProgressUpdate.fire(w)}),this.on("progressEnd",w=>{this._onDidProgressEnd.fire(w)}),this.on("memory",w=>{this._onDidInvalidMemory.fire(w)}),this.on("invalidated",async w=>{this._onDidInvalidated.fire(w),w.body.areas&&w.body.areas.length===1&&(w.body.areas[0]==="variables"||w.body.areas[0]==="watch")||(this.cancelAllRequests(),this.clearThreads(),await this.updateThreads(this.stoppedDetails)),this.fireDidChange()}),this.on("capabilities",w=>this.updateCapabilities(w.body.capabilities)),this.breakpointManager.onDidChangeBreakpoints(w=>this.runtimeUpdateBreakpoint(w)),this.breakpointManager.onDidChangeExceptionsBreakpoints(w=>{this.breakpointManager.breakpointsEnabled&&this.setExceptionBreakpoints(w)}),l.Disposable.create(()=>{this.breakpointManager.clearAllStatus(this.id)})])}getMemory(h){return new E.MemoryRegion(h,this)}get configuration(){return this.options.configuration}get parentSession(){return this.options.parentSession}get lifecycleManagedByParent(){return this.options.lifecycleManagedByParent}get compact(){return!!this.options.compact}async start(){await this.workbenchEditorService.saveAll(),await this.initialize(),await this.launchOrAttach()}async runInTerminal({arguments:{title:h,cwd:u,args:d,env:v}}){return this.doRunInTerminal({name:h,cwd:u,env:v,args:d})}async doRunInTerminal(h){var u;const d=this.terminalService.terminals.find(b=>b.name===h.name&&b.isActive);let v;const f=await this.terminalService.getDefaultShellPath(),a=(0,m.prepareCommand)(f,h.args,!1,(u=h.cwd)===null||u===void 0?void 0:u.toString(),h.env);if(d)a&&this.terminalService.sendText(d.id,a),v=await this.terminalService.getProcessId(d.id);else{const b=await this.terminalService.createTerminal(h);b.show(),a&&(this.terminalService.sendText(b.id,a),v=await this.terminalService.getProcessId(b.id))}return{processId:v}}async initialize(){const h=await this.connection.sendRequest("initialize",{clientID:"OpenSumi",clientName:"OpenSumi IDE",adapterID:this.configuration.type,locale:(0,l.getLanguageId)(),linesStartAt1:!0,columnsStartAt1:!0,pathFormat:"path",supportsVariableType:!1,supportsVariablePaging:!1,supportsRunInTerminalRequest:!0,supportsProgressReporting:!0,supportsInvalidatedEvent:!0,supportsMemoryEvent:!0,supportsMemoryReferences:!0},this.configuration);this.updateCapabilities(h.body||{}),this.onStateChange()}async launchOrAttach(){var h;if(this.parentSession&&this.parentSession.state===m.DebugState.Inactive)throw(0,o.canceled)();try{this.configuration.request==="attach"?await this.sendRequest("attach",this.configuration):await this.sendRequest("launch",this.configuration)}catch(u){throw this.fireExited(u),this.messages.error(u.message||((h=u.body)===null||h===void 0?void 0:h.error.format)||(0,o.localize)("debug.console.errorMessage")),u&&u.message}}async configure(){await this.initBreakpoints(),this.breakpointManager.setExceptionBreakpoints(this.capabilities.exceptionBreakpointFilters||[]),this.initialized=!0,this.capabilities.supportsConfigurationDoneRequest&&this.sendRequest("configurationDone",{}),this.supportsThreadIdCorrespond||await this.updateThreads(void 0)}async setExceptionBreakpoints(h){return this.sendRequest("setExceptionBreakpoints",h)}onStateChange(){const h=this.state;this.previousState!==h&&(this.previousState=h,this._onDidChangeState.fire(h))}async onUpdateBreakpoint(h){let u;this.settingBreakpoints&&await this.settingBreakpoints.promise;try{const d=h.breakpoint;switch(h.reason){case"new":if(d.source&&typeof d.line=="number"&&d.id&&!this.id2Breakpoint.has(d.id)){const v=_.DebugSource.toUri(d.source),f=p.DebugBreakpoint.create(v,{line:d.line,column:d.column});f.status.set(this.id,d),this.addBreakpoint(f)}break;case"removed":d.id&&(u=this.id2Breakpoint.get(d.id),u&&this.delBreakpoint(u));break;case"changed":d.id&&(u=this.id2Breakpoint.get(d.id),u&&(u.status.set(this.id,d),this.breakpointManager.updateBreakpoint(u,!0)));break;default:break}}finally{}}async setBreakpoints(h){const u=[];for(const d of h){const v=await this.toSource(d),f=this.breakpointManager.getBreakpoints(d).filter(a=>this.breakpointManager.breakpointsEnabled&&a.enabled);u.push(this.sendRequest("setBreakpoints",{source:v.raw,sourceModified:!1,lines:f.map(a=>a.raw.line),breakpoints:f.map(a=>a.raw)}).then(a=>(a.body.breakpoints.forEach((b,y)=>{var S,A;b.id&&this.id2Breakpoint.set(b.id,f[y]);const T=f[y];T.raw.line=(S=b.line)!==null&&S!==void 0?S:T.raw.line,T.raw.column=(A=b.column)!==null&&A!==void 0?A:T.raw.column,T.status.set(this.id,b)}),this.breakpointManager.updateBreakpoints(f,!0),this.breakpointManager.resolveBpDeffered(),Promise.resolve())).catch(a=>{if(!(a instanceof Error)){const y=a.message?`${a.message}`:"Breakpoint not valid for current debug session";f.forEach(S=>{S.status.set(this.id,{verified:!1,message:y}),this.breakpointManager.updateBreakpoint(S,!0)})}}))}return await Promise.all(u)}delBreakpoint(h){return this.breakpointManager.delBreakpoint(h)}async addBreakpoint(h,u){return u&&this.breakpointManager.setBpDeffered(),this.breakpointManager.addBreakpoint(h),this.breakpointManager.promiseBpDeffered()}async runtimeUpdateBreakpoint(h){const{affected:u,statusUpdated:d}=h;if(!d)return await this.setBreakpoints(u)}async initBreakpoints(){this.settingBreakpoints=new o.Deferred,this.id2Breakpoint.clear(),this.configuration.noDebug||await this.setBreakpoints(this.breakpointManager.affected.map(h=>o.URI.parse(h))),this.settingBreakpoints.resolve(),this.settingBreakpoints=null}get currentThread(){return this._currentThread}set currentThread(h){this.toDisposeOnCurrentThread.dispose(),this._currentThread=h,h&&this.toDisposeOnCurrentThread.push(h.onDidChanged(()=>this.fireDidChange()))}get multipleThreadPaused(){return this._multipleThreadPaused}hasInMultipleThreadPaused(h){return this._multipleThreadPaused.has(h)}clearThreads(){var h;const u=this.sessionManager.reportTime(m.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:(h=this.currentThread)===null||h===void 0?void 0:h.id,threadAmount:this.threadCount});this._threads.forEach(d=>{d.clear()}),this._onDidChangeCallStack.fire(),this.collocationThread(),u("clearThreads")}clearThread(h){const u=this.sessionManager.reportTime(m.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:h,threadAmount:this.threadCount}),d=this._threads.get(h);d&&(d.clear(),this._onDidChangeCallStack.fire()),this.collocationThread(),u("clearThread")}get state(){if(this.connection.disposed)return m.DebugState.Inactive;if(!this.initialized)return m.DebugState.Initializing;const h=this.currentThread;return h?h.stopped?m.DebugState.Stopped:m.DebugState.Running:this.supportsThreadIdCorrespond?m.DebugState.Running:this.stoppedThreads.next().value?m.DebugState.Stopped:m.DebugState.Running}get currentFrame(){return this.currentThread&&this.currentThread.currentFrame}async getScopes(h){const{currentFrame:u}=this;return u?u.getScopes(h):[]}get label(){return m.IDebugSessionDTO.is(this.options)&&this.options.id?this.configuration.name+" ("+(this.options.id+1)+")":this.configuration.name}get visible(){return this.state>m.DebugState.Inactive}getSource(h){const u=_.DebugSource.toUri(h).toString(),d=this.sources.get(u)||new _.DebugSource(this,this.labelProvider,this.modelManager,this.workbenchEditorService,this.fileSystem);return d.update({raw:h}),this.sources.set(u,d),d}getSourceForUri(h){return this.sources.get(h.toString())}async toSource(h){const u=this.getSourceForUri(h);return u||this.getSource(await this.toDebugSource(h))}async toDebugSource(h){if(h.scheme===_.DebugSource.SCHEME)return{name:h.path.toString(),sourceReference:Number(h.query)};const u=h.displayName;let d=h.toString();return h.scheme===l.Schemes.file&&(d=await this.fileSystem.getFsPath(d)),{name:u,path:d,adapterData:void 0,sourceReference:void 0}}get threads(){return Array.from(this._threads.values())}get threadCount(){return this._threads.size}*getThreads(h){for(const u of this.threads)h(u)&&(yield u)}get runningThreads(){return this.getThreads(h=>!h.stopped)}get stoppedThreads(){return this.getThreads(h=>h.stopped)}async rawFetchThreads(h){const u=typeof h>"u"?null:{threadId:h},d=await this.sendRequest("threads",u);return d&&d.body&&d.body.threads&&Array.isArray(d.body.threads)?Promise.resolve(d.body.threads):Promise.resolve([])}async fetchThreads(){const h=await this.rawFetchThreads(),u=this._threads,d=[];for(const v of h){const f=v.id,a=u.get(f)||new s.DebugThread(this);d.push(a),a.update({raw:v})}return Promise.resolve(d)}updateThreads(h){return this.pendingThreads=this.pendingThreads.then(async()=>{try{const u=await this.rawFetchThreads();this.doUpdateThreads(u,h)}catch{}})}doUpdateThreads(h,u){const d=this.sessionManager.reportTime(m.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:u?.threadId,threadAmount:h.length}),v=[];h.forEach(f=>{if(v.push(f.id),this._threads.has(f.id)){if(f.name){const a=this._threads.get(f.id);a&&(a.raw.name=f.name)}}else{const a=new s.DebugThread(this),b={raw:f};a.update(b),this._threads.set(f.id,a)}}),this._threads.forEach(f=>{var a;const{raw:{id:b}}=f;v.indexOf(b)===-1&&this._threads.delete(b),u&&(u.allThreadsStopped||u.threadId===b)&&((a=this._threads.get(b))===null||a===void 0||a.update({stoppedDetails:u}))}),this.collocationThread(u),d("doUpdateThreads")}collocationThread(h){var u;const{currentThread:d}=this;let v=d&&d.raw.id;h&&!h.preserveFocusHint&&h.threadId&&(v=h.threadId),this.currentThread=typeof v=="number"&&this._threads.get(v)||this._threads.values().next().value,((u=this.currentThread)===null||u===void 0?void 0:u.raw.id)!==v&&this.fireDidChange()}async updateCurrentThread(h){h?(this.currentThread=h,this._onCurrentThreadChange.fire(this.currentThread)):(this.currentThread=void 0,this._onCurrentThreadChange.fire(void 0))}async collectPausedThread(h){const u=await this.rawFetchThreads(h?.threadId);if(u.length===0)return new Map;const d=h.threadId&&this._multipleThreadPaused.has(h.threadId)?this._multipleThreadPaused.get(h.threadId):new s.DebugThread(this),v={raw:u[0]};return h&&(h.allThreadsStopped||h.threadId===u[0].id)&&(v.stoppedDetails=h),d&&(d.update(v),await this.rawFetchFrames(d),this._multipleThreadPaused.set(d.raw.id,d)),this._multipleThreadPaused}async updateCurrentThreadFramesOnFocus(){await this.rawFetchFrames(this.currentThread),this._onDidChangeCallStack.fire();const h=this.workbenchEditorService.currentEditor,u=d=>{this.stoppedDetails&&!this.stoppedDetails.preserveFocusHint&&(this.currentThread.currentFrame=d)};if(this.currentThread&&!this.currentFrame){const d=this.currentThread.frames.filter(v=>v&&v.source&&v.source.raw.presentationHint!=="deemphasize");if(d.length===0)return;if(h){const v=h.monacoEditor.getModel();if(v){const f=o.URI.parse(v.uri.toString()),a=d.filter(b=>b.source.uri.toString()===f.toString());a.length>0?u(a[0]):u(d[0])}}else u(d[0])}}async rawFetchFrames(h){!h||h.frameCount||(this.capabilities.supportsDelayedStackTraceLoading?(await h.rawFetchFrames(1),await h.rawFetchFrames(19)):await h.rawFetchFrames())}async terminate(h){if(this.initialized=!0,this.cancelAllRequests(),this.lifecycleManagedByParent&&this.parentSession){await this.parentSession.terminate(h);return}!this.terminated&&this.capabilities.supportsTerminateRequest&&this.configuration.request==="launch"?(this.terminated=!0,this.sendRequest("terminate",{restart:h}),await this.exited(1e3)||await this.disconnect(h)):await this.disconnect(h)}async disconnect(h){try{this.lifecycleManagedByParent&&this.parentSession?this.parentSession.disconnect(h):this.sendRequest("disconnect",{restart:h})}catch(d){this.fireExited(d);return}finally{this._onDidExitAdapter.fire(),this.onStateChange()}const u=500;await this.exited(u)||this.fireExited(new Error(`timeout after ${u} ms`))}updateCapabilities(h){Object.assign(this._capabilities,h)}fireExited(h){this.connection.fire("exited",{reason:h})}exited(h){return Promise.race([this.exitDeferred.promise.then(()=>!0,()=>!1),new Promise(u=>{setTimeout(u,h,!1)})])}async restart(h){return this.cancelAllRequests(),this.capabilities.supportsRestartRequest?(this.terminated=!1,this.lifecycleManagedByParent&&this.parentSession?await this.parentSession.restart({arguments:this.parentSession.configuration}):await this.sendRequest("restart",h),!0):!1}dispose(){this.toDispose.dispose()}async evaluate(h,u){var d;this.updateDeffered&&await((d=this.updateDeffered)===null||d===void 0?void 0:d.promise);const v=this.currentFrame&&this.currentFrame.raw.id;return(await this.sendRequest("evaluate",{expression:h,frameId:v,context:u})).body}async variables(h,u="named"){return(await this.sendRequest("variables",{variablesReference:h,filter:u})).body}async goto(h){if(this.capabilities.supportsGotoTargetsRequest)return await this.sendRequest("goto",h)}async exceptionInfo(h){return this.capabilities.supportsExceptionInfoRequest?this.sendRequest("exceptionInfo",h):Promise.reject(new Error("exceptionInfo not supported"))}async cancel(h){return this.sendRequest("cancel",{progressId:h})}async setVariableValue(h){if(this.capabilities.supportsSetVariable){const u=await this.sendRequest("setVariable",h);return this._onVariableChange.fire(),u}}async breakpointLocations(h,u){var d;const v=await this.toSource(h),a=(((d=(await this.sendRequest("breakpointLocations",{source:v.raw,line:u})).body)===null||d===void 0?void 0:d.breakpoints)||[]).map(b=>({lineNumber:b.line,column:b.column||1}));return Object.values(a.reduce((b,y)=>({...b,[`${y.lineNumber}:${y.column}`]:y}),{}))}async sendRequest(h,u,d){var v,f,a;if(!this._capabilities.supportsTerminateRequest&&h==="terminate"||!this._capabilities.supportsCompletionsRequest&&h==="completions"||!this._capabilities.supportsTerminateThreadsRequest&&h==="terminateThreads")throw new Error(`debug: ${h} not supported`);let b;["continue","next","stepIn","stepOut","threads"].some(y=>h===y)&&this.handleCancellation((v=this.currentThread)===null||v===void 0?void 0:v.raw.id),["stackTrace","scopes","variables","completions","threads"].some(y=>h===y)&&(b=!((f=this.currentThread)===null||f===void 0)&&f.raw.id?this.getNewCancellationToken((a=this.currentThread)===null||a===void 0?void 0:a.raw.id,d):void 0);try{return await this.connection.sendRequest(h,u,this.configuration,b)}finally{this._onRequest.fire(h)}}async takeCommand(h){return new Promise(u=>{const d=this.onRequest(v=>{v===h&&(d.dispose(),u())})})}sendCustomRequest(h,u){return this.connection.sendCustomRequest(h,u)}on(h,u){return this.connection.on(h,u)}get onDidCustomEvent(){return this.connection.onDidCustomEvent}hasSeparateRepl(){return!this.parentSession||this.options.repl!=="mergeWithParent"}reportTime(h,u){return this.sessionManager.reportTime(h,u)}getNewCancellationToken(h,u){const d=new l.CancellationTokenSource(u),v=this.cancellationMap.get(h)||[];return v.push(d),this.cancellationMap.set(h,v),d.token}cancelAllRequests(){this.cancellationMap.forEach(h=>h.forEach(u=>u.cancel())),this.cancellationMap.clear()}handleCancellation(h){if(h){const u=this.cancellationMap.get(h);this.cancellationMap.delete(h),u&&u.forEach(d=>d.cancel())}else this.cancelAllRequests()}getDebugProtocolBreakpoint(h){const u=this.breakpointManager.getBreakpoints().find(d=>d.id===h);if(u){const d=u.status.get(this.id);return{id:d?.id,verified:!!d?.verified,message:d?.message,source:d?.source,line:d?.line,column:d?.column,endLine:d?.endLine,endColumn:d?.endColumn,instructionReference:d?.instructionReference,offset:d?.offset}}}currentEditor(){var h;return(h=this.getModel())===null||h===void 0?void 0:h.getEditor()}getModel(){return this.modelManager.model}async readMemory(h,u,d){return this.capabilities.supportsReadMemoryRequest?await this.sendRequest("readMemory",{count:d,memoryReference:h,offset:u}):Promise.resolve(void 0)}async writeMemory(h,u,d,v){return this.capabilities.supportsWriteMemoryRequest?await this.sendRequest("writeMemory",{memoryReference:h,offset:u,allowPartial:v,data:d}):Promise.resolve(void 0)}}t.DebugSession=g},5905:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSnippet=t.CharWidthReader=t.DEFAULT_WORD_REGEXP=t.USUAL_WORD_SEPARATORS=void 0,t.isExtensionHostDebugging=l,t.matchAll=m,t.isRemoteAttach=E;const n=e(41869),r=e(57711),{equalsIgnoreCase:o}=n.strings;function l(g){return g.type&&o(g.type==="vslsShare"?g.adapterProxy.configuration.type:g.type,"extensionhost")}function m(g,c){let h;const u=[];for(;(h=c.exec(g))!==null;)u.push(h);return u}function E(g){if(g.request==="attach"){const c={node:"address",java:"hostName",go:"host",cppdbg:"miDebuggerServerAddress",python:"host"},{type:h}=g,u=g[c[h]];return u?!["localhost","0.0.0.0","127.0.0.1","::1"].includes(u):!0}return!1}t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function p(g=""){let c="(-?\\d*\\.\\d\\w*)|([^";for(const h of t.USUAL_WORD_SEPARATORS)g.indexOf(h)>=0||(c+="\\"+h);return c+="\\s]+)",new RegExp(c,"g")}t.DEFAULT_WORD_REGEXP=p();class _{static getInstance(){return _._INSTANCE||(_._INSTANCE=new _),_._INSTANCE}constructor(){this._cache=new Map,this._canvas=document.createElement("canvas")}getCharWidth(c,h){const u=c+h;if(this._cache.has(u))return this._cache.get(u);const d=this._canvas.getContext("2d");d.font=h;const f=d.measureText(c).width;return this._cache.set(u,f),f}}t.CharWidthReader=_,_._INSTANCE=null;const s=g=>{const c=new RegExp(/^\^\"(.*)\"/gm),h=new r.SnippetParser;return new RegExp(/\${\d+:(.*)/).test(g)||c.test(g)?h.parse(g).toString().replace(c,"$1"):g};t.parseSnippet=s},17475:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugBreakpointWidget=t.TopStackType=void 0;const r=e(85608),o=e(76003),l=e(41869),m=e(43718),E=r.__importStar(e(20868)),p=e(64582),_=e(97319),s=e(4983),g=e(27562);var c;(function(u){u[u.exception=0]="exception",u[u.debugger=1]="debugger"})(c||(t.TopStackType=c={}));let h=n=class extends m.Disposable{constructor(){super(),this.breakpointWidgetInputFocus=s.CONTEXT_BREAKPOINT_INPUT_FOCUSED.bind(this.contextKeyService)}get position(){return this._position}get values(){var d;return(d=this.zone)===null||d===void 0?void 0:d.values}get breakpointType(){var d;return(d=this.zone)===null||d===void 0?void 0:d.breakpointType}show(d,v,f="condition"){this.dispose(),this._position=d,this.addDispose(this.zone=this.injector.get(g.DebugBreakpointZoneWidget,[this.editor,{...v},f])),this.addDispose(this.zone.onDidChangeBreakpoint(({context:a,value:b})=>{v&&(v[a]=b)})),this.addDispose(this.zone.onFocus(()=>{this.breakpointWidgetInputFocus.set(!0)})),this.addDispose(this.zone.onBlur(()=>{this.breakpointWidgetInputFocus.set(!1)})),this.addDispose(this.zone.onDispose(()=>{this._position=void 0,this.breakpointWidgetInputFocus.set(!1)})),this.zone.show(E.positionToRange(d),n.LINE_HEIGHT_NUMBER)}hide(){var d;(d=this.zone)===null||d===void 0||d.hide()}};t.DebugBreakpointWidget=h,h.LINE_HEIGHT_NUMBER=2,r.__decorate([(0,o.Autowired)(p.DebugEditor),r.__metadata("design:type",Object)],h.prototype,"editor",void 0),r.__decorate([(0,o.Autowired)(_.DebugBreakpointsService),r.__metadata("design:type",_.DebugBreakpointsService)],h.prototype,"debugBreakpointsService",void 0),r.__decorate([(0,o.Autowired)(l.IContextKeyService),r.__metadata("design:type",Object)],h.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],h.prototype,"injector",void 0),t.DebugBreakpointWidget=h=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],h)},27562:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugBreakpointZoneWidget=void 0;const r=e(85608),o=r.__importDefault(e(14041)),l=r.__importDefault(e(25873)),m=e(76003),E=e(97267),p=e(41869),_=e(43718),s=e(20303),g=e(52416),c=e(31324),h=e(64582),u=e(97319),d=r.__importDefault(e(55797));let v=n=class extends s.ZoneWidget{_fillContainer(a){}get values(){return{...this.contexts,[this.context]:this.input&&this.input.monacoEditor.getValue()||void 0}}get breakpointType(){return this.context}constructor(a,b={},y="condition"){super(a),this.editor=a,this.contexts=b,this.context=y,this._onDidChangeBreakpoint=new _.Emitter,this.onDidChangeBreakpoint=this._onDidChangeBreakpoint.event,this._onFocus=new _.Emitter,this.onFocus=this._onFocus.event,this._onBlur=new _.Emitter,this.onBlur=this._onBlur.event,this.inputFocusHandler=()=>{this._onFocus.fire()},this.inputBlurHandler=()=>{this._onBlur.fire()},this.selectContextHandler=S=>{this.input&&(this.contexts[this.context]=this.input.monacoEditor.getValue()||void 0),this.context=S,this.setInputMode(),this.render()},this._wrapper=document.createElement("div"),this._selection=document.createElement("div"),this._input=document.createElement("div"),this._container.appendChild(this._wrapper),this._wrapper.appendChild(this._selection),this._wrapper.appendChild(this._input),l.default.createRoot(this._input).render(o.default.createElement(o.default.Fragment,null))}hide(){this.input&&(this.input.dispose(),this.input=void 0),super.dispose()}show(a,b){super.show(a,b),this.debugBreakpointsService.createBreakpointInput(this._input).then(y=>{this.input=y;const{monacoEditor:S}=this.input;this.setInputMode(),this.addDispose(S.onDidBlurEditorWidget(()=>{this.inputBlurHandler()})),this.addDispose(S.onDidFocusEditorWidget(()=>{this.inputFocusHandler()})),this.addDispose(S.onDidChangeModelContent(A=>{if(!this.input)return;S.getValue().length===0?this.ensureRenderPlaceholder():this.clearPlaceholder();const w=S.getModel().getLineCount();this._relayout(w+1)})),this.syncPreContent()})}createDecorations(){this.input&&this.input.monacoEditor.getValue().length===0&&this.input.monacoEditor.deltaDecorations([],[{range:{startLineNumber:1,endLineNumber:0,startColumn:0,endColumn:1},options:{description:"debug-breakpoint-zone-widget",afterContentClassName:d.default.input_placeholder}}])}renderOption(a,b){return o.default.createElement(E.Option,{value:a},b)}setInputMode(){var a,b;const y=(a=this.editor.getModel())===null||a===void 0?void 0:a.getLanguageId(),S=(b=this.input)===null||b===void 0?void 0:b.monacoEditor.getModel();S&&y&&S.setLanguage(this.context==="logMessage"?"plaintext":y)}renderPlaceholder(){if(!this.input)return;this.clearPlaceholder();const a=`'${this.placeholder}' !important`;this.cssRenderDisposable=this.cssManager.addClass(n.INPUT_PLACEHOLDER_AFTER,{content:a})}ensureRenderPlaceholder(){this.input&&(this.createDecorations(),this.renderPlaceholder())}syncPreContent(){if(this.input){this.input.focus();const a=this.contexts[this.context]||"";this.input.monacoEditor.setValue(a)}}clearPlaceholder(){this.cssRenderDisposable&&(this.cssRenderDisposable.dispose(),this.cssRenderDisposable=void 0)}applyClass(){if(this._wrapper.className=d.default.debug_breakpoint_wrapper,this._selection.className=d.default.debug_breakpoint_selected,this._input.className=d.default.debug_breakpoint_input,!this.editor.getModel())return;const b=this.editor.getOption(c.EditorOption.lineHeight),y=this.editor.getOption(c.EditorOption.fontSize),S=b-y;this._input.style.marginTop=S+"px"}applyStyle(){this.syncPreContent(),l.default.createRoot(this._selection).render(o.default.createElement(E.Select,{value:this.context,selectedRenderer:()=>o.default.createElement("span",{className:"kt-select-option"},this.getContextToLocalize(this.context)),onChange:this.selectContextHandler},this.renderOption("condition",this.getContextToLocalize("condition")),this.renderOption("hitCondition",this.getContextToLocalize("hitCondition")),this.renderOption("logMessage",this.getContextToLocalize("logMessage"))))}getContextToLocalize(a){switch(a){case"logMessage":return(0,_.localize)("debug.expression.logMessage");case"hitCondition":return(0,_.localize)("debug.expression.hitCondition");default:return(0,_.localize)("debug.expression.condition")}}get placeholder(){switch(this.context){case"logMessage":return(0,_.localize)("debug.expression.log.placeholder");case"hitCondition":return(0,_.localize)("debug.expression.hit.placeholder");default:return(0,_.localize)("debug.expression.condition.placeholder")}}};t.DebugBreakpointZoneWidget=v,v.INPUT_PLACEHOLDER_AFTER=d.default.input_placeholder+"::after",r.__decorate([(0,m.Autowired)(u.DebugBreakpointsService),r.__metadata("design:type",u.DebugBreakpointsService)],v.prototype,"debugBreakpointsService",void 0),r.__decorate([(0,m.Autowired)(p.PreferenceService),r.__metadata("design:type",Object)],v.prototype,"preferenceService",void 0),r.__decorate([(0,m.Autowired)(g.ICSSStyleService),r.__metadata("design:type",Object)],v.prototype,"cssManager",void 0),t.DebugBreakpointZoneWidget=v=n=r.__decorate([(0,m.Injectable)({multiple:!0}),r.__metadata("design:paramtypes",[Object,Object,String])],v)},52943:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditorContribution=void 0;const r=e(85608),o=e(76003),l=e(41869),m=e(54414),E=e(51553),p=r.__importStar(e(20868)),_=e(79865),s=e(44781),g=e(38390),c=e(17280),h=e(84303),u=e(38029),d=e(16170),v=e(64582),f=e(5905),a="inlinevaluedecoration",b=100,y=150,S=500,{flatten:A}=l.arrays;class T{constructor(R,M){this.column=R,this.text=M}}function w(P,R,M=1073741824){return R.length>y&&(R=R.substr(0,y)+"..."),{range:{startLineNumber:P,endLineNumber:P,startColumn:M,endColumn:M},renderOptions:{after:{contentText:R,backgroundColor:"rgba(255, 200, 0, 0.2)",margin:"10px"},dark:{after:{color:"rgba(255, 255, 255, 0.5)"}},light:{after:{color:"rgba(0, 0, 0, 0.5)"}}}}}function D(P,R,M,k){const B=new Map;for(const j of P)if(B.set(j.name,j.value),B.size>=b)break;const x=new Map;B.forEach((j,K)=>{const U=k.get(K);if(U)for(const Q of U)R.containsPosition(new l.Position(Q,0))&&(x.has(Q)||x.set(Q,[]),x.get(Q).indexOf(K)===-1&&x.get(Q).push(K))});const N=[];return x.forEach((j,K)=>{const U=j.sort((Q,z)=>{const G=M.getLineContent(K);return G.indexOf(Q)-G.indexOf(z)}).map(Q=>`${Q} = ${B.get(Q)}`).join(", ");N.push(w(K,U))}),N}function I(P){const R=new Map;if(!P)return R;for(let M=1,k=P.getLineCount();M<=k;++M){const B=P.getLineContent(M);if(B.length>S)continue;P.tokenization.forceTokenization(M);const x=P.tokenization.getLineTokens(M);for(let N=0,j=x.getCount();N<j;N++)if(x.getStandardTokenType(N)===g.StandardTokenType.Other){f.DEFAULT_WORD_REGEXP.lastIndex=0;const U=x.getStartOffset(N),Q=x.getEndOffset(N),z=B.substring(U,Q),G=f.DEFAULT_WORD_REGEXP.exec(z);if(G){const Y=G[0];R.has(Y)||R.set(Y,[]),R.get(Y).push(M)}}}return R}let O=n=class{constructor(R){this.editor=R,this.disposer=new l.Disposable,this.editorDisposer=new l.Disposable}contribute(R){return this.disposer.addDispose(this.debugSessionManager.onDidChangeActiveDebugSession(()=>{const M=this.debugSessionManager.currentSession;M&&(this.editorDisposer.addDispose(M.onDidChange(async()=>{var k,B;this.setHoverEnabled(R,M.state===v.DebugState.Running);const x=(k=M.currentThread)===null||k===void 0?void 0:k.currentFrame;x&&R.currentUri&&!((B=x.source)===null||B===void 0)&&B.uri.isEqual(R.currentUri)&&await this.toggleExceptionWidget()})),this.editorDisposer.addDispose(M.onDidExitAdapter(()=>{this.setHoverEnabled(R,!0)})),this.editorDisposer.addDispose(this.editorService.onActiveResourceChange(k=>{var B;k?.uri.toString()===((B=M.getModel())===null||B===void 0?void 0:B.uri.toString())?this.setHoverEnabled(R):this.setHoverEnabled(R,!0)})),this.disposer.addDispose([l.Event.any(M.onDidChangeCallStack,M.onDidStop)(async()=>{await this.directRunUpdateInlineValueDecorations(R)}),M.onDidExitAdapter(()=>{this.removeInlineValuesScheduler(R).schedule(),this.editorDisposer.dispose()})]),this.disposer.addDispose(M.onDidChangeState(k=>{k!==v.DebugState.Stopped&&this.toggleExceptionWidget()})),this.disposer.addDispose(M),this.registerEditorListener(R))})),this.disposer.addDispose(this.editorDisposer),this.toggleExceptionWidget(),this.disposer}registerEditorListener(R){this.editorDisposer.addDispose(R.monacoEditor.onKeyDown(async M=>{var k,B,x,N,j;if(((x=(B=(k=this.debugSessionManager.currentSession)===null||k===void 0?void 0:k.currentFrame)===null||B===void 0?void 0:B.source)===null||x===void 0?void 0:x.uri.toString())===((N=R.currentUri)===null||N===void 0?void 0:N.toString())&&M.keyCode===p.KeyCode.Alt){this.setHoverEnabled(R,!0),(j=this.debugModelManager.model)===null||j===void 0||j.getDebugHoverWidget().hide();const K=R.monacoEditor.onKeyUp(async U=>{var Q;U.keyCode===p.KeyCode.Alt&&(this.setHoverEnabled(R,!1),(Q=this.debugModelManager.model)===null||Q===void 0||Q.getDebugHoverWidget().show(),K.dispose())})}})),this.editorDisposer.addDispose(R.monacoEditor.onDidChangeModelContent(async()=>{n.MEMOIZER.clear(),await this.directRunUpdateInlineValueDecorations(R)})),this.editorDisposer.addDispose(R.monacoEditor.onDidChangeModel(async()=>{this.toggleExceptionWidget(),await this.directRunUpdateInlineValueDecorations(R)}))}registerDecorationType(){this.overrideServicesRegistry.getRegisteredService(l.ServiceNames.CODE_EDITOR_SERVICE).registerDecorationType("inline-value-decoration",a,{})}setHoverEnabled(R,M=!this.debugContextKey.contextInDebugMode.get()){R.monacoEditor.updateOptions({hover:{enabled:M}})}async directRunUpdateInlineValueDecorations(R){var M;const k=(M=this.debugSessionManager.currentSession)===null||M===void 0?void 0:M.currentFrame;k&&(n.MEMOIZER.clear(),await this.updateInlineValueDecorations(k,R))}removeInlineValuesScheduler(R){return new l.RunOnceScheduler(()=>R.monacoEditor.removeDecorationsByType(a),100)}async updateInlineValueDecorations(R,M){var k;if(!M)return;const B="{0} = {1}",x=", ",N=M.monacoEditor.getModel();if(!this.preferenceService.get("debug.inline.values")||!N||!R||N.uri.toString()!==((k=R.source)===null||k===void 0?void 0:k.uri.toString())){this.removeInlineValuesScheduler(M).isScheduled()||this.removeInlineValuesScheduler(M).schedule();return}this.removeInlineValuesScheduler(M).cancel();let j;if(_.languageFeaturesService.inlineValuesProvider.has(N)){const K=async($,H)=>{const X=await R.getMostSpecificScopes(R.range()),J=H?$:$.toLowerCase();for(const re of X){await re.ensureLoaded();const fe=(re.children||[]).find(Ae=>H?Ae.name===J:Ae.name.toLowerCase()===J);if(fe)return fe.value}},U={frameId:R.raw.id,stoppedLocation:(()=>{const $=R.range();return new s.Range($.startLineNumber,$.startColumn+1,$.endLineNumber,$.endColumn+1)})()},Q=new l.CancellationTokenSource().token,z=M.monacoEditor.getVisibleRanges(),G=_.languageFeaturesService.inlineValuesProvider.ordered(N).reverse();j=[];const Y=new Map,Z=A(G.map($=>z.map(H=>Promise.resolve($.provideInlineValues(N,H,U,Q)).then(async X=>{if(X)for(const J of X){let re;switch(J.type){case"text":re=J.text;break;case"variable":{let ce=J.variableName;ce||(ce=N.getLineContent(J.range.startLineNumber).substring(J.range.startColumn-1,J.range.endColumn-1));const fe=await K(ce,J.caseSensitiveLookup);fe&&(re=l.strings.format(B,ce,fe));break}case"expression":{let ce=J.expression;if(ce||(ce=N.getLineContent(J.range.startLineNumber).substring(J.range.startColumn-1,J.range.endColumn-1)),ce){const fe=new d.DebugWatchRoot(R.thread.session),Ae=new d.DebugWatchNode(R.thread.session,ce,fe);await Ae.evaluate(ce),Ae.available&&(re=l.strings.format(B,ce,Ae.description))}break}}if(re){const ce=J.range.startLineNumber;let fe=Y.get(ce);fe||(fe=[],Y.set(ce,fe)),fe.some(Ae=>Ae.text===re)||fe.push(new T(J.range.startColumn,re))}}},X=>{(0,l.onUnexpectedExternalError)(X)}))));await Promise.all(Z),Y.forEach(($,H)=>{if($.length>0){$=$.sort((J,re)=>J.column-re.column);const X=$.map(J=>J.text).join(x);j.push(w(H,X))}})}else{const K=await R.getMostSpecificScopes(R.range());j=(await Promise.all(K.map(async Q=>{await Q.ensureLoaded();const z=Q.children||[],G=R.range(),Y=Q.range();let Z=new s.Range(0,0,G.startLineNumber,G.startColumn);return Y&&(Z=Z.setStartPosition(Y.startLineNumber,Y.startColumn)),D(z,Z,N,I(M?.monacoEditor.getModel()))}))).reduce((Q,z)=>Q.concat(z),[])}M.monacoEditor.setDecorationsByType("inline-value-decoration",a,j)}async toggleExceptionWidget(){var R,M;const k=this.debugSessionManager.currentSession;if(!k){this.closeExceptionWidget();return}const{currentThread:B}=k;if(!B){this.closeExceptionWidget();return}const x=B.frames.find(j=>!!(j&&j.source&&j.source.available&&j.source.presentationHint!=="deemphasize"));if(!x){this.closeExceptionWidget();return}const N=(R=this.editor.currentUri)===null||R===void 0?void 0:R.isEqual((M=x.source)===null||M===void 0?void 0:M.uri);if(this.debugExceptionWidget&&!N)this.closeExceptionWidget();else if(N){const j=await B?.fetchExceptionInfo();j&&this.showExceptionWidget(j,k,x.range().startLineNumber,x.range().startColumn)}}showExceptionWidget(R,M,k,B){this.debugExceptionWidget&&this.debugExceptionWidget.dispose();const x=M?.currentEditor();this.debugExceptionWidget=this.injector.get(h.DebugExceptionWidget,[x,R]),this.debugExceptionWidget.show(p.positionToRange({lineNumber:k,column:B}),10),this.debugExceptionWidget.focus(),x?.revealRangeInCenter({startLineNumber:k,startColumn:B,endLineNumber:k,endColumn:B}),this.debugContextKey.contextExceptionWidgetVisible.set(!0)}closeExceptionWidget(){this.debugExceptionWidget&&(this.debugContextKey.contextExceptionWidgetVisible.set(!1),this.debugExceptionWidget.dispose(),this.debugExceptionWidget=void 0)}};t.DebugEditorContribution=O,O.MEMOIZER=(0,l.createMemoizer)(),r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],O.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(l.IContextKeyService),r.__metadata("design:type",Object)],O.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(v.IDebugModelManager),r.__metadata("design:type",Object)],O.prototype,"debugModelManager",void 0),r.__decorate([(0,o.Autowired)(v.IDebugSessionManager),r.__metadata("design:type",u.DebugSessionManager)],O.prototype,"debugSessionManager",void 0),r.__decorate([(0,o.Autowired)(l.PreferenceService),r.__metadata("design:type",Object)],O.prototype,"preferenceService",void 0),r.__decorate([(0,o.Autowired)(l.MonacoOverrideServiceRegistry),r.__metadata("design:type",l.MonacoOverrideServiceRegistry)],O.prototype,"overrideServicesRegistry",void 0),r.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),r.__metadata("design:type",E.WorkbenchEditorServiceImpl)],O.prototype,"editorService",void 0),r.__decorate([(0,o.Autowired)(c.DebugContextKey),r.__metadata("design:type",c.DebugContextKey)],O.prototype,"debugContextKey",void 0),t.DebugEditorContribution=O=n=r.__decorate([(0,o.Injectable)(),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[Object])],O)},74257:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugExpressionProvider=void 0;const n=e(85608),r=e(76003),o=e(43718),l=n.__importStar(e(20868)),m=e(39266),{coalesce:E}=o.arrays;let p=class{async get(s,g){var c,h;let u,d;if(this.evaluatableExpressionService.hasEvaluatableExpressProvider(s)){const v=new o.CancellationTokenSource,f=this.evaluatableExpressionService.getSupportedEvaluatableExpressionProvider(s),a=new l.Position(g.startLineNumber,g.startColumn),b=f.map(S=>Promise.resolve(S.provideEvaluatableExpression(s,a,v.token)).then(A=>A,()=>{})),y=await Promise.all(b).then(E);y.length>0&&(u=(c=y[0])===null||c===void 0?void 0:c.expression,d=(h=y[0])===null||h===void 0?void 0:h.range,!u&&d&&(u=s.getLineContent(a.lineNumber).substring(d.startColumn-1,d.endColumn-1)))}else{const v=s.getLineContent(g.startLineNumber),{start:f,end:a}=this.getExactExpressionStartAndEnd(v,g.startColumn,g.endColumn);u=v.substring(f-1,a)}return u}getExactExpressionStartAndEnd(s,g,c){let h,u=0;const d=/([^()[\]{}<>\s+\-/%~#^;=|,`!]|->)+/g;let v=null;for(;v=d.exec(s);){const f=v.index+1,a=f+v[0].length;if(f<=g&&a>=c){h=v[0],u=f;break}}if(h){const f=/\w+/g;let a=null;for(;(a=f.exec(h))&&!(a.index+1+u+a[0].length>=c););a&&(h=h.substring(0,f.lastIndex))}return h?{start:u,end:u+h.length-1}:{start:0,end:0}}};t.DebugExpressionProvider=p,n.__decorate([(0,r.Autowired)(m.IEvaluatableExpressionService),n.__metadata("design:type",Object)],p.prototype,"evaluatableExpressionService",void 0),t.DebugExpressionProvider=p=n.__decorate([(0,r.Injectable)()],p)},3367:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverModel=void 0;const r=e(85608),o=e(76003),l=e(97267),m=e(41869),E=e(98650);let p=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new m.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugHoverModel=p,p.DEFAULT_FLUSH_DELAY=100,t.DebugHoverModel=p=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[E.ExpressionContainer])],p)},23217:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverSource=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(64582),m=e(38029),E=e(98650);let p=class{constructor(){this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event}dispose(){this._expression=void 0}get expression(){return this._expression}clearEvaluate(){this.onDidChangeEmitter.fire(void 0)}async evaluate(s){const g=await this.doEvaluate(s);return this._expression=g,this.onDidChangeEmitter.fire(g),g}async doEvaluate(s){const{currentSession:g}=this.sessions;if(g){if(g.capabilities.supportsEvaluateForHovers){const c=new E.DebugHoverVariableRoot(s,g);return await c.evaluate("hover"),c.available&&c||void 0}return this.findVariable(s.split(".").map(c=>c.trim()).filter(c=>!!c))}}async findVariable(s){const{currentFrame:g}=this.sessions;if(!g)return;let c;const h=await g.getScopes();for(const u of h){const d=await this.doFindVariable(u,s);if(!c)c=d;else if(d&&d.value!==c.value)return}return c}async doFindVariable(s,g){await s.ensureLoaded();const c=s.children,h=[];if(c){for(const u of c)(u instanceof E.DebugVariableContainer||u instanceof E.DebugVariable)&&u.name===g[0]&&h.push(u);if(h.length===1)return g.length===1?h[0]:this.doFindVariable(h[0],g.slice(1))}}};t.DebugHoverSource=p,n.__decorate([(0,r.Autowired)(l.IDebugSessionManager),n.__metadata("design:type",m.DebugSessionManager)],p.prototype,"sessions",void 0),t.DebugHoverSource=p=n.__decorate([(0,r.Injectable)()],p)},85322:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverTreeModelService=void 0;const r=e(85608),o=e(76003),l=e(97267),m=e(41869),E=e(98650),p=r.__importDefault(e(57259)),_=e(3367),s=e(23217),{Path:g}=m.path;let c=n=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new l.Decoration(p.default.mod_selected),this.focusedDecoration=new l.Decoration(p.default.mod_focused),this.loadingDecoration=new l.Decoration(p.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new m.Emitter,this.onDidUpdateTreeModelOrVariableEmitter=new m.Emitter,this.disposableCollection=new m.DisposableCollection,this.activeNodeDecoration=(u,d=!0)=>{if(this.preContextMenuFocusedNode&&(this.focusedDecoration.removeTarget(this.preContextMenuFocusedNode),this.selectedDecoration.removeTarget(this.preContextMenuFocusedNode),this.preContextMenuFocusedNode=null),u){if(this.selectedNodes.length>0)for(const v of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(v);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(u),this.focusedDecoration.addTarget(u),this._focusedNode=u,this._selectedNodes=[u],d&&this.treeModel.dispatchChange()}},this.activeNodeFocusedDecoration=(u,d=!1)=>{this.focusedNode!==u&&(d?(this.preContextMenuFocusedNode?(this.focusedDecoration.removeTarget(this.preContextMenuFocusedNode),this.selectedDecoration.removeTarget(this.preContextMenuFocusedNode)):this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.preContextMenuFocusedNode=u):this.focusedNode&&(this.preContextMenuFocusedNode=null,this.focusedDecoration.removeTarget(this.focusedNode)),u&&(this.selectedDecoration.addTarget(u),this.focusedDecoration.addTarget(u),this._focusedNode=u,this._selectedNodes.push(u))),this.treeModel.dispatchChange()},this.enactiveNodeDecoration=()=>{this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this.treeModel.dispatchChange()),this._focusedNode=void 0},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleTwistierClick=u=>{E.ExpressionContainer.is(u)?(this.activeNodeDecoration(u,!1),this.toggleDirectory(u)):this.activeNodeDecoration(u)},this.toggleDirectory=async u=>{u.expanded?this.treeHandle.collapseNode(u):this.treeHandle.expandNode(u)},this.flushEventQueue=()=>{let u;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((v,f)=>{const a=g.pathDepth(v),b=g.pathDepth(f);return a-b});const d=[this._changeEventDispatchQueue[0]];for(const v of this._changeEventDispatchQueue)d.some(f=>v.indexOf(f)===0)||d.push(v);return u=(0,m.pSeries)(d.map(v=>async()=>{var f;const a=(f=this.treeModel.root)===null||f===void 0?void 0:f.watchEvents.get(v);return a&&typeof a.callback=="function"&&await a.callback({type:l.WatchEvent.Changed,path:v}),null})),this._changeEventDispatchQueue=[],u},this.debugHoverSource.onDidChange(async u=>{if(!u){this.onDidUpdateTreeModelOrVariableEmitter.fire({treeModel:void 0,variable:void 0});return}u instanceof E.DebugVariable?(this.dispose(),this.onDidUpdateTreeModelOrVariableEmitter.fire({variable:u})):(await this.initTreeModel(u),this.onDidUpdateTreeModelOrVariableEmitter.fire({treeModel:this.treeModel}))})}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}get onDidUpdateTreeModelOrVariable(){return this.onDidUpdateTreeModelOrVariableEmitter.event}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugHoverTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._treeModel}get whenReady(){return this._whenReady}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenTreeViewChange(){var u,d;this.dispose(),this.disposableCollection.push((u=this.treeModel)===null||u===void 0?void 0:u.root.watcher.on(l.TreeNodeEvent.WillResolveChildren,v=>{this.loadingDecoration.addTarget(v)})),this.disposableCollection.push((d=this.treeModel)===null||d===void 0?void 0:d.root.watcher.on(l.TreeNodeEvent.DidResolveChildren,v=>{this.loadingDecoration.removeTarget(v)}))}async initTreeModel(u){if(u)return this._treeModel=this.injector.get(_.DebugHoverModel,[u]),this.initDecorations(u),this.listenTreeViewChange(),this._treeModel}initDecorations(u){this._decorations=new l.DecorationsManager(u),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration))}handleTreeHandler(u){this._debugHoverTreeHandle=u}async refresh(u=this.treeModel.root){!E.ExpressionContainer.is(u)&&u.parent&&(u=u.parent),this.queueChangeEvent(u.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(u,d){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new m.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var v;await this.flushEventQueue(),(v=this.flushEventQueueDeferred)===null||v===void 0||v.resolve(),this.flushEventQueueDeferred=null,d()},n.DEFAULT_FLUSH_FILE_EVENT_DELAY)),this._changeEventDispatchQueue.indexOf(u)===-1&&this._changeEventDispatchQueue.push(u)}};t.DebugHoverTreeModelService=c,c.DEFAULT_FLUSH_FILE_EVENT_DELAY=100,r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],c.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(s.DebugHoverSource),r.__metadata("design:type",s.DebugHoverSource)],c.prototype,"debugHoverSource",void 0),t.DebugHoverTreeModelService=c=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],c)},65960:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverWidget=void 0;const r=e(85608),o=r.__importDefault(e(12784)),l=r.__importDefault(e(14041)),m=r.__importDefault(e(25873)),E=e(76003),p=e(41869),_=r.__importStar(e(20868)),s=e(62663),g=e(64582),c=e(38029),h=e(74257),u=e(23217),d=e(63940);let v=n=class{constructor(){this.toDispose=new p.DisposableCollection,this.allowEditorOverflow=!0,this.doSchedule=(0,o.default)(a=>a(),300),this.init()}init(){this.toDispose.pushAll([p.Disposable.create(()=>this.editor.removeContentWidget(this)),p.Disposable.create(()=>this.hide()),this.sessions.onDidChange(()=>{this.isEditorFrame()||this.hide()})]),this.renderView()}handleWindowWheel(a){a.stopPropagation()}getId(){return n.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.classList.add(n.ID)),this.domNode}getPosition(){var a;const b=this.options&&this.options.selection.getStartPosition(),y=b&&((a=this.editor.getModel())===null||a===void 0?void 0:a.getWordAtPosition(b));return b&&y?{position:new _.Position(b.lineNumber,y.startColumn),preference:[s.monacoBrowser.editor.ContentWidgetPositionPreference.BELOW,s.monacoBrowser.editor.ContentWidgetPositionPreference.ABOVE]}:null}dispose(){this.toDispose.dispose()}show(a){this.schedule(()=>this.doShow(a),a&&a.immediate)}hide(a){this.schedule(()=>this.doHide(),a&&a.immediate)}schedule(a,b=!0){b?(this.doSchedule.cancel(),a()):this.doSchedule(a)}isEditorFrame(){const{currentFrame:a}=this.sessions;return!!a&&!!a.source&&!!this.editor.getModel()&&this.editor.getModel().uri.toString()===a.source.uri.toString()}doHide(){window.removeEventListener("mousewheel",this.handleWindowWheel,!0),this.getDomNode().contains(document.activeElement)&&this.editor.focus(),this.hoverSource.dispose(),this.hoverSource.clearEvaluate(),this.options=void 0,this.editor.removeContentWidget(this)}layoutContentWidget(){this.editor.layoutContentWidget(this)}renderView(){m.default.createRoot(this.getDomNode()).render(l.default.createElement(p.ConfigProvider,{value:this.configContext},l.default.createElement(d.DebugHoverView,null))),this.layoutContentWidget()}async doShow(a=this.options){if(!this.isEditorFrame()||!a||this.options&&this.options.selection.equalsRange(a.selection))return;this.options=a;const b=await this.expressionProvider.get(this.editor.getModel(),a.selection);b&&(this.hoverSource.clearEvaluate(),await this.hoverSource.evaluate(b)&&(this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_VARIABLES,"hover",b),this.editor.addContentWidget(this),window.addEventListener("mousewheel",this.handleWindowWheel,!0)))}};t.DebugHoverWidget=v,v.ID="debug-hover-widget",r.__decorate([(0,E.Autowired)(g.DebugEditor),r.__metadata("design:type",Object)],v.prototype,"editor",void 0),r.__decorate([(0,E.Autowired)(g.IDebugSessionManager),r.__metadata("design:type",c.DebugSessionManager)],v.prototype,"sessions",void 0),r.__decorate([(0,E.Autowired)(h.DebugExpressionProvider),r.__metadata("design:type",h.DebugExpressionProvider)],v.prototype,"expressionProvider",void 0),r.__decorate([(0,E.Autowired)(u.DebugHoverSource),r.__metadata("design:type",u.DebugHoverSource)],v.prototype,"hoverSource",void 0),r.__decorate([(0,E.Autowired)(p.AppConfig),r.__metadata("design:type",Object)],v.prototype,"configContext",void 0),r.__decorate([(0,E.Autowired)(p.IReporterService),r.__metadata("design:type",Object)],v.prototype,"reporterService",void 0),t.DebugHoverWidget=v=n=r.__decorate([(0,E.Injectable)(),r.__metadata("design:paramtypes",[])],v)},63940:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),m=e(41869),E=e(28875),p=e(85322),_=n.__importDefault(e(94084)),s=()=>{const g=(0,m.useInjectable)(p.DebugHoverTreeModelService),c=250,[h,u]=o.default.useState({}),[d,v]=o.default.useState(c),f=o.default.useRef(null);o.default.useEffect(()=>(g.onDidUpdateTreeModelOrVariable(async w=>{const{treeModel:D,variable:I}=w;D&&await D.ensureReady,u({treeModel:D,variable:I})}),a(),()=>{g.removeNodeDecoration()}),[]),o.default.useEffect(()=>{let w;return v(c),h.treeModel&&(w=h.treeModel.root.watcher.on(l.TreeNodeEvent.DidChangeExpansionState,D=>{var I;const O=Math.max(c,~~((I=h.treeModel)===null||I===void 0?void 0:I.root.branchSize)*22);v(Math.min(500,O))})),()=>{w?.dispose()}},[h.treeModel]);const a=async()=>{g.treeModel&&(await g.treeModel.ensureReady,u({treeModel:g.treeModel}))},b=w=>{g.handleTreeHandler({...w,getModel:()=>h?.treeModel,hasDirectFocus:()=>f.current===document.activeElement})},y=(w,D)=>{w.stopPropagation();const{handleTwistierClick:I}=g;D&&I(D)},S=!!h.treeModel&&!!h.treeModel.root.variablesReference,A=o.default.useCallback(w=>{const D=g.decorations.getDecorations(w.item);return o.default.createElement(E.DebugVariableRenderedNode,{item:w.item,itemType:w.itemType,decorations:D,onClick:y,onTwistierClick:y,defaultLeftPadding:0,leftPadding:4})},[h.treeModel]),T=()=>S?o.default.createElement("div",{className:_.default.debug_hover_content,tabIndex:-1,ref:f},o.default.createElement(l.RecycleTree,{height:d,itemHeight:E.DEBUG_VARIABLE_TREE_NODE_HEIGHT,onReady:b,model:h.treeModel,placeholder:()=>o.default.createElement("span",null),overflow:"auto"},A)):null;return o.default.createElement("div",{className:_.default.debug_hover},h.treeModel?o.default.createElement("div",{className:(0,r.default)(_.default.debug_hover_title,S&&_.default.has_complex_value),title:h.treeModel.root.name},h.treeModel.root.name):h.variable&&o.default.createElement("div",{className:(0,r.default)(_.default.debug_hover_title,S&&_.default.has_complex_value),title:h.variable.name},h.variable.value),T())};t.DebugHoverView=s},71569:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugModelManager=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(54414),m=e(64582),E=e(99797),p=e(37499);let _=class extends o.Disposable{constructor(){super(),this.toDispose=new o.DisposableCollection,this._onMouseDown=new o.Emitter,this._onMouseMove=new o.Emitter,this._onMouseLeave=new o.Emitter,this._onMouseUp=new o.Emitter,this.onMouseDown=this._onMouseDown,this.onMouseMove=this._onMouseMove,this.onMouseLeave=this._onMouseLeave,this.onMouseUp=this._onMouseUp,this._onModelChanged=new o.Emitter,this.onModelChanged=this._onModelChanged.event,this.models=new Map}dispose(){for(const g of this.models.values())this.toDispose.pushAll(g);this.toDispose.dispose(),this.models.clear()}init(){this.editorCollection.onCodeEditorCreate(g=>this.push(g)),this.breakpointManager.onDidChangeBreakpoints(g=>{const{currentEditor:c}=this.editorService,h=c&&c.currentUri;h&&this.render(h),this.closeBreakpointIfAffected(g)})}get model(){const{currentEditor:g}=this.editorService,c=g&&g.currentUri;if(c){const h=this.models.get(c.toString());return h&&h[0]}}closeBreakpointIfAffected({affected:g,removed:c}){g.forEach(h=>{const u=this.models.get(h.toString());if(u)for(const d of u){const v=d.getBreakpointWidget(),f=v.position;if(!f)return;for(const a of c)a.raw.line===f.lineNumber&&v.dispose()}})}render(g){const c=this.models.get(g.toString());if(c)for(const h of c)h.render()}push(g){const c=g.monacoEditor;g.onRefOpen(u=>{const d=u.instance.uri.toString(),v=this.models.get(d)||[];let f=!1;if(v.length>0){for(const a of v)if(a.getEditor()._id===c._id){a.render(),f=!0;break}}if(!f){const a=u.instance.getMonacoModel(),b=this.debugModelFactory(c);v.push(b),this.models.set(d,v),a.onWillDispose(()=>{b.dispose(),this.models.delete(d)})}});const h=(u,d)=>{const v=c.getModel();if(!v)throw new Error("Not find model");this.handleMouseEvent(new o.URI(v.uri.toString()),u,d,c)};this.toDispose.push(c.onMouseMove(u=>h(m.DebugModelSupportedEventType.move,u))),this.toDispose.push(c.onMouseDown(u=>h(m.DebugModelSupportedEventType.down,u))),this.toDispose.push(c.onMouseLeave(u=>h(m.DebugModelSupportedEventType.leave,u))),this.toDispose.push(c.onContextMenu(u=>h(m.DebugModelSupportedEventType.contextMenu,u))),this.toDispose.push(c.onDidChangeModel(u=>this._onModelChanged.fire(u)))}resolve(g){const c=this.models.get(g.toString());if(c)return c}handleMouseEvent(g,c,h,u){const d=this.models.get(g.toString());if(!(!d||!this.debugConfigurationManager.canSetBreakpointsIn(d[0].getEditor().getModel()))){for(const f of d)if(f.getEditor().getId()===u.getId()){switch(c){case m.DebugModelSupportedEventType.contextMenu:f.onContextMenu(h);break;case m.DebugModelSupportedEventType.down:f.onMouseDown(h);break;case m.DebugModelSupportedEventType.leave:f.onMouseLeave(h);break;case m.DebugModelSupportedEventType.move:f.onMouseMove(h);break;default:break}break}}}};t.DebugModelManager=_,n.__decorate([(0,r.Autowired)(l.WorkbenchEditorService),n.__metadata("design:type",l.WorkbenchEditorService)],_.prototype,"editorService",void 0),n.__decorate([(0,r.Autowired)(l.EditorCollectionService),n.__metadata("design:type",l.EditorCollectionService)],_.prototype,"editorCollection",void 0),n.__decorate([(0,r.Autowired)(m.DebugModelFactory),n.__metadata("design:type",Function)],_.prototype,"debugModelFactory",void 0),n.__decorate([(0,r.Autowired)(E.BreakpointManager),n.__metadata("design:type",E.BreakpointManager)],_.prototype,"breakpointManager",void 0),n.__decorate([(0,r.Autowired)(p.DebugConfigurationManager),n.__metadata("design:type",p.DebugConfigurationManager)],_.prototype,"debugConfigurationManager",void 0),t.DebugModelManager=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},91260:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugModel=void 0;const r=e(85608),o=r.__importDefault(e(12784)),l=e(76003),m=e(41869),E=e(93899),p=e(43718),_=r.__importStar(e(20868)),s=e(62663),g=e(52416),c=e(64582),h=e(24395),u=e(26296),d=e(99797),v=e(38949),f=e(38029),a=e(97319),b=e(17475),y=e(65960),S=r.__importStar(e(26571));let A=n=class{static createContainer(D,I){return D.createChild([{token:h.DebugEditor,useValue:I},{token:y.DebugHoverWidget,useClass:y.DebugHoverWidget},{token:b.DebugBreakpointWidget,useClass:b.DebugBreakpointWidget},{token:c.IDebugModel,useClass:n}])}static createModel(D,I){return n.createContainer(D,I).get(c.IDebugModel)}get uri(){return this._uri}constructor(){this.toDispose=new p.DisposableCollection,this.frameDecorations=[],this.updatingDecorations=!1,this.breakpointDecorations=[],this.breakpointRanges=new Map,this.currentBreakpointDecorations=[],this.candidateDecorations=[],this.renderFrames=(0,o.default)((D=[])=>{var I;if(this.toDispose.disposed||((I=this.editor.getModel())===null||I===void 0?void 0:I.uri.toString())!==this._uri.toString())return;const O=this.createFrameDecorations().concat(D);this.frameDecorations=this.deltaDecorations(this.frameDecorations,O)},100),this.toggleBreakpoint=(D=this.position)=>{this.doToggleBreakpoint(D)},this.openBreakpointView=(D,I,O)=>{this.breakpointWidget.show(D,I,O)},this.closeBreakpointView=()=>{this.breakpointWidget.hide()},this.acceptBreakpoint=()=>{const{position:D,values:I}=this.breakpointWidget;if(this.reporterService.point(c.DEBUG_REPORT_NAME===null||c.DEBUG_REPORT_NAME===void 0?void 0:c.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,this.breakpointWidget.breakpointType),D&&I){const O=this.getBreakpoint(D);O?(O.raw.condition=I.condition,O.raw.hitCondition=I.hitCondition,O.raw.logMessage=I.logMessage,this.breakpointManager.updateBreakpoint(O)):this.breakpointManager.addBreakpoint(d.DebugBreakpoint.create(this._uri,{line:D.lineNumber,...I})),this.breakpointWidget.hide()}},this.hintDecorations=[],this.init()}async init(){const D=this.editor.getModel();let I;this._uri=new p.URI(D.uri.toString()),this.decorator=new v.DebugDecorator,this.toDispose.pushAll([this.breakpointWidget,this.editor.onKeyDown(()=>this.debugHoverWidget.hide({immediate:!1})),this.editor.onDidChangeModelContent(()=>this.renderFrames()),this.debugSessionManager.onDidChange(()=>this.renderFrames()),this.debugBreakpointsService.onDidFocusedBreakpoints(({range:O})=>{this.preferenceService.getValid("debug.breakpoint.editorHint",!0)&&(this.renderFrames([{options:S.FOCUS_BREAKPOINTS_STACK_FRAME_DECORATION,range:O}]),I&&clearTimeout(I),I=window.setTimeout(()=>{this.renderFrames(),clearTimeout(I)},300))}),this.editor.getModel().onDidChangeContent(()=>this.updateBreakpoints()),this.editor.onDidChangeModel(()=>{this.closeBreakpointView()})]),this.renderFrames(),this.render()}dispose(){this.toDispose.dispose()}get position(){return this._position||this.editor.getPosition()}get breakpoint(){return this.getBreakpoint()}getBreakpoint(D){return this.breakpointManager.getBreakpoint(this._uri,D?D.lineNumber:void 0)}createFrameDecorations(){var D;const I=[],{currentFrame:O,topFrame:P}=this.debugSessionManager;if(!O||!O.source||O.source.uri.toString()!==((D=this.editor.getModel())===null||D===void 0?void 0:D.uri.toString()))return I;const R=new _.Range(O.raw.line,O.raw.column,O.raw.line,1<<30),M=new _.Range(O.raw.line,O.raw.column,O.raw.line,O.raw.column+1);if(P===O)if(I.push({options:S.TOP_STACK_FRAME_MARGIN,range:M}),O.thread.stoppedDetails&&O.thread.stoppedDetails.reason==="exception")I.push({options:S.TOP_STACK_FRAME_EXCEPTION_DECORATION,range:R});else{I.push({options:S.TOP_STACK_FRAME_DECORATION,range:R});const{topFrameRange:k}=this;k&&k.startLineNumber===O.raw.line&&k.startColumn!==O.raw.column&&I.push({options:S.TOP_STACK_FRAME_INLINE_DECORATION,range:R}),this.topFrameRange=R}else I.push({options:S.FOCUSED_STACK_FRAME_MARGIN,range:M}),I.push({options:S.FOCUSED_STACK_FRAME_DECORATION,range:R});return I}deltaDecorations(D,I){this.updatingDecorations=!0;try{return this.editor.deltaDecorations(D,I)}finally{this.updatingDecorations=!1}}focusStackFrame(){this.renderFrames()}async render(){await this.renderBreakpoints(),this.renderFrames()}async renderBreakpoints(){await this.breakpointManager.whenReady,this.renderNormalBreakpoints(),this.renderCurrentBreakpoints()}renderNormalBreakpoints(){const D=this.createBreakpointDecorations();this.breakpointDecorations=this.deltaDecorations(this.breakpointDecorations,D),this.updateBreakpointRanges()}updateBreakpoints(){if(this.areBreakpointsAffected()){const D=this.createBreakpoints();this.breakpointManager.setBreakpoints(this._uri,D)}}areBreakpointsAffected(){if(this.updatingDecorations||!this.editor.getModel())return!1;for(const D of this.breakpointDecorations){const I=this.editor.getModel().getDecorationRange(D),O=this.breakpointRanges.get(D);if(!I||!I.equalsRange(O))return!0}return!1}createBreakpoints(){const{_uri:D}=this,I=new Set,O=[];for(const P of this.breakpointDecorations){const R=this.editor.getModel().getDecorationRange(P);if(R&&!I.has(R.startLineNumber)){const M=R.startLineNumber,k=this.breakpointRanges.get(P),B=k&&this.breakpointManager.getBreakpoint(D,k.startLineNumber)||{},x=d.DebugBreakpoint.create(D,{...B.raw||{},line:M},B.enabled);O.push(x),I.add(M)}}return O}createBreakpointDecorations(){return this.breakpointManager.getBreakpoints(this._uri).map(I=>this.createBreakpointDecoration(I))}createBreakpointDecoration(D){const I=D.raw.line,O=D.raw.column||0;return{range:new _.Range(I,O,I,O+1),options:{description:"breakpoint-decoration",stickiness:S.STICKINESS}}}async renderCurrentBreakpoints(){const D=this.breakpointManager.getBreakpoints(this._uri),I=this.createCurrentBreakpointDecorations(),O=this.deltaDecorations(this.currentBreakpointDecorations.map(({decorationId:M})=>M),I);this.currentBreakpointDecorations.forEach(M=>{M.inlineWidget&&M.inlineWidget.dispose()}),this.currentBreakpointDecorations=O.map((M,k)=>{const B=I[k],x=D[k],N=(x.enabled?S.BREAKPOINT_DECORATION:S.BREAKPOINT_DECORATION_DISABLED).glyphMarginClassName,j=B.options.beforeContentClassName?new T(this.editor,M,N,x,this.breakpointManager):void 0;return{breakpoint:x,decorationId:M,inlineWidget:j}});const P=await this.getCandidateBreakpoints(D),R=this.deltaDecorations(this.candidateDecorations.map(({decorationId:M})=>M),P);this.candidateDecorations.forEach(M=>{M.inlineWidget.dispose()}),this.candidateDecorations=R.map((M,k)=>{const{breakpoint:B}=P[k],x=(B?S.BREAKPOINT_DECORATION:S.BREAKPOINT_DECORATION_DISABLED).glyphMarginClassName,N=new T(this.editor,M,x,B,this.breakpointManager);return{decorationId:M,inlineWidget:N}})}async getCandidateBreakpoints(D){const I=this.editor.getModel(),O=this.debugSessionManager.currentSession;if(!I||!O?.capabilities.supportsBreakpointLocationsRequest)return[];const P=Array.from(new Set(D.map(M=>M.raw.line))),R=[];return await Promise.all(P.map(async M=>{const k=await O.breakpointLocations(this._uri,M);if(k.length<=1)return;const B=I.getLineCount();if(M>B)return;const x=I.getLineFirstNonWhitespaceColumn(M),N=I.getLineLastNonWhitespaceColumn(M);k.forEach(j=>{const K=new _.Range(j.lineNumber,j.column,j.lineNumber,j.column+1);if(j.column<=x||j.column>N)return;const U=this.currentBreakpointDecorations.find(({breakpoint:Q})=>Q.raw.line===K.startLineNumber&&Q.raw.column===K.startColumn);U?.inlineWidget||R.push({range:K,options:{description:"debug-breakpoint-placeholder",stickiness:_.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,beforeContentClassName:U?void 0:"debug-breakpoint-placeholder"},breakpoint:U?.breakpoint})})})),R}createCurrentBreakpointDecorations(){return this.breakpointManager.getBreakpoints(this._uri).filter(I=>(0,d.isDebugBreakpoint)(I)).map(I=>this.createCurrentBreakpointDecoration(I))}createCurrentBreakpointDecoration(D){const I=this.debugSessionManager.currentSession,O=D.status.get(I&&I.id||""),P=O&&O.line?O.line:D.raw.line,R=D.raw.column||0,M=this.editor.getModel(),k=M.getLineCount(),B=P>k?!1:R>M.getLineFirstNonWhitespaceColumn(P),x=new _.Range(P,R,P,R+1),{className:N,message:j}=this.decorator.getDecoration(D,!!I,this.breakpointManager.breakpointsEnabled),K=this.preferenceService.getValid("debug.breakpoint.showBreakpointsInOverviewRuler",!1);let U=null;return K&&(U={color:this.themeService.getColor({id:g.debugIconBreakpointForeground}),position:_.editor.OverviewRulerLane.Left}),{range:x,options:{description:"debug-breakpoint-placeholder",glyphMarginClassName:N,glyphMarginHoverMessage:j.map(Q=>({value:Q})),stickiness:S.STICKINESS,beforeContentClassName:B?"debug-breakpoint-placeholder":void 0,overviewRuler:U}}}updateBreakpointRanges(){this.breakpointRanges.clear();for(const D of this.breakpointDecorations){const I=this.editor.getModel().getDecorationRange(D);this.breakpointRanges.set(D,I)}}showHover(D){const I=D.target.type,O=p.isOSX?"metaKey":"ctrlKey";D.event.altKey||I===s.monacoBrowser.editor.MouseTargetType.CONTENT_WIDGET&&D.target.detail===this.debugHoverWidget.getId()&&!D.event[O]||(I===s.monacoBrowser.editor.MouseTargetType.CONTENT_TEXT?this.debugHoverWidget.show({selection:D.target.range,immediate:!1}):this.debugHoverWidget.hide({immediate:!1}))}hideHover({event:D}){const I=this.debugHoverWidget.getDomNode().getBoundingClientRect();(D.posx<I.left||D.posx>I.right||D.posy<I.top||D.posy>I.bottom)&&this.debugHoverWidget.hide({immediate:!1})}doToggleBreakpoint(D=this.position){const I=this.breakpointManager.getBreakpoints(this._uri,{lineNumber:D.lineNumber});if(I.length)for(const O of I)this.breakpointManager.delBreakpoint(O);else this.breakpointManager.addBreakpoint(d.DebugBreakpoint.create(this._uri,{line:D.lineNumber}))}get contributedContextMenu(){return this.menuService.createMenu(E.MenuId.DebugBreakpointsContext,this.contextKeyService)}onContextMenu(D){var I;if(this.marginFreeFromNonDebugDecorations((I=D.target.position)===null||I===void 0?void 0:I.lineNumber)&&D.target&&D.target.type===s.monacoBrowser.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const O=this.breakpointManager.getBreakpoint(this._uri,D.target.position.lineNumber);this.breakpointManager.selectedBreakpoint={breakpoint:O,model:this};const P=this.contributedContextMenu,R=(0,E.generateMergedCtxMenu)({menus:P});this.ctxMenuRenderer.show({anchor:D.event.browserEvent,menuNodes:R,args:[D.target.position]})}}marginFreeFromNonDebugDecorations(D){const I=this.editor.getLineDecorations(D);if(Array.isArray(I))for(const{options:O}of I){const P=O.glyphMarginClassName;if(P&&(P.includes("testing-run-glyph")||P.includes("interface-navigation-glyph")))return!1}return!0}onMouseDown(D){var I;this.marginFreeFromNonDebugDecorations((I=D.target.position)===null||I===void 0?void 0:I.lineNumber)&&(D.target&&D.target.type===s.monacoBrowser.editor.MouseTargetType.GUTTER_GLYPH_MARGIN&&(D.event.rightButton||(this.editor.focus(),this.toggleBreakpoint(D.target.position))),this.hintBreakpoint(D))}onMouseMove(D){var I;if(!this.marginFreeFromNonDebugDecorations((I=D.target.position)===null||I===void 0?void 0:I.lineNumber)){this.onMouseLeave(D);return}this.showHover(D),this.hintBreakpoint(D)}onMouseLeave(D){this.hideHover(D),this.deltaHintDecorations([])}hintBreakpoint(D){const I=this.createHintDecorations(D);this.deltaHintDecorations(I)}deltaHintDecorations(D){this.hintDecorations=this.deltaDecorations(this.hintDecorations,D)}createHintDecorations(D){if(D.target&&D.target.type===s.monacoBrowser.editor.MouseTargetType.GUTTER_GLYPH_MARGIN||D.target.type===s.monacoBrowser.editor.MouseTargetType.GUTTER_LINE_NUMBERS){const I=D.target.position.lineNumber;return this.breakpointManager.getBreakpoint(this._uri,I)?[]:[{range:new _.Range(I,1,I,1),options:S.BREAKPOINT_HINT_DECORATION}]}return[]}getBreakpoints(D,I){return this.breakpointManager.getBreakpoints(D,I)}getEditor(){return this.editor}getBreakpointWidget(){return this.breakpointWidget}getDebugHoverWidget(){return this.debugHoverWidget}};t.DebugModel=A,r.__decorate([(0,l.Autowired)(h.DebugEditor),r.__metadata("design:type",Object)],A.prototype,"editor",void 0),r.__decorate([(0,l.Autowired)(b.DebugBreakpointWidget),r.__metadata("design:type",b.DebugBreakpointWidget)],A.prototype,"breakpointWidget",void 0),r.__decorate([(0,l.Autowired)(y.DebugHoverWidget),r.__metadata("design:type",y.DebugHoverWidget)],A.prototype,"debugHoverWidget",void 0),r.__decorate([(0,l.Autowired)(u.IDebugSessionManager),r.__metadata("design:type",f.DebugSessionManager)],A.prototype,"debugSessionManager",void 0),r.__decorate([(0,l.Autowired)(a.DebugBreakpointsService),r.__metadata("design:type",a.DebugBreakpointsService)],A.prototype,"debugBreakpointsService",void 0),r.__decorate([(0,l.Autowired)(d.BreakpointManager),r.__metadata("design:type",d.BreakpointManager)],A.prototype,"breakpointManager",void 0),r.__decorate([(0,l.Autowired)(E.AbstractMenuService),r.__metadata("design:type",E.AbstractMenuService)],A.prototype,"menuService",void 0),r.__decorate([(0,l.Autowired)(m.IContextKeyService),r.__metadata("design:type",Object)],A.prototype,"contextKeyService",void 0),r.__decorate([(0,l.Autowired)(E.ICtxMenuRenderer),r.__metadata("design:type",E.ICtxMenuRenderer)],A.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,l.Autowired)(m.IReporterService),r.__metadata("design:type",Object)],A.prototype,"reporterService",void 0),r.__decorate([(0,l.Autowired)(m.PreferenceService),r.__metadata("design:type",Object)],A.prototype,"preferenceService",void 0),r.__decorate([(0,l.Autowired)(g.IThemeService),r.__metadata("design:type",Object)],A.prototype,"themeService",void 0),r.__decorate([p.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],A.prototype,"contributedContextMenu",null),t.DebugModel=A=n=r.__decorate([(0,l.Injectable)(),r.__metadata("design:paramtypes",[])],A);class T extends p.Disposable{constructor(D,I,O,P,R){super(),this.editor=D,this.decorationId=I,this.breakpoint=P,this.breakpointManager=R,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.range=this.editor.getModel().getDecorationRange(I),this.addDispose(this.editor.onDidChangeModelDecorations(()=>{const k=this.editor.getModel().getDecorationRange(this.decorationId);this.range&&!this.range.equalsRange(k)&&(this.range=k,this.editor.layoutContentWidget(this))})),this.addDispose(p.Disposable.create(()=>{this.editor.removeContentWidget(this)})),this.create(O),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(D){const I=document.createElement("div");I.className="inline-breakpoint-widget",D&&(0,m.addClassName)(I,D),this.domNode=I;const{EditorOption:O}=_.editor,P=()=>{const R=this.editor.getOption(O.lineHeight);I.style.height=`${R}px`,I.style.width=`${Math.ceil(.8*R)}px`,I.style.marginLeft="4px"};P(),this.addDispose(new m.DomListener(I,"click",async()=>{this.breakpoint?this.breakpointManager.delBreakpoint(this.breakpoint):this.breakpointManager.addBreakpoint(d.DebugBreakpoint.create(this.editor.getModel().uri,{line:this.range.startLineNumber,column:this.range.startColumn}))})),this.addDispose(this.editor.onDidChangeConfiguration(R=>{(R.hasChanged(O.fontSize)||R.hasChanged(O.lineHeight))&&P()}))}getId(){return(0,p.uuid)()}getDomNode(){return this.domNode}getPosition(){return this.range?(this.domNode.classList.toggle("line-start",this.range.startColumn===1),{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn-1},preference:[s.monacoBrowser.editor.ContentWidgetPositionPreference.EXACT]}):null}}r.__decorate([p.memoize,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],T.prototype,"getId",null)},78606:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugRunToCursorService=void 0;const n=e(85608),r=e(76003),o=e(54414),l=e(26296),m=e(66089),E=e(38029),p=e(97319);let _=class{constructor(){}async run(g,c=!1){const h=this.sessionManager.currentSession;if(!h||h.state!==l.DebugState.Stopped)return;const u=this.workbenchEditorService.currentEditor;if(u){if(!u.monacoEditor)return}else return;const{monacoEditor:d}=u,v=d.getPosition();if(!(d.hasModel()&&v))return;const f=h.getModel();if(!f)return;const a=!!f.getBreakpoints(g,{column:v.column,lineNumber:v.lineNumber}).length;let b,y=h.currentThread,S=[];if(!a){c&&(S=f.getBreakpoints().filter(w=>w.enabled).filter(w=>w.raw.column!==v.column&&w.raw.line!==v.lineNumber),S.forEach(w=>{this.debugBreakpointsService.toggleBreakpointEnable(w)}));const T=await this.addBreakpoints(g,v);if(!T){this.recoverStatus(S);return}T.thread&&(y=T.thread),T.breakpoint&&(b=T.breakpoint)}if(!y){this.recoverStatus(S);return}const A=y.session.onDidChangeState(()=>{const T=h.state;(T===l.DebugState.Stopped||T===l.DebugState.Inactive)&&(b&&h.delBreakpoint(b),A.dispose())});await y.continue(),this.recoverStatus(S)}async addBreakpoints(g,c){const h=this.sessionManager.currentSession;if(!h)return;let u=1;const d=h.currentFrame;d&&d.range().startLineNumber===c.lineNumber&&(u=c.column||1);const v=m.DebugBreakpoint.create(g,{line:c.lineNumber,column:u});if(await h.addBreakpoint(v,!0),!v)return{breakpoint:void 0,thread:h.currentThread};let f=h.currentThread,a=0;const b=h.threads.filter(y=>y.stopped);if(a<3&&h.currentThread&&b.includes(h.currentThread)&&(f=h.currentThread,a=3),a<2){const y=b.find(S=>S.topFrame);y&&(f=y,a=2)}return a<1&&(f=b[0],a=2),{thread:f,breakpoint:v}}recoverStatus(g){g.forEach(c=>{this.debugBreakpointsService.toggleBreakpointEnable(c)})}};t.DebugRunToCursorService=_,n.__decorate([(0,r.Autowired)(l.IDebugSessionManager),n.__metadata("design:type",E.DebugSessionManager)],_.prototype,"sessionManager",void 0),n.__decorate([(0,r.Autowired)(o.WorkbenchEditorService),n.__metadata("design:type",o.WorkbenchEditorService)],_.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(p.DebugBreakpointsService),n.__metadata("design:type",p.DebugBreakpointsService)],_.prototype,"debugBreakpointsService",void 0),t.DebugRunToCursorService=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},26571:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAKPOINT_DECORATION_DISABLED=t.BREAKPOINT_DECORATION=t.BREAKPOINT_HINT_DECORATION=t.TOP_STACK_FRAME_INLINE_DECORATION=t.FOCUSED_STACK_FRAME_DECORATION=t.TOP_STACK_FRAME_EXCEPTION_DECORATION=t.FOCUS_BREAKPOINTS_STACK_FRAME_DECORATION=t.TOP_STACK_FRAME_DECORATION=t.FOCUSED_STACK_FRAME_MARGIN=t.TOP_STACK_FRAME_MARGIN=t.BREAK_PONINT_HOVER_MARGIN=t.STICKINESS=void 0;const r=e(85608).__importStar(e(20868));t.STICKINESS=r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,t.BREAK_PONINT_HOVER_MARGIN={description:"debug-hover",glyphMarginClassName:"sumi-debug-hover",linesDecorationsClassName:"sumi-debug-hover",isWholeLine:!0},t.TOP_STACK_FRAME_MARGIN={description:"debug-top-stack-frame",glyphMarginClassName:"sumi-debug-top-stack-frame",stickiness:t.STICKINESS},t.FOCUSED_STACK_FRAME_MARGIN={description:"debug-focused-stack-frame",glyphMarginClassName:"sumi-debug-focused-stack-frame",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_DECORATION={description:"debug-top-stack-frame-line",isWholeLine:!0,className:"sumi-debug-top-stack-frame-line",stickiness:t.STICKINESS},t.FOCUS_BREAKPOINTS_STACK_FRAME_DECORATION={description:"focus-breakpoints-stack-frame-line",isWholeLine:!0,className:"sumi-focus-breakpoints-stack-frame-line",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_EXCEPTION_DECORATION={description:"debug-top-stack-frame-exception-line",isWholeLine:!0,className:"sumi-debug-top-stack-frame-exception-line",stickiness:t.STICKINESS},t.FOCUSED_STACK_FRAME_DECORATION={description:"debug-focused-stack-frame-line",isWholeLine:!0,className:"sumi-debug-focused-stack-frame-line",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_INLINE_DECORATION={description:"debug-top-stack-frame-column",beforeContentClassName:"sumi-debug-top-stack-frame-column"},t.BREAKPOINT_HINT_DECORATION={description:"debug-breakpoint-hint",glyphMarginClassName:"sumi-debug-breakpoint-hint",stickiness:t.STICKINESS},t.BREAKPOINT_DECORATION={description:"debug-breakpoint",glyphMarginClassName:"sumi-debug-breakpoint",stickiness:t.STICKINESS},t.BREAKPOINT_DECORATION_DISABLED={description:"debug-breakpoint-disabled",glyphMarginClassName:"sumi-debug-breakpoint-disabled",stickiness:t.STICKINESS}},39266:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluatableExpressionServiceImpl=t.IEvaluatableExpressionService=void 0;const n=e(85608),r=e(76003),o=e(40497),l=new o.LanguageFeatureRegistry;t.IEvaluatableExpressionService=Symbol("IEvaluatableExpressionService");let m=class{getSupportedEvaluatableExpressionProvider(p){return l.ordered(p)}registerEvaluatableExpressionProvider(p,_){return l.register(p,_)}hasEvaluatableExpressProvider(p){return l.has(p)}};t.EvaluatableExpressionServiceImpl=m,t.EvaluatableExpressionServiceImpl=m=n.__decorate([(0,r.Injectable)()],m)},75935:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(17475),t),n.__exportStar(e(65960),t),n.__exportStar(e(91260),t),n.__exportStar(e(71569),t),n.__exportStar(e(26571),t),n.__exportStar(e(74257),t)},33969:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(91825),m=e(64582),E=e(99797),p=e(3005),_=e(37499),s=e(59053),g=e(31141),c=e(40453),h=e(90408),u=e(97186),d=e(38029),v=e(75935),f=e(23217),a=e(39266),b=e(23434),y=e(52369),S=e(44888),A=e(84784),T=e(15153),w=e(11456),D=e(37243),I=e(86752),O=e(14600);e(51377);let P=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:f.DebugHoverSource,useClass:f.DebugHoverSource},{token:v.DebugExpressionProvider,useClass:v.DebugExpressionProvider},{token:m.IDebugModelManager,useClass:v.DebugModelManager},{token:m.IDebugSessionManager,useClass:d.DebugSessionManager},{token:E.BreakpointManager,useClass:E.BreakpointManager},{token:_.DebugConfigurationManager,useClass:_.DebugConfigurationManager},{token:a.IEvaluatableExpressionService,useClass:a.EvaluatableExpressionServiceImpl},{token:l.FolderFilePreferenceProvider,useClass:b.LaunchFolderPreferenceProvider,dropdownForTag:!0,tag:"launch"},{token:m.DebugModelFactory,useFactory:M=>k=>v.DebugModel.createModel(M,k)},{token:u.DebugSessionContributionRegistry,useClass:u.DebugSessionContributionRegistryImpl},{token:m.IDebugService,useClass:h.DebugService},{token:m.ILaunchService,useClass:S.LaunchService},{token:m.IDebugProgress,useClass:c.DebugProgressService},{token:m.IDebugConsoleModelService,useClass:T.DebugConsoleModelService},y.LaunchPreferencesContribution,s.DebugContribution,w.DebugConsoleContribution,I.VariablesPanelContribution,D.DebugCallStackContribution,O.WatchPanelContribution,{token:p.DebugCallStackItemTypeKey,useFactory:M=>M.get(o.IContextKeyService).createKey("callStackItemType")}],this.contributionProvider=u.DebugSessionContribution,this.preferences=g.injectDebugPreferences,this.isOverlay=!0,this.component=A.DebugToolbarOverlayWidget}};t.DebugModule=P,t.DebugModule=P=n.__decorate([(0,r.Injectable)()],P)},39553:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(35721),t),n.__exportStar(e(20391),t)},35721:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerManager=t.MarkerCollection=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(14951);class m{constructor(_,s){this.uri=_,this.kind=s,this.owner2Markers=new Map}get empty(){return!this.owner2Markers.size}getOwners(){return Array.from(this.owner2Markers.keys())}getMarkers(_){return this.owner2Markers.get(_)||[]}setMarkers(_,s){const g=this.owner2Markers.get(_);return s.length>0?this.owner2Markers.set(_,s.map(c=>this.createMarker(_,c))):this.owner2Markers.delete(_),g||[]}createMarker(_,s){return Object.freeze({uri:this.uri.toString(),kind:this.kind,owner:_,data:s})}findMarkers(_){if(_.owner)return this.owner2Markers.has(_.owner)?this.filterMarkers(_,this.owner2Markers.get(_.owner)):[];{const s=[];for(const g of this.owner2Markers.values())s.push(...this.filterMarkers(_,g));return s}}filterMarkers(_,s){return s?_.dataFilter?s.filter(g=>_.dataFilter(g.data)):s:[]}}t.MarkerCollection=m;let E=class{constructor(){this.uri2MarkerCollection=new Map,this.onDidChangeMarkersEmitter=new o.Emitter,this.init()}init(){this.fileService.onFilesChanged(_=>{const s=_.filter(({type:g})=>g===l.FileChangeType.DELETED);s.length&&this.cleanMarkers(s)})}cleanMarkers(_){for(const s of this.uri2MarkerCollection.keys()){const g=new o.URI(s);l.FileChangeEvent.isDeleted(_,g)&&this.cleanAllMarkers(g)}}get onDidChangeMarkers(){return this.onDidChangeMarkersEmitter.event}fireOnDidChangeMarkers(_){this.onDidChangeMarkersEmitter.fire(_)}setMarkers(_,s,g){const c=_.toString(),h=this.uri2MarkerCollection.get(c)||new m(_,this.getKind()),u=h.setMarkers(s,g);return h.empty?this.uri2MarkerCollection.delete(_.toString()):this.uri2MarkerCollection.set(c,h),this.fireOnDidChangeMarkers(_),u}findMarkers(_={}){if(_.uri){const g=this.uri2MarkerCollection.get(_.uri.toString());return g?g.findMarkers(_):[]}const s=[];for(const g of this.getUris())s.push(...this.uri2MarkerCollection.get(g).findMarkers(_));return s}getUris(){return this.uri2MarkerCollection.keys()}cleanAllMarkers(_){if(_)this.doCleanAllMarkers(_);else for(const s of this.getUris())this.doCleanAllMarkers(new o.URI(s))}doCleanAllMarkers(_){const s=_.toString();this.uri2MarkerCollection.get(s)!==void 0&&(this.uri2MarkerCollection.delete(s),this.fireOnDidChangeMarkers(_))}};t.MarkerManager=E,n.__decorate([(0,r.Autowired)(l.IFileServiceClient),n.__metadata("design:type",Object)],E.prototype,"fileService",void 0),t.MarkerManager=E=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],E)},20391:(L,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},88776:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSource=t.DebugSourceData=void 0;const n=e(41869);class r{}t.DebugSourceData=r;class o extends r{constructor(m,E,p,_,s){super(),this.session=m,this.labelProvider=E,this.modelManager=p,this.workbenchEditorService=_,this.fileSystem=s}get uri(){return o.toUri(this.raw)}get available(){return!!this.raw}get presentationHint(){return this.raw.presentationHint}update(m){Object.assign(this,m)}async open(m,E){if(this.uri.scheme===o.SCHEME){const p=await this.load();await this.fileSystem.setContent({uri:this.uri.toString(),lastModification:0},p)}if(E&&E.raw){const{line:p,column:_}=E.raw,s={startLineNumber:p,startColumn:typeof _=="number"?_:0,endLineNumber:p,endColumn:1/0};await this.workbenchEditorService.open(this.uri,{...m,range:s}),E.thread.currentFrame=E;const g=this.modelManager.resolve(this.uri);if(g)for(const c of g)c.focusStackFrame()}else await this.workbenchEditorService.open(this.uri,m)}async load(){const m=this.raw,E=m.sourceReference;return(await this.session.sendRequest("source",{sourceReference:E,source:m})).body.content}get inMemory(){return this.uri.scheme===o.SCHEME}get reference(){return this.raw.sourceReference}get name(){return this.inMemory?this.raw.name||this.uri.path.base||this.uri.path.toString():this.labelProvider.getName(this.uri)}get longName(){return this.inMemory?this.name:this.labelProvider.getLongName(this.uri)}static toUri(m){if(m.sourceReference&&m.sourceReference>0)return new n.URI().withScheme(o.SCHEME).withPath(m.name).withQuery(String(m.sourceReference));if(!m.path)throw new Error("Unrecognized source type: "+JSON.stringify(m));return m.path.match(o.SCHEME_PATTERN)?new n.URI(m.path):new n.URI(n.Uri.file(m.path))}}t.DebugSource=o,o.SCHEME="debug",o.SCHEME_PATTERN=/^[a-zA-Z][a-zA-Z0-9\+\-\.]+:/},44485:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMoreDebugStackFrame=t.DebugStackFrame=t.DebugStackFrameData=void 0;const n=e(41869),r=e(44781),o=e(98650);class l{}t.DebugStackFrameData=l;class m extends l{static is(_){return!!_&&"raw"in _}constructor(_,s){super(),this.thread=_,this.session=s}get id(){return this.session.id+":"+this.thread.id+":"+this.raw.id}get source(){return this._source}update(_){Object.assign(this,_),this._source=this.raw.source&&this.session.getSource(this.raw.source)}async restart(){return this.session.capabilities.supportsRestartFrame?await this.session.sendRequest("restartFrame",{frameId:this.raw.id}):Promise.reject(new Error("restartFrame not supported"))}get canRestart(){return typeof this.raw.canRestart=="boolean"?this.raw.canRestart:!0}async open(_){if(!this.source)return;const{line:s,column:g,endLine:c,endColumn:h}=this.raw;let u={startLineNumber:s,startColumn:g,endLineNumber:s,endColumn:1/0};typeof c=="number"&&(u={...u,endLineNumber:c,endColumn:typeof h=="number"?h:1/0}),this.source.open({..._,range:u})}toArgs(_){return Object.assign({},_,{frameId:this.raw.id})}getScopes(_){return this.doGetScopes(_)}async doGetScopes(_){try{return(await this.session.sendRequest("scopes",this.toArgs())).body.scopes.map(g=>new o.DebugScope(g,this.session,_))}catch{return[]}}range(){const _=this.raw;return new r.Range(_.line,_.column,_.endLine||_.line,_.endColumn||_.column)}async getMostSpecificScopes(_){const g=(await this.doGetScopes()).filter(u=>!u.getRawScope().expensive);if(!g.some(u=>!!u.range()))return g;const h=g.filter(u=>u.range()&&r.Range.containsRange(u.range(),_)).sort((u,d)=>u.range().endLineNumber-u.range().startLineNumber-(d.range().endLineNumber-d.range().startLineNumber));return h.length?h:g}}t.DebugStackFrame=m;class E{constructor(_,s,g,c,h){this.nextFrame=_,this.frames=s,this.session=g,this.origin=c,this._open=h,this.open=()=>{this._open(this)}}get name(){return(0,n.formatLocalize)("debug.stack.showMoreAndOrigin",this.frames.length,this.origin)}get id(){var _;return`${this.session.id}:showMore:${(_=this.nextFrame)===null||_===void 0?void 0:_.id}`}}t.ShowMoreDebugStackFrame=E},7885:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugThread=t.DebugThreadData=void 0;const n=e(41869),r=e(64582),o=e(44485);class l{}t.DebugThreadData=l;class m extends l{constructor(p){super(),this.session=p,this._onDidChanged=new n.Emitter,this.onDidChanged=this._onDidChanged.event,this._frames=new Map,this.pendingFetch=Promise.resolve([])}get id(){return this.session.id+":"+this.raw.id}get threadId(){return this.raw.id}get currentFrame(){return this._currentFrame}set currentFrame(p){this._currentFrame=p,this._onDidChanged.fire()}get stopped(){return!!this.stoppedDetails}update(p){Object.assign(this,p),"stoppedDetails"in p&&this.clearFrames()}clear(){this.update({raw:this.raw,stoppedDetails:void 0})}continue(){return this.session.sendRequest("continue",this.toArgs())}stepOver(){return this.session.sendRequest("next",this.toArgs())}stepIn(){return this.session.sendRequest("stepIn",this.toArgs())}stepOut(){return this.session.sendRequest("stepOut",this.toArgs())}pause(){return this.session.sendRequest("pause",this.toArgs())}terminate(){return this.session.sendRequest("terminateThreads",{threadIds:[this.raw.id]})}get frames(){return Array.from(this._frames.values())}get topFrame(){return this.frames[0]}get frameCount(){return this._frames.size}async rawFetchFrames(p=20){return this.pendingFetch=this.pendingFetch.then(async()=>{try{const _=this.frameCount,s=await this.doFetchFrames(_,p);return this.doUpdateFrames(s)}catch{return[]}})}async fetchExceptionInfo(){var p;try{if(((p=this.stoppedDetails)===null||p===void 0?void 0:p.reason)==="exception"&&this.session.capabilities.supportsExceptionInfoRequest){const _=await this.session.exceptionInfo(this.toArgs());if(_)return{id:_.body.exceptionId,description:_.body.description,breakMode:_.body.breakMode,details:_.body.details}}}catch{return}}async fetchFrames(p=20){const _=await this.rawFetchFrames(p);return this.updateCurrentFrame(),_}async doFetchFrames(p,_){try{const s=await this.session.sendRequest("stackTrace",this.toArgs({startFrame:p,levels:_}));return this.stoppedDetails&&(this.stoppedDetails.totalFrames=s.body.totalFrames),s.body.stackFrames}catch(s){return this.stoppedDetails&&(this.stoppedDetails.framesErrorMessage=s.message),[]}}doUpdateFrames(p){const _=this.session.reportTime(r.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.session.id,threadId:this.raw.id,threadAmount:this.session.threadCount}),s=new Map(this._frames);for(const c of p){const h=c.id;if(!this._frames.has(h)){const u=new o.DebugStackFrame(this,this.session);this._frames.set(h,u),u.update({raw:c}),s.set(h,u)}}const g=[...s.values()];return _("doUpdateFrames"),g}clearFrames(){this._frames.clear(),this.updateCurrentFrame()}updateCurrentFrame(){const{currentFrame:p}=this,_=p&&p.raw.id;this.currentFrame=typeof _=="number"&&this._frames.get(_)||this._frames.values().next().value}toArgs(p){return Object.assign({},p,{threadId:this.raw.id})}}t.DebugThread=m},14190:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatch=t.IDebugWatchData=void 0;const r=e(85608).__importDefault(e(97331)),o=e(41869),l=e(64582),m=e(98650);t.IDebugWatchData=Symbol("IDebugWatchData");class E{constructor(_,s){this.manager=_,this.reporterService=s,this.toDispose=new o.DisposableCollection,this.fireDidChange=(0,r.default)(()=>this.onDidChangeEmitter.fire(),50),this.fireVariableChange=(0,r.default)(()=>this.onDidVariableChangeEmitter.fire(),50),this.fireExpressionChange=(0,r.default)(g=>this.onDidExExpressionChangeEmitter.fire(g),50),this._expressions=[],this.onDidChangeEmitter=new o.Emitter,this.onDidVariableChangeEmitter=new o.Emitter,this.onDidExExpressionChangeEmitter=new o.Emitter,this.whenReady=this.init()}get onDidChange(){return this.onDidChangeEmitter.event}get onDidVariableChange(){return this.onDidVariableChangeEmitter.event}get onDidExpressionChange(){return this.onDidExExpressionChangeEmitter.event}async getRoot(){const _=[],s=new m.DebugWatchRoot(this.manager.currentSession);for(const g of this._expressions){const c=new m.DebugWatchNode(this.manager.currentSession,g,s);await c.evaluate(),_.push(c)}return s.updatePresetChildren(_),this._root=s,this._root}async init(){this.toDispose.push(this.manager.onDidStopDebugSession(()=>{this.fireDidChange()})),this.toDispose.push(this.manager.onDidDestroyDebugSession(()=>{this.fireDidChange()})),this.toDispose.push(this.manager.onDidChangeActiveDebugSession(()=>{const _=this.manager.currentSession;_&&(_.onVariableChange(()=>{this.fireVariableChange()}),_.onDidChangeCallStack(()=>{this.fireVariableChange()}))}))}async clear(){this.updateWatchExpressions([]),this.fireExpressionChange([]),this.fireDidChange()}async updateWatchExpressions(_){this._expressions=_}addWatchExpression(_){this.reporterService.point(l.DEBUG_REPORT_NAME===null||l.DEBUG_REPORT_NAME===void 0?void 0:l.DEBUG_REPORT_NAME.DEBUG_WATCH,l.DEBUG_COMMANDS.ADD_WATCHER.id,{value:_}),this._expressions.indexOf(_)===-1&&(this._expressions.push(_),this.fireExpressionChange(this._expressions))}renameWatchExpression(_,s){const g=this._expressions.indexOf(_);g>=0&&this._expressions.splice(g,1,s),this.fireExpressionChange(this._expressions)}removeWatchExpression(_){const s=this._expressions.indexOf(_);s>=0&&this._expressions.splice(s,1),this.fireExpressionChange(this._expressions)}}t.DebugWatch=E},50755:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(88776),t),n.__exportStar(e(44485),t),n.__exportStar(e(7885),t),n.__exportStar(e(14190),t)},53741:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxWidget=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(14041)),l=e(97267),m=n.__importDefault(e(93089)),E=p=>{var _,s;const{disabled:g,formContext:c,id:h,label:u,hideLabel:d,onBlur:v,onChange:f,onFocus:a,readonly:b,value:y,registry:S,options:A,schema:T,uiSchema:w}=p,{readonlyAsDisabled:D=!0}=c,I=(0,r.getTemplate)("DescriptionFieldTemplate",S,A),O=({target:B})=>f(B.checked),M={onBlur:b?void 0:({target:B})=>v(h,B.checked),onFocus:b?void 0:({target:B})=>a(h,B.checked)},k=(s=(_=A.description)!==null&&_!==void 0?_:T.description)!==null&&s!==void 0?s:T.markdownDescription;return o.default.createElement("div",{className:m.default.checkbox_widget_control},!d&&o.default.createElement("label",{title:u,className:m.default.field_label},u),o.default.createElement(l.CheckBox,{checked:typeof y>"u"?!1:y,disabled:g||D&&b,id:h,name:h,onChange:b?void 0:O,...M,"aria-describedby":(0,r.ariaDescribedByIds)(h),label:k,className:m.default.checkbox}))};t.CheckboxWidget=E},93306:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyOfField=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(14041)),l=e(97267),m=n.__importDefault(e(93089)),E=p=>{var _,s;const{disabled:g,formContext:c,idSchema:h,onBlur:u,id:d,onChange:v,onFocus:f,options:a,placeholder:b,readonly:y,registry:S,name:A,required:T,schema:w,uiOptions:D}=p,{readonlyAsDisabled:I=!0}=c,O=({target:x})=>v(x.value===""?a.emptyValue:x.value),P=({target:x})=>u(d,x.value),R=({target:x})=>f(d,x.value),M=(s=(_=a.description)!==null&&_!==void 0?_:w.description)!==null&&s!==void 0?s:w.markdownDescription,k=(0,r.getTemplate)("TitleFieldTemplate",S,D),B=(0,r.getTemplate)("DescriptionFieldTemplate",S,D);return o.default.createElement("div",{className:m.default.any_of_widget_control},A&&o.default.createElement("div",{className:m.default.object_title},o.default.createElement(k,{id:(0,r.titleId)(h),title:A,required:T,schema:w,registry:S})),M&&o.default.createElement("div",{className:m.default.object_description},o.default.createElement(B,{id:(0,r.descriptionId)(h),description:M,schema:w,registry:S})),o.default.createElement(l.Input,{disabled:g||I&&y,onBlur:y?void 0:P,onChange:y?void 0:O,onFocus:y?void 0:R,placeholder:b,autoComplete:"off"}))};t.AnyOfField=E},32475:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayField=void 0;const n=e(85608),r=e(67030),o=n.__importStar(e(14041)),l=e(43718),m=(0,r.getDefaultRegistry)().fields.ArrayField,E=p=>{const{onChange:_}=p,s=(0,o.useCallback)(g=>{Array.isArray(g)&&_(g.map(c=>(0,l.isUndefined)(c)?"":c))},[_]);return o.default.createElement(m,{...p,onChange:s})};t.ArrayField=E},59299:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectField=void 0;const n=e(85608),r=e(67030),o=n.__importStar(e(14041)),l=e(41869),m=e(43718),E=e(64582),p=(0,r.getDefaultRegistry)().fields.ObjectField,_=s=>{const g=(0,l.useInjectable)(E.ILaunchService),{idSchema:c,onChange:h}=s;return(0,o.useEffect)(()=>{const{$id:u}=c,d=new m.Disposable;return u==="root"&&d.addDispose(g.onChangeFormData(v=>h(v))),()=>d.dispose()},[c]),o.default.createElement(p,{...s})};t.ObjectField=_},66216:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleField=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(93089)),l=m=>{const{title:E}=m;return E?r.default.createElement("label",{title:E,className:o.default.field_label},E):null};t.TitleField=l},81638:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectWidget=void 0;const n=e(85608),r=e(51632),o=n.__importStar(e(14041)),l=e(97267),m=n.__importDefault(e(93089)),E=p=>{const{schema:_,value:s,id:g,registry:c,uiOptions:h,name:u,required:d,onChange:v}=p,f=_.description,a=(0,r.getTemplate)("TitleFieldTemplate",c,h),b=(0,r.getTemplate)("DescriptionFieldTemplate",c,h),y=(0,o.useMemo)(()=>_&&_.enum?_.enum:[],[_,_.enum]);return o.default.createElement("div",{className:m.default.select_widget_control},u&&o.default.createElement("div",{className:m.default.object_title},o.default.createElement(a,{id:(0,r.titleId)(g),title:u,required:d,schema:_,registry:c})),f&&o.default.createElement("div",{className:m.default.object_description},o.default.createElement(b,{id:(0,r.descriptionId)(g),description:f,schema:_,registry:c})),o.default.createElement(l.Select,{key:g,value:s,dropdownRenderType:"absolute",onChange:v},y.map(S=>o.default.createElement(l.Option,{value:S,label:S,key:S},S))))};t.SelectWidget=E},20023:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextWidget=void 0;const n=e(85608),r=e(51632),o=n.__importStar(e(14041)),l=e(97267),m=e(64582),E=e(5905),p=n.__importDefault(e(93089)),_=s=>{const{disabled:g,formContext:c,id:h,onBlur:u,onChange:d,onFocus:v,options:f,placeholder:a,readonly:b,schema:y,value:S,registry:A,label:T,hideLabel:w,required:D,uiSchema:I,uiOptions:O}=s,{readonlyAsDisabled:P=!0}=c,R=(0,r.getTemplate)("TitleFieldTemplate",A,O),M=(0,r.getTemplate)("DescriptionFieldTemplate",A,O),k=(0,o.useMemo)(()=>typeof S!="string"?S:(0,E.parseSnippet)(S),[S]),B=({target:K})=>{d(K.value===""?f.emptyValue:K.value),u(h,K.value)},x=({target:K})=>v(h,K.value),N=(0,o.useMemo)(()=>y.type!==m.JSON_SCHEMA_TYPE.STRING&&y.type!==m.JSON_SCHEMA_TYPE.NUMBER?m.JSON_SCHEMA_TYPE.STRING:y.type,[y,y.type]),j=(0,o.useMemo)(()=>y.description||"",[y,y.description]);return o.default.createElement("div",null,!w&&T&&o.default.createElement("div",{className:p.default.object_title},o.default.createElement(R,{id:(0,r.titleId)(h),title:T,required:D,schema:y,uiSchema:I,registry:A})),j&&o.default.createElement("div",{className:p.default.object_description},o.default.createElement(M,{id:(0,r.descriptionId)(h),description:j,schema:y,uiSchema:I,registry:A})),o.default.createElement(l.Input,{disabled:g||P&&b,id:h,name:h,onBlur:b?void 0:B,onFocus:b?void 0:x,placeholder:a,type:N,value:k,className:p.default.text_widget_control,autoComplete:"off"}))};t.TextWidget=_},23434:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaunchFolderPreferenceProvider=void 0;const n=e(85608),r=e(76003),o=e(91825);let l=class extends o.FolderFilePreferenceProvider{parse(E){const p=super.parse(E);if(p!==void 0)return{launch:{...p}}}getPath(E){if(E==="launch")return[];if(E.startsWith("launch."))return[E.substr(7)]}};t.LaunchFolderPreferenceProvider=l,t.LaunchFolderPreferenceProvider=l=n.__decorate([(0,r.Injectable)()],l)},52369:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaunchPreferencesContribution=t.LaunchResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(64102),m=e(39496),E=e(57517),p=e(4983),_=e(10938),s=e(67858);let g=class{constructor(){this.scheme=p.LAUNCH_VIEW_SCHEME}provideResource(u){return{supportsRevive:!0,name:(0,o.localize)("menu-bar.title.debug"),icon:(0,o.getIcon)("debug"),uri:u}}provideResourceSubname(){return null}async shouldCloseResource(){return!0}};t.LaunchResourceProvider=g,t.LaunchResourceProvider=g=n.__decorate([(0,r.Injectable)()],g);let c=class{constructor(){this.schema=_.launchPreferencesSchema,this.name="launch"}registerResource(u){u.registerResourceProvider(this.prefResourceProvider)}registerEditorComponent(u){u.registerEditorComponent({component:s.LaunchViewContainer,uid:p.LAUNCH_VIEW_COMPONENT_ID,scheme:p.LAUNCH_VIEW_SCHEME}),u.registerEditorComponentResolver(p.LAUNCH_VIEW_SCHEME,(d,v,f)=>{f([{type:E.EditorOpenType.component,componentId:p.LAUNCH_VIEW_COMPONENT_ID}])})}registerMenus(u){u.registerMenuItem(m.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_LAUNCH_CONFIGURATION.id,iconClass:(0,o.getIcon)("open"),group:"navigation",when:`resourceScheme == ${p.LAUNCH_VIEW_SCHEME}`})}};t.LaunchPreferencesContribution=c,n.__decorate([(0,r.Autowired)(g),n.__metadata("design:type",g)],c.prototype,"prefResourceProvider",void 0),t.LaunchPreferencesContribution=c=n.__decorate([(0,o.Domain)(o.PreferenceContribution,o.PreferenceConfiguration,E.BrowserEditorContribution,l.MenuContribution)],c)},10938:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.launchPreferencesSchema=void 0;const n=e(64582);t.launchPreferencesSchema={type:"object",scope:"resource",properties:{launch:{$ref:n.launchSchemaUri,description:"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces",defaultValue:{configurations:[],compounds:[]}}}}},44888:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaunchService=void 0;const n=e(85608),r=n.__importStar(e(23304)),o=n.__importDefault(e(41263)),l=e(76003),m=e(41869),E=e(43718),p=e(14951),_=e(64582),s="configurations";let g=class{constructor(){this._onRawSchemaProperties=new E.Emitter,this.onRawSchemaProperties=this._onRawSchemaProperties.event,this._onChangeSchema=new E.Emitter,this.onChangeSchema=this._onChangeSchema.event,this._onChangeFormData=new E.Emitter,this.onChangeFormData=this._onChangeFormData.event}get rawSchemaProperties(){return this._rawSchemaProperties}get schema(){return this._schema}get formData(){return this._formData}async openLaunchConfiguration(){await this.commandService.executeCommand(m.COMMON_COMMANDS.OPEN_LAUNCH_CONFIGURATION.id)}setRawSchemaProperties(h){this._rawSchemaProperties=h,this._onRawSchemaProperties.fire(h)}nextNewSchema(h){this._schema=h,this._onChangeSchema.fire(h)}nextNewFormData(h,u=!0){this._formData=h,u&&this._onChangeFormData.fire(h)}addNewItem(h){if(h==="")return;const{properties:u}=this.rawSchemaProperties,d={...this.formData},v=u[h],{default:f,type:a}=v;(0,o.default)(d,h,f||this.getDefaultValue(a)),(0,o.default)(this.schema.properties,h,v),this.nextNewSchema(this.schema),this.nextNewFormData(d)}delItem(h){if(h==="")return;const{properties:u}=this.schema,d={...this.formData};delete d[h],delete u[h],this.nextNewSchema(this.schema),this.nextNewFormData(d)}getDefaultValue(h){switch(h){case _.JSON_SCHEMA_TYPE.ARRAY:return[];case _.JSON_SCHEMA_TYPE.BOOLEAN:return!1;case _.JSON_SCHEMA_TYPE.NULL:return null;case _.JSON_SCHEMA_TYPE.NUMBER:return 0;case _.JSON_SCHEMA_TYPE.OBJECT:return{};case _.JSON_SCHEMA_TYPE.STRING:default:return""}}async readResourceContent(h){try{const{content:u}=await this.fileSystem.readFile(h.toString());return u.toString()}catch{return""}}async modifyConfigurationsInResource(h,u,d){const v=await this.fileSystem.getFileStat(h.toString());if(v&&v.type===E.FileType.File){const{formData:f}=u,a=await this.readResourceContent(h),y=r.parse(a)[s];if(!y)return;Array.isArray(y)&&y.length-1>=d&&y.splice(d,1,f);const S=r.modify(a,[s],y,{isArrayInsertion:!1,formattingOptions:{tabSize:2,insertSpaces:!0,eol:`
28346
28350
  `}}),A=r.applyEdits(a,S);await this.fileSystem.setContent(v,A)}}};t.LaunchService=g,n.__decorate([(0,l.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],g.prototype,"fileSystem",void 0),n.__decorate([(0,l.Autowired)(E.CommandService),n.__metadata("design:type",Object)],g.prototype,"commandService",void 0),t.LaunchService=g=n.__decorate([(0,l.Injectable)()],g)},67858:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaunchViewContainer=void 0;const n=e(85608),r=e(67030),o=n.__importDefault(e(17932)),l=n.__importDefault(e(53373)),m=n.__importDefault(e(46123)),E=n.__importDefault(e(97331)),p=n.__importStar(e(14041)),_=n.__importDefault(e(19686)),s=e(97267),g=e(41869),c=e(81878),h=e(25918),u=e(1237),d=e(85084),v=e(53670),f=e(60709),a=e(70159),b=e(37499),y=e(5905),S=e(53741),A=e(93306),T=e(32475),w=e(59299),D=e(66216),I=e(81638),O=e(20023),P=n.__importDefault(e(52402)),R=e(24650),M=e(77874),k=e(27953),B=e(44115),x=e(51773),N=e(67481),j=e(5062),K=e(74447),U=e(56551),Q=({resource:Z})=>{const{uri:$}=Z,H=(0,g.useInjectable)(g.IJSONSchemaRegistry),X=(0,g.useInjectable)(b.DebugConfigurationManager),J=(0,g.useInjectable)(a.ILaunchService),re=(0,g.useInjectable)(g.CommandService),[ce,fe]=(0,p.useState)(0),[Ae,te]=(0,p.useState)(),[Le,Te]=(0,p.useState)([]);(0,p.useEffect)(()=>{const Fe=new g.Disposable;return Fe.addDispose(H.onDidChangeSchema($e=>{$e===f.launchExtensionSchemaUri&&le(H.getSchemaContributions())})),Fe.addDispose(X.onDidChange(async()=>{Ee()})),le(H.getSchemaContributions()),Ee(),()=>Fe.dispose()},[]);const oe=(0,p.useMemo)(()=>$.withScheme(g.Schemes.file),[$]),le=(0,p.useCallback)(Fe=>{const $e=Fe.schemas[f.launchExtensionSchemaUri];$e&&te($e)},[Ae]),Ee=(0,p.useCallback)(()=>{const Fe=X.all;Array.isArray(Fe)&&Te(Fe.map($e=>new R.ConfigurationItemsModel($e.configuration.name,$e.configuration)))},[]),we=(0,p.useMemo)(()=>Ae?(0,m.default)(Ae,["properties","configurations","items","defaultSnippets"])||[]:[],[Ae]),ve=(0,p.useCallback)((Fe,$e)=>{const{configuration:Se}=Fe;Se&&fe($e)},[]),be=(0,p.useMemo)(()=>{if(Le&&!(0,g.isUndefined)(ce)){const Fe=Le[ce];if(!Fe)return;const{configuration:$e,description:Se,label:ae}=Fe;return $e?{body:$e,description:Se,label:ae}:void 0}},[Le,ce]),Ce=(0,p.useCallback)(async Fe=>{const{configuration:$e}=Fe;await X.insertConfiguration(oe,$e),re.executeCommand(g.EDITOR_COMMANDS.SAVE_URI.id,oe)},[we]),Ne=(0,E.default)(async(Fe,$e)=>await J.modifyConfigurationsInResource(oe,Fe,$e),100),tt=(0,p.useCallback)(async Fe=>{const{formData:$e}=Fe;!$e||(0,g.isUndefined)(ce)||Ne(Fe,ce)},[ce,be]);return p.default.createElement(s.ComponentContextProvider,{value:{getIcon:g.getIcon,localize:g.localize}},p.default.createElement("div",{className:P.default.launch_container},p.default.createElement(c.SplitPanel,{id:"launch-container",resizeHandleClassName:P.default.devider,className:P.default.launch_panel,direction:"left-to-right"},p.default.createElement(z,{"data-sp-defaultSize":240,"data-sp-minSize":150,inputConfigurationItems:Le,snippetItems:we,onSelectedConfiguration:ve,onAddConfigurationItems:Ce,currentConfigurationIndex:ce}),p.default.createElement(Y,{"data-sp-flex":1,snippetItem:be,schemaContributions:Ae,onChange:tt}))))};t.LaunchViewContainer=Q;const z=({snippetItems:Z,onSelectedConfiguration:$,onAddConfigurationItems:H,inputConfigurationItems:X,currentConfigurationIndex:J})=>{const re=(0,g.useInjectable)(a.ILaunchService),[ce,fe]=p.default.useState(!1),[Ae,te]=(0,p.useState)(X);(0,p.useEffect)(()=>{if(Ae.length===0&&(0,g.isUndefined)(J))return;const we=Ae[J];we&&we.configuration&&re.nextNewFormData(we.configuration,!1)},[J,Ae]),(0,p.useEffect)(()=>{te([...X])},[X]);const Le=(0,p.useCallback)((we,ve)=>{$(we,ve)},[]),Te=({data:we,index:ve})=>p.default.createElement("div",{key:ve,className:(0,l.default)(P.default.configuration_item,J===ve?P.default.selected:""),onClick:()=>Le(we,ve)},p.default.createElement("div",{className:P.default.configuration_wrapper},p.default.createElement("span",{className:P.default.configuration_description},we.label))),oe=(0,p.useCallback)(we=>{fe(!1);const{label:ve}=we,be=Z.find(Fe=>Fe.label===ve);if(!be)return;const{body:Ce}=be;if(!(0,g.isObject)(Ce))return;const Ne=Object.keys(Ce).reduce((Fe,$e)=>{const Se=Ce[$e];return typeof Se=="string"?Fe[$e]=(0,y.parseSnippet)(Se):Array.isArray(Se)&&(Fe[$e]=Se.map(ae=>typeof ae=="string"?(0,y.parseSnippet)(ae):ae)),Fe},Ce),tt=new R.ConfigurationItemsModel(be.label,Ne);tt.setDescription(be.description||""),H(tt)},[Ae,Z]),le=we=>{fe(we)},Ee=(0,p.useMemo)(()=>p.default.createElement(h.MenuActionList,{data:Z.map(we=>new u.LabelMenuItemNode(we.label)),afterClick:we=>oe(we)}),[Z,Ae]);return p.default.createElement("div",{className:P.default.launch_indexes_container},p.default.createElement(_.default,{className:P.default.configuration_items_box},({width:we,height:ve})=>Ae.length===0?p.default.createElement("div",{style:{width:we},className:P.default.not_configuration_content},(0,g.localize)("debug.action.no.configuration")):p.default.createElement(s.RecycleList,{width:we,height:ve,data:Ae,template:Te})),p.default.createElement("div",{className:P.default.foot_box},p.default.createElement(s.Button,{className:P.default.button,placement:"topCenter",menu:Ee,moreVisible:ce,onVisibleChange:le},(0,g.localize)("debug.action.add.configuration"))))},G=(0,r.withTheme)({widgets:{TextWidget:O.TextWidget,SelectWidget:I.SelectWidget,CheckboxWidget:S.CheckboxWidget},fields:{ObjectField:w.ObjectField}}),Y=({snippetItem:Z,schemaContributions:$,onChange:H})=>{if(!Z)return p.default.createElement("div",{className:P.default.no_onfiguration},(0,g.localize)("debug.action.no.configuration"));const X=(0,g.useInjectable)(a.ILaunchService),J=(0,p.useMemo)(()=>{const fe=(0,d.acquireAjv)(),te=((0,m.default)($,["properties","configurations","items","oneOf"])||[]).find(Le=>{const{body:Te}=Z;return fe.validate(Le,Te)});if(te)return X.setRawSchemaProperties(te),te},[Z,$]),re=(0,p.useMemo)(()=>{if(!(J&&J.properties))return;const{label:fe,body:Ae,description:te}=Z,{properties:Le,required:Te}=J,oe=Object.keys(Ae).reduce((Ee,we)=>{const ve=Le[we];return ve?.type===f.JSON_SCHEMA_TYPE.ARRAY&&(0,g.isUndefined)(ve?.items)&&(ve.items={type:f.JSON_SCHEMA_TYPE.STRING}),Array.isArray(ve?.type)&&(ve.type=ve.type[0]||f.JSON_SCHEMA_TYPE.STRING),Array.isArray(ve?.anyOf)&&(ve.anyOf=ve.anyOf.filter(be=>Object.keys(be).length>0)),ve?.type===f.JSON_SCHEMA_TYPE.OBJECT&&!(0,g.isUndefined)(ve?.additionalProperties)&&(ve.additionalProperties={type:f.JSON_SCHEMA_TYPE.STRING}),ve?.type===f.JSON_SCHEMA_TYPE.OBJECT&&!(0,g.isUndefined)(ve?.properties)&&Object.keys(ve.properties).length>6&&(ve.properties={},ve[v.MASSIVE_PROPERTY_FLAG]=!0),!ve?.description&&ve?.markdownDescription&&(ve.description=ve.markdownDescription),Ee[we]=ve,Ee},{}),le={title:fe,type:f.JSON_SCHEMA_TYPE.OBJECT,required:Te,description:te,properties:oe};return X.nextNewSchema(le),le},[Z,J]),ce=(0,p.useCallback)(fe=>{if(!(J&&J.properties)||!(re&&re.properties))return;const{label:Ae}=fe;X.addNewItem(Ae)},[Z,J,re]);return p.default.createElement("div",{className:P.default.launch_schema_body_container},re&&J&&p.default.createElement(G,{formData:Z.body,schema:re,validator:o.default,fields:{AnyOfField:A.AnyOfField,OneOfField:A.AnyOfField,ArrayField:T.ArrayField},onChange:H,templates:{ArrayFieldTemplate:B.ArrayFieldTemplate,ArrayFieldItemTemplate:k.ArrayFieldItemTemplate,DescriptionFieldTemplate:j.DescriptionFieldTemplate,FieldTemplate:K.FieldTemplate,ObjectFieldTemplate:U.ObjectFieldTemplate,WrapIfAdditionalTemplate:M.WrapIfAdditionalTemplate,BaseInputTemplate:x.BaseInputTemplate,TitleFieldTemplate:D.TitleField,ButtonTemplates:{MoveUpButton:N.MoveUpButton,MoveDownButton:N.MoveDownButton,RemoveButton:N.RemoveButton,SubmitButton:fe=>p.default.createElement(N.AddItemButton,{...fe,onAddClick:ce}),AddButton:N.AddButton,CopyButton:N.CopyButton}}}))}},24650:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationItemsModel=void 0;const n=e(43718);class r{get uniqueID(){return this._uniqueID}get description(){return this._description}constructor(l,m){this.label=l,this.configuration=m,this._uniqueID=(0,n.uuid)(6)}setDescription(l){this._description=l}}t.ConfigurationItemsModel=r},77874:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapIfAdditionalTemplate=void 0;const n=e(85608),r=e(51632),o=n.__importStar(e(14041)),l=e(97267),m=e(41869),E=e(43718),p=e(64582),_=e(44888),s=n.__importDefault(e(40043)),g=c=>{const{children:h,classNames:u,style:d,disabled:v,id:f,label:a,onKeyChange:b,onDropPropertyClick:y,readonly:S,registry:A,schema:T}=c,w=(0,m.useInjectable)(_.LaunchService),{readonlyAsDisabled:D=!0}=A.formContext,{templates:I}=A,{RemoveButton:O}=I.ButtonTemplates,P=r.ADDITIONAL_PROPERTY_FLAG in T,R=p.MASSIVE_PROPERTY_FLAG in T,M=(0,r.getTemplate)("TitleFieldTemplate",A),k=(0,r.getTemplate)("DescriptionFieldTemplate",A),B=(0,o.useMemo)(()=>T.description||T.markdownDescription,[T]),x=(0,o.useCallback)(async()=>{await w.openLaunchConfiguration()},[]);if(R)return o.default.createElement("div",{className:u,style:d},a&&o.default.createElement("div",{className:s.default.object_title},o.default.createElement(M,{id:(0,r.titleId)(f),title:a,schema:T,registry:A})),B&&o.default.createElement("div",{className:s.default.object_description},o.default.createElement(k,{id:(0,r.descriptionId)(f),description:B,schema:T,registry:A})),o.default.createElement("div",{className:s.default.control_wrap},o.default.createElement("a",{onClick:x},(0,E.localize)("debug.launch.view.edit.inLaunchJson"))));if(!P)return o.default.createElement("div",{className:u,style:d},h);const N=(0,o.useCallback)(({target:j})=>b(j.value),[b]);return o.default.createElement("div",{className:u,style:d},o.default.createElement("div",{className:s.default.additional_field_template},o.default.createElement("div",{className:s.default.form_additional_container},o.default.createElement("div",{className:s.default.form_additional},o.default.createElement(l.Input,{className:s.default.form_control,defaultValue:a,value:a,placeholder:(0,E.formatLocalize)("debug.launch.view.template.input.placeholder","Key"),disabled:v||D&&S,id:`${f}-key`,name:`${f}-key`,onBlur:S?void 0:N,type:"text"})),o.default.createElement("div",{className:s.default.form_additional_children},h),o.default.createElement(O,{disabled:v||S,onClick:y(a),registry:A}))))};t.WrapIfAdditionalTemplate=g},27953:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayFieldItemTemplate=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=n.__importDefault(e(40043)),m={width:"100%"},E={width:"calc(100% / 4)"},p=_=>{const{className:s,children:g,disabled:c,hasCopy:h,hasMoveDown:u,hasMoveUp:d,hasRemove:v,hasToolbar:f,index:a,onCopyIndexClick:b,onDropIndexClick:y,onReorderClick:S,readonly:A,registry:T}=_,{CopyButton:w,MoveDownButton:D,MoveUpButton:I,RemoveButton:O}=T.templates.ButtonTemplates,P=(0,o.useMemo)(()=>b(a),[a,b]),R=(0,o.useMemo)(()=>y(a),[a,y]),M=(0,o.useMemo)(()=>S(a,a-1),[a,S]),k=(0,o.useMemo)(()=>S(a,a+1),[a,S]);return o.default.createElement("div",{key:`array-item-${a}`,className:(0,r.default)(s,l.default.array_field_item_template)},o.default.createElement("div",{className:l.default.control_field},o.default.cloneElement(g,{name:""})),f&&o.default.createElement("div",{className:l.default.toolbar},o.default.createElement("div",{style:m},(d||u)&&o.default.createElement(I,{disabled:c||A||!d,onClick:M,style:E,registry:T}),(d||u)&&o.default.createElement(D,{disabled:c||A||!u,onClick:k,style:E,registry:T}),h&&o.default.createElement(w,{disabled:c||A,onClick:P,style:E,registry:T}),v&&o.default.createElement(O,{disabled:c||A,onClick:R,style:E,registry:T}))))};t.ArrayFieldItemTemplate=p},44115:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayFieldTemplate=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(53373)),l=n.__importDefault(e(14041)),m=n.__importDefault(e(40043)),E=p=>{const{canAdd:_,className:s,disabled:g,formContext:c,idSchema:h,items:u,onAddClick:d,readonly:v,registry:f,required:a,schema:b,title:y,uiSchema:S}=p,A=(0,r.getUiOptions)(S),T=(0,r.getTemplate)("ArrayFieldDescriptionTemplate",f,A),w=(0,r.getTemplate)("ArrayFieldItemTemplate",f,A),D=(0,r.getTemplate)("ArrayFieldTitleTemplate",f,A),{ButtonTemplates:{AddButton:I}}=f.templates;return l.default.createElement("fieldset",{className:(0,o.default)(s),id:h.$id},l.default.createElement("div",{className:m.default.array_field_template},(A.title||y)&&l.default.createElement("div",{className:m.default.array_item_label},l.default.createElement(D,{idSchema:h,required:a,title:A.title||y,schema:b,uiSchema:S,registry:f})),(A.description||b.description)&&l.default.createElement("div",{className:m.default.array_item_description},l.default.createElement(T,{description:A.description||b.description,idSchema:h,schema:b,uiSchema:S,registry:f})),u&&u.map(({key:O,...P})=>l.default.createElement(w,{key:O,...P})),_&&l.default.createElement("div",{className:m.default.array_item_add},l.default.createElement(I,{disabled:g||v,onClick:d,registry:f}))))};t.ArrayFieldTemplate=E},51773:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseInputTemplate=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(14041)),l=e(97267),m={width:"100%"},E=p=>{const{disabled:_,formContext:s,id:g,onBlur:c,onChange:h,onChangeOverride:u,onFocus:d,options:v,placeholder:f,readonly:a,schema:b,value:y,type:S}=p,A=(0,r.getInputProps)(b,S,v,!1),{readonlyAsDisabled:T=!0}=s,w=R=>h(R),D=u||(({target:R})=>h(R.value===""?v.emptyValue:R.value)),I=({target:R})=>c(g,R.value),O=({target:R})=>d(g,R.value),P=o.default.createElement(l.Input,{disabled:_||T&&a,id:g,name:g,onBlur:a?void 0:I,onChange:a?void 0:D,onFocus:a?void 0:O,placeholder:f,style:m,list:b.examples?(0,r.examplesId)(g):void 0,...A,value:y,"aria-describedby":(0,r.ariaDescribedByIds)(g,!!b.examples)});return o.default.createElement(o.default.Fragment,null,P,Array.isArray(b.examples)&&o.default.createElement("datalist",{id:(0,r.examplesId)(g)},b.examples.concat(b.default&&!b.examples.includes(b.default)?[b.default]:[]).map(R=>o.default.createElement("option",{key:R,value:R}))))};t.BaseInputTemplate=E},67481:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddItemButton=t.CopyButton=t.AddButton=t.RemoveButton=t.MoveDownButton=t.MoveUpButton=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(97267),l=e(81139),m=e(41869),E=e(25918),p=e(1237),_=e(43718),s=e(64582),g=n.__importDefault(e(40043)),c=a=>r.default.createElement(o.Button,{...a,type:"primary",icon:l.defaultIconfont.arrowup},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont.arrowup)}));t.MoveUpButton=c;const h=a=>r.default.createElement(o.Button,{...a,type:"primary",icon:l.defaultIconfont.arrowdown},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont.arrowdown)}));t.MoveDownButton=h;const u=a=>r.default.createElement(o.Button,{...a,type:"danger",icon:l.defaultIconfont.delete},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont.delete)}));t.RemoveButton=u;const d=a=>r.default.createElement(o.Button,{...a,type:"primary",icon:l.defaultIconfont.plus},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont.plus)})," ",(0,_.localize)("debug.launch.view.template.button.addItem"));t.AddButton=d;const v=a=>r.default.createElement(o.Button,{...a,type:"primary",icon:l.defaultIconfont["file-copy"]},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont["file-copy"])}));t.CopyButton=v;const f=a=>{const{registry:{rootSchema:b},onAddClick:y}=a,S=(0,m.useInjectable)(s.ILaunchService),[A,T]=r.default.useState(!1),[w,D]=r.default.useState([]),{rawSchemaProperties:I}=S,O=(0,r.useCallback)(M=>T(M),[]),P=(0,r.useCallback)(M=>{T(!1),y(M)},[]),R=(0,r.useCallback)(()=>{const{properties:M}=I,{properties:k}=b;if(!M||!k)return;const B=Object.keys(M).filter(x=>!Object.hasOwn(k,x)).map(x=>new p.LabelMenuItemNode(x));D(B)},[b,I]);return(0,r.useEffect)(()=>{const M=new _.Disposable;return M.addDispose(S.onChangeSchema(()=>{requestAnimationFrame(()=>{R()})})),R(),()=>M.dispose()},[I,b]),r.default.createElement(o.Button,{type:"secondary",icon:l.defaultIconfont.plus,className:g.default.add_new_field,menu:r.default.createElement(E.MenuActionList,{afterClick:P,data:w,style:{maxHeight:600}}),moreVisible:A,onVisibleChange:O},r.default.createElement("span",{className:(0,o.getIcon)(l.defaultIconfont.plus)})," ",(0,_.localize)("debug.launch.view.template.button.submit"))};t.AddItemButton=f},5062:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DescriptionFieldTemplate=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(40043)),l=m=>{const{id:E,schema:p}=m,_=(0,r.useMemo)(()=>{var s;return(s=p.description)!==null&&s!==void 0?s:p.markdownDescription},[p,p.description,p.markdownDescription]);return _?r.default.createElement("span",{id:E,className:o.default.description_field_template},_):null};t.DescriptionFieldTemplate=l},74447:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldTemplate=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(53373)),l=n.__importDefault(e(14041)),m=E=>{const{classNames:p,style:_,children:s,id:g,schema:c,label:h,hidden:u,formContext:d,uiSchema:v,registry:f,disabled:a,onDropPropertyClick:b,onKeyChange:y,required:S,readonly:A}=E,{wrapperStyle:T}=d,w=(0,r.getUiOptions)(v),D=(0,r.getTemplate)("WrapIfAdditionalTemplate",f,w);return u?null:l.default.createElement(D,{classNames:p,style:_,disabled:a,id:g,label:h,onDropPropertyClick:b,onKeyChange:y,readonly:A,required:S,schema:c,uiSchema:v,registry:f},g==="root"?s:l.default.createElement("div",{className:(0,o.default)(p),style:T},s))};t.FieldTemplate=m},56551:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectFieldTemplate=void 0;const n=e(85608),r=e(51632),o=n.__importDefault(e(53373)),l=n.__importStar(e(14041)),m=e(97267),E=e(41869),p=e(70159),_=n.__importDefault(e(40043)),s=c=>{const{schema:h,uiSchema:u,formData:d}=c,{properties:v}=h;return v?Object.keys(v).length===0?!0:Object.values(v).some(f=>f[r.ADDITIONAL_PROPERTY_FLAG])?(0,r.canExpand)(h,u,d):!1:!1},g=c=>{const{schema:h,uiSchema:u,required:d,registry:v,idSchema:f,title:a,disabled:b,readonly:y,properties:S,onAddClick:A}=c,T=(0,E.useInjectable)(p.ILaunchService),w=(0,r.getUiOptions)(u),D=(0,r.getTemplate)("TitleFieldTemplate",v,w),I=(0,r.getTemplate)("DescriptionFieldTemplate",v,w),{ButtonTemplates:{AddButton:O}}=v.templates,P=(0,l.useMemo)(()=>{var x;return(x=c.description)!==null&&x!==void 0?x:h.markdownDescription},[c.description,h]),R=(0,l.useMemo)(()=>f.$id==="root"?(0,o.default)(_.default.object_field_container,_.default.root_object_field_container):_.default.object_field_container,[f]),M=(0,l.useMemo)(()=>f.$id==="root"?(0,o.default)(_.default.property_wrapper,_.default.root_property_wrapper):_.default.property_wrapper,[f]),k=(0,l.useCallback)(x=>{const{name:N}=x;T.delItem(N)},[]),B=(0,l.useCallback)(x=>{const{rawSchemaProperties:N}=T;if(!N)return null;const j=N.required||[];return l.default.createElement("div",{key:x.name,className:M,onKeyDown:K=>{K.key===E.Key.ENTER.code&&(K.preventDefault(),K.stopPropagation())}},x.content,j.includes(x.name)||f.$id!=="root"?null:l.default.createElement("div",{className:_.default.wrapper_delete,onClick:()=>k(x)},l.default.createElement("span",{className:(0,o.default)((0,m.getIcon)("close-circle"),_.default.close_icon)})))},[S,T.rawSchemaProperties,f]);return l.default.createElement("div",{className:_.default.object_field_template},l.default.createElement("fieldset",null,l.default.createElement("div",{className:R},a&&l.default.createElement("div",{className:_.default.object_title},l.default.createElement(D,{id:(0,r.titleId)(f),title:a,required:d,schema:h,uiSchema:u,registry:v})),P&&l.default.createElement("div",{className:_.default.object_description},l.default.createElement(I,{id:(0,r.descriptionId)(f),description:P,schema:h,uiSchema:u,registry:v})),S.filter(x=>!x.hidden).map(x=>B(x))),s(c)&&l.default.createElement(O,{onClick:A(h),disabled:b||y,registry:v})))};t.ObjectFieldTemplate=g},81450:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnsiConsoleNode=t.TreeWithLinkWrapper=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=n.__importDefault(e(43144)),m=e(97267),E=e(41869),p=n.__importDefault(e(80315)),_=c=>{if(typeof c>"u")return(0,r.default)(p.default.variable_repl_text,p.default.info);switch(c){case E.MessageType.Error:return(0,r.default)(p.default.variable_repl_text,p.default.error);case E.MessageType.Warning:return(0,r.default)(p.default.variable_repl_text,p.default.warn);case E.MessageType.Info:return(0,r.default)(p.default.variable_repl_text,p.default.info);default:return(0,r.default)(p.default.variable_repl_text,p.default.info)}};class s extends o.default.Component{componentDidMount(){if(this.props.html){const h=l.default.findDOMNode(this);h?.appendChild(this.props.html)}}render(){return o.default.createElement("code",{className:this.props.className})}}t.TreeWithLinkWrapper=s;class g extends m.TreeNode{get parent(){return this._compositeTreeNode}static is(h){return!!h&&!!h.template}constructor(h,u,d,v,f,a,b){var y;super({},u),this.description=h,this._compositeTreeNode=u,this.linkDetector=d,this.ansiNode=v,this.severity=f,this.source=a,this.line=b,this.linkDetectorHTML=(y=this.ansiNode)!==null&&y!==void 0?y:this.linkDetector.linkify(this.description)}get name(){return`log_${this.id}`}get el(){return this.linkDetectorHTML}get template(){return()=>o.default.createElement(s,{className:_(this.severity),html:this.linkDetectorHTML})}}t.AnsiConsoleNode=g},98650:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugHoverVariableRoot=t.DebugVariableRoot=t.DebugWatchRoot=t.DebugConsoleRoot=t.DebugConsoleNode=t.DebugConsoleVariableContainer=t.DebugWatchNode=t.DebugScope=t.DebugVariableContainer=t.DebugVariable=t.DebugVirtualVariable=t.ExpressionContainer=t.ExpressionNode=t.DebugConsoleTreeService=t.ExpressionTreeService=void 0;const n=e(97267),r=e(41869),o=e(43718),l=e(55121),m=e(44781),E="undefined";class p{constructor(w,D,I){this.session=w,this.source=D,this.line=I}async resolveChildren(w){var D;return S.is(w)&&!w.variablesReference&&!w.presetChildren?await((D=this.session)===null||D===void 0?void 0:D.getScopes(w))||[]:await this.doResolve(w)}async doResolve(w){const D=[];if(!w)return D;if(Array.isArray(w.presetChildren))return w.presetChildren;if(!this.session||this.session.terminated)return D;const{variablesReference:I,startOfVariables:O,indexedVariables:P,namedVariables:R}=w;if(R)return await this.fetch(D,I,"named",w),D;if(P){let M=g.BASE_CHUNK_SIZE;for(;P>M*g.BASE_CHUNK_SIZE;)M*=g.BASE_CHUNK_SIZE;if(P>M){const k=Math.ceil(P/M);for(let B=0;B<k;B++){const x=w.startOfVariables+B*M,N=Math.min(M,P-B*M);D.push(new c({session:this.session,variablesReference:w.variablesReference,namedVariables:0,indexedVariables:N,startOfVariables:x,name:`[${x}..${x+N-1}]`},w))}return D}}return await this.fetch(D,I,"indexed",w,O,P),D}async fetch(w,D,I,O,P,R){try{const M=await this.session.sendRequest("variables",{variablesReference:D,filter:I,start:P,count:R}),{variables:k}=M.body;for(const B of k)B.variablesReference?w.push(new u(this.session,B,O,this.source,this.line)):w.push(new h(this.session,B,O))}catch(M){w.push({severity:r.MessageType.Error,visible:!!M.message,message:M.message})}}sortComparator(w,D){return(0,o.isDefined)(w.variablesReference)&&(0,o.isDefined)(D.variablesReference)?w.variablesReference-D.variablesReference:w.constructor===D.constructor?w.name>D.name?1:w.name<D.name?-1:0:n.CompositeTreeNode.is(w)?1:n.CompositeTreeNode.is(D)?-1:0}}t.ExpressionTreeService=p;class _ extends p{sortComparator(w,D){return w?D?0:-1:1}}t.DebugConsoleTreeService=_;class s extends n.TreeNode{constructor(w,D){var I;super(new p(w.session,w.source,w.line),D,void 0,{name:String((I=w.session)===null||I===void 0?void 0:I.id)}),this.variablesReference=w.variablesReference||0,this.namedVariables=w.namedVariables,this.indexedVariables=w.indexedVariables,this.memoryReference=w.memoryReference,this.source=w.source,this.line=w.line}get badge(){return this.source?`${this.source.name}:${this.line}`:""}get displayName(){return this.name}}t.ExpressionNode=s;class g extends n.CompositeTreeNode{constructor(w,D,I,O){var P;super(I||new p(w.session,w.source,w.line),D,void 0,{name:O||((P=w.session)===null||P===void 0?void 0:P.id)}),this.session=w.session,this.variablesReference=w.variablesReference||0,this.namedVariables=w.namedVariables,this.indexedVariables=w.indexedVariables,this.startOfVariables=w.startOfVariables||0,this.memoryReference=w.memoryReference,this.source=w.source,this.line=w.line}get badge(){return this.source?`${this.source.name}:${this.line}`:""}get displayName(){return this.name}get path(){return this.parent?new l.Path(this.parent.path).join(String(this.id)).toString():String(this.id)}}t.ExpressionContainer=g,g.BASE_CHUNK_SIZE=100;class c extends g{constructor(w,D){super(w,D,void 0,w.name),this._name=w.name}}t.DebugVirtualVariable=c;class h extends s{constructor(w,D,I){super({session:w,variablesReference:D.variablesReference,namedVariables:D.namedVariables,indexedVariables:D.indexedVariables,memoryReference:D.memoryReference},I),this.session=w,this.variable=D}get variableMenuContext(){return this.variable.__vscodeVariableMenuContext||""}toDebugProtocolObject(){return{name:this.name,variablesReference:this.variable.variablesReference||0,value:this.value,evaluateName:this.evaluateName,memoryReference:this.memoryReference}}get name(){if(this.variable){if(this.variable.name)return this.variable.name;if(this.variable.evaluateName){const w=/\["(.+)"]/.exec(this.variable.evaluateName);if(w)return w[1];{const D=this.variable.evaluateName.split(".");return D[D.length-1]}}}return String(this.id)}get evaluateName(){var w;return((w=this.variable)===null||w===void 0?void 0:w.evaluateName)||""}get description(){return this.value||E}get value(){return this._value||this.variable.value}get variableType(){return this._type||this.variable.type}get supportSetVariable(){return!!this.session&&!!this.session.capabilities.supportsSetVariable}async setValue(w){if(!this.session||this.session.terminated)return;const{name:D,parent:I}=this,O=I.variablesReference;try{const P=await this.session.sendRequest("setVariable",{variablesReference:O,name:D,value:w});this._value=P.body.value,this._type=P.body.type,this.variablesReference=P.body.variablesReference||0,this.namedVariables=P.body.namedVariables,this.indexedVariables=P.body.indexedVariables}catch(P){throw P}}getRawScope(){let w=this.parent;for(;w!==void 0&&!(w instanceof d);)w=w?.parent;return w.getRawScope()}}t.DebugVariable=h;class u extends g{constructor(w,D,I,O,P){super({session:w,variablesReference:D.variablesReference,namedVariables:D.namedVariables,indexedVariables:D.indexedVariables,memoryReference:D.memoryReference,source:O,line:P},I,void 0,D?.name||(D.evaluateName?/\["(.+)"]/.exec(D.evaluateName)?/\["(.+)"]/.exec(D.evaluateName)[1]:D.evaluateName.split(".")[D.evaluateName.split(".").length-1]:"")),this.session=w,this.variable=D}get variableMenuContext(){return this.variable.__vscodeVariableMenuContext||""}toDebugProtocolObject(){return{name:this.name,variablesReference:this.variable.variablesReference||0,value:this.value,evaluateName:this.evaluateName,memoryReference:this.memoryReference}}get name(){if(this.variable){if(this.variable.name)return this.variable.name;if(this.variable.evaluateName){const w=/\["(.+)"]/.exec(this.variable.evaluateName);if(w)return w[1];{const D=this.variable.evaluateName.split(".");return D[D.length-1]}}}return this.variable.type||String(this.id)}get evaluateName(){var w;return((w=this.variable)===null||w===void 0?void 0:w.evaluateName)||""}get description(){return this._value||this.variable.value||E}get tooltip(){return this.variableType||this.description}get variableType(){return this._variableType||this.variable.type}get value(){return this._value||this.variable.value}get supportSetVariable(){return!!this.session&&!!this.session.capabilities.supportsSetVariable}async setValue(w){if(!this.session||this.session.terminated)return;const{name:D,parent:I}=this;if(!I)return;const O=I.variablesReference,P=await this.session.sendRequest("setVariable",{variablesReference:O,name:D,value:w});this._value=P.body.value,this._variableType=P.body.type,this.variablesReference=P.body.variablesReference||0,this.namedVariables=P.body.namedVariables,this.indexedVariables=P.body.indexedVariables}getRawScope(){let w=this.parent;for(;w!==void 0&&!(w instanceof d);)w=w?.parent;return w.getRawScope()}}t.DebugVariableContainer=u,u.BOOLEAN_REGEX=/^true|false$/i,u.STRING_REGEX=/^(['"]).*\1$/;class d extends g{constructor(w,D,I){super({session:D,variablesReference:w.variablesReference,namedVariables:w.namedVariables,indexedVariables:w.indexedVariables},I,void 0,w.name),this.raw=w,this.session=D}getRawScope(){return this.raw}range(){const w=this.getRawScope();return w.line&&w.column&&w.endLine&&w.endColumn?new m.Range(w.line,w.column,w.endLine,w.endColumn):void 0}}t.DebugScope=d;class v extends g{static is(w){return!!w&&!!w.expression}constructor(w,D,I){super({session:w},I,void 0,D),this.session=w,this.expression=D}get description(){return this._available?this._description||E:v.notAvailable}get available(){return this._available}getRawWatch(){return this.raw}async evaluate(w="watch"){if(this.session)try{this._available=!0;const{expression:D}=this,I=await this.session.evaluate(D,w);I&&(this.name=this.expression,this._description=I.result,this.variablesReference=I.variablesReference,this.namedVariables=I.namedVariables,this.indexedVariables=I.indexedVariables,this.memoryReference=I.memoryReference,this.raw=I)}catch(D){this.name=this.expression,this._description=D.message}else this.name=this.expression,this._available=!1}async getClipboardValue(){if(this.session&&this.session.capabilities.supportsValueFormattingOptions)try{const{expression:w}=this,D=await this.session.evaluate(w,"clipboard");if(D)return D.result}catch{return""}else return this._description}}t.DebugWatchNode=v,v.notAvailable=(0,r.localize)("debug.watch.notAvailable");class f extends u{static is(w){return!!w&&w.uniqueID===f.uniqueID}get uniqueID(){return f.uniqueID}get description(){return this.variable?this.variable.value:E}get tooltip(){return this.variable?this.variable.value:""}}t.DebugConsoleVariableContainer=f,f.uniqueID="DebugConsoleVariable";class a extends g{static is(w){return!!w&&!!w.expression}get available(){return this._available}constructor(w,D,I){super(w,I,void 0,D),this.options=w,this.expression=D,this._description=E}get description(){return this._description}async evaluate(w="repl"){const{expression:D}=this;if(this.session)try{if(typeof D=="string"&&D){const I=await this.session.evaluate(D,w);I&&(this.name=D,this._description=I.result,this.variablesReference=I.variablesReference,this.namedVariables=I.namedVariables,this.indexedVariables=I.indexedVariables,this.memoryReference=I.memoryReference,this._available=!0)}else if(this.options.variablesReference){const I=await this.session.variables(this.options.variablesReference);I.variables.length&&(this.name=I.variables.map(O=>O.value).join(`
28347
- `),this._description="",this._available=!0)}}catch(I){this._available=!1,this.name=D,this._description=I.message}else this._available=!1,this.name=D}}t.DebugConsoleNode=a;class b extends g{static is(w){return!!w&&!w.parent}constructor(w,D=[]){super({session:w},void 0,new _(w)),this.session=w,this.presetChildren=D}get expanded(){return!0}updatePresetChildren(w){this.presetChildren=w}}t.DebugConsoleRoot=b;class y extends g{static is(w){return!!w&&!w.parent}constructor(w,D=[]){super({session:w},void 0),this.session=w,this.presetChildren=D}get expanded(){return!0}updatePresetChildren(w){this.presetChildren=w}}t.DebugWatchRoot=y;class S extends u{static is(w){return!!w&&!w.parent}constructor(w){super(w,{},void 0),this.session=w}get expanded(){return!0}}t.DebugVariableRoot=S;class A extends g{constructor(w,D){super({session:D}),this.expression=w,this.session=D,this._value="",this._available=!1}get name(){return this._value}get available(){return this._available}async evaluate(w="repl"){if(this.session)try{const{expression:D}=this,I=await this.session.evaluate(D,w);I&&(this._value=I.result,this._available=!0,this.variablesReference=I.variablesReference,this.namedVariables=I.namedVariables,this.indexedVariables=I.indexedVariables,this.memoryReference=I.memoryReference)}catch(D){this._value=D.message,this._available=!1}else this._value="Please start a debug session to evaluate",this._available=!1}}t.DebugHoverVariableRoot=A},16170:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(98650),t),n.__exportStar(e(81450),t)},57332:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointsTreeNode=void 0;const n=e(43718),r=e(99797);class o{constructor(m,E){this.label="",this._onDescriptionChange=new n.Emitter;const{breakpoint:p}=E;this._uri=m,this.label=(0,r.isDebugBreakpoint)(p)?m.displayName:"",this.rawData=E,this.rawData.onDescriptionChange=this._onDescriptionChange.event}get breakpoint(){return this.rawData.breakpoint}get uri(){return this._uri}fireDescriptionChange(m){this.rawData.description=m,this._onDescriptionChange.fire(m)}}t.BreakpointsTreeNode=o},97319:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugBreakpointsService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26542),m=e(54414),E=e(57517),p=e(28423),_=e(51500),s=e(26199),g=e(64582),c=e(26296),h=e(99797),u=e(38029),d=e(32756),v=e(57332);let f=class extends o.WithEventBus{get inputEditor(){return this._inputEditor}constructor(){super(),this._onDidChangeBreakpointsTreeNode=new o.Emitter,this.onDidChangeBreakpointsTreeNode=this._onDidChangeBreakpointsTreeNode.event,this._onDidFocusedBreakpoints=new o.Emitter,this.onDidFocusedBreakpoints=this._onDidFocusedBreakpoints.event,this.treeNodeMap=new Map,this.enable=(0,p.observableValue)(this,!1),this.inDebugMode=(0,p.observableValue)(this,!1),this.init()}launchFocusedBreakpoints(b){this._onDidFocusedBreakpoints.fire(b)}async init(){await this.updateRoots(),this.workspaceService.onWorkspaceChanged(async()=>{this.updateRoots(),this.updateBreakpoints()}),this.breakpoints.onDidChangeBreakpoints(()=>{this.updateBreakpoints()}),this.breakpoints.onDidChangeExceptionsBreakpoints(()=>{this.updateBreakpoints()}),this.breakpoints.whenReady.then(()=>{this.updateBreakpoints()}),this.contextKeyService.onDidChangeContext(b=>{b.payload.affectsSome(new Set([g.CONTEXT_IN_DEBUG_MODE_KEY]))&&(0,p.transaction)(y=>{this.inDebugMode.set(this.contextKeyService.getContextValue(g.CONTEXT_IN_DEBUG_MODE_KEY)||!1,y)})})}getBreakpointDecoration(b,y=!1,S=!0){return new h.DebugDecorator().getDecoration(b,y,S)}onRenameFile(b){this.removeBreakpoints(b.payload.oldUri)}onDeleteFile(b){this.removeBreakpoints(b.payload.oldUri)}removeBreakpoints(b){this.breakpoints.cleanAllMarkers(b),this.updateBreakpoints()}async updateRoots(){(0,p.transaction)(y=>{this.enable.set(this.breakpoints.breakpointsEnabled,y),this.inDebugMode.set(this.contextKeyService.getContextValue(g.CONTEXT_IN_DEBUG_MODE_KEY)||!1,y)});const b=await this.workspaceService.roots;this.roots=b.map(y=>new o.URI(y.uri))}toggleBreakpointEnable(b){if((0,h.isDebugBreakpoint)(b)){const y=this.breakpoints.getBreakpoint(o.URI.parse(b.uri),{lineNumber:b.raw.line,column:b.raw.column});y&&(y.enabled=!y.enabled,this.breakpoints.updateBreakpoint(y))}(0,h.isDebugExceptionBreakpoint)(b)&&this.breakpoints.updateExceptionBreakpoints(b.filter,!b.default)}extractNodes(b){if((0,h.isDebugBreakpoint)(b))return{id:b.id,name:"",description:"",onDescriptionChange:o.Event.None,breakpoint:b};if((0,h.isDebugExceptionBreakpoint)(b))return{id:b.filter,name:b.label,onDescriptionChange:o.Event.None,description:"",breakpoint:b}}async updateBreakpoints(){await this.breakpoints.whenReady,this.treeNodeMap.clear(),[...this.breakpoints.getExceptionBreakpoints(),...this.breakpoints.getBreakpoints()].forEach(y=>{const S=this.extractNodes(y);if(S){const A=(0,h.isDebugBreakpoint)(y)?o.URI.parse(y.uri):h.EXCEPTION_BREAKPOINT_URI,T=this.treeNodeMap.get(A.toString())||[];T.push(new v.BreakpointsTreeNode(A,S)),this.treeNodeMap.set(A.toString(),T)}}),this._onDidChangeBreakpointsTreeNode.fire(this.treeNodeMap)}async getDocumentModelRef(b){const y=this.documentService.getModelReference(b);return y||this.documentService.createModelReference(b)}async refreshBreakpointsInfo(){const b=this.treeNodeMap.values(),y=Array.from(b).reduce((S,A)=>S.concat(A),[]);for await(const S of y){const{rawData:A,uri:T}=S;if((0,h.isDebugBreakpoint)(A.breakpoint)){const w=A.breakpoint.raw.line,D=await this.getDocumentModelRef(T);if(!D)return;const I=D.instance.getMonacoModel(),O=I.getLineCount();if(w>O)return;const P=I.getLineContent(w);S.fireDescriptionChange(P.trim()),D.dispose()}}}removeAllBreakpoints(){this.breakpoints.clearBreakpoints()}delBreakpoint(b){this.breakpoints.delBreakpoint(b)}toggleBreakpoints(){this.breakpoints.breakpointsEnabled=!this.breakpoints.breakpointsEnabled,(0,p.transaction)(b=>{this.enable.set(this.breakpoints.breakpointsEnabled,b)}),this.enable.get()?this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"enabled"):this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"unenabled")}async createBreakpointInput(b){this._inputEditor=await this.editorService.createCodeEditor(b,{...(0,m.getSimpleEditorOptions)(),lineHeight:21,scrollbar:{horizontal:"hidden",vertical:"hidden",handleMouseWheel:!1},acceptSuggestionOnEnter:"on",renderIndentGuides:!1});const S=(await this.documentService.createModelReference(new o.URI("debug/breakpoint/expression/input").withScheme(o.Schemes.walkThroughSnippet))).instance.getMonacoModel();return S.updateOptions({tabSize:2}),this._inputEditor.monacoEditor.setModel(S),Promise.resolve(this.inputEditor)}};t.DebugBreakpointsService=f,n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],f.prototype,"model",void 0),n.__decorate([(0,r.Autowired)(_.IWorkspaceService),n.__metadata("design:type",Object)],f.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(h.BreakpointManager),n.__metadata("design:type",h.BreakpointManager)],f.prototype,"breakpoints",void 0),n.__decorate([(0,r.Autowired)(c.IDebugSessionManager),n.__metadata("design:type",u.DebugSessionManager)],f.prototype,"sessions",void 0),n.__decorate([(0,r.Autowired)(l.LabelService),n.__metadata("design:type",l.LabelService)],f.prototype,"labelProvider",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],f.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(m.EditorCollectionService),n.__metadata("design:type",m.EditorCollectionService)],f.prototype,"editorService",void 0),n.__decorate([(0,r.Autowired)(E.IEditorDocumentModelService),n.__metadata("design:type",Object)],f.prototype,"documentService",void 0),n.__decorate([(0,o.OnEvent)(s.WorkspaceEditDidRenameFileEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.WorkspaceEditDidRenameFileEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onRenameFile",null),n.__decorate([(0,o.OnEvent)(s.WorkspaceEditDidDeleteFileEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.WorkspaceEditDidDeleteFileEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onDeleteFile",null),t.DebugBreakpointsService=f=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],f)},85347:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointItem=t.BreakpointFileItem=t.DebugBreakpointView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),m=e(41869),E=n.__importStar(e(20868)),p=e(64582),_=e(99797),s=n.__importDefault(e(96547)),g=e(97319),c=({viewState:d})=>{const v=(0,m.useInjectable)(g.DebugBreakpointsService),f=(0,o.useRef)(!1),[a,b]=(0,o.useState)([]),{enable:y,inDebugMode:S,toggleBreakpointEnable:A}=v,T=(0,m.useAutorun)(y),w=(0,m.useAutorun)(S),D=O=>{const{data:P,inDebugMode:R,breakpointEnabled:M}=O;if((0,_.isDebugBreakpoint)(P.breakpoint)){if(!(R?(0,_.isDebugBreakpoint)(P.breakpoint)&&(0,_.isRuntimeBreakpoint)(P.breakpoint):!0))return"sumi-debug-breakpoint-unverified";const{className:B}=v.getBreakpointDecoration(P.breakpoint,R,M);return B}return""},I=(0,o.useCallback)(O=>{const{roots:P}=v,R=[];O.forEach(([M,k],B)=>{var x;if(_.EXCEPTION_BREAKPOINT_URI.toString()===M)k.forEach((j,K)=>{R.push({label:"",order:B*100+K,expandable:!1,twisterPlaceholderClassName:s.default.tree_item_twister_placeholder_fill,children:[],description:o.default.createElement(t.BreakpointItem,{toggle:()=>A(j.breakpoint),data:j.rawData})})});else{const j=m.URI.parse(M),K=P.filter(z=>z.isEqualOrParent(j))[0],U=K?((x=K.relative(j))===null||x===void 0?void 0:x.toString())||"":m.URI.parse(M).displayName,Q=k.map(z=>z.breakpoint);R.push({label:U,order:B,twisterClassName:s.default.tree_item_twister,renderLabel:o.default.createElement(t.BreakpointFileItem,{label:U,breakpointItems:Q,title:j.toString()}),expandable:!0,expanded:!0,children:k.map(z=>({...z,label:"",expandable:!1,twisterClassName:s.default.tree_item_twister,twisterPlaceholderClassName:s.default.tree_item_twister_placeholder,breakpoint:z.breakpoint,iconClassName:(0,r.default)(D({data:z.rawData,inDebugMode:w,breakpointEnabled:T}),s.default.debug_breakpoints_icon),description:o.default.createElement(t.BreakpointItem,{toggle:()=>A(z.breakpoint),data:z.rawData})}))})}}),f.current||b(R)},[a]);return(0,o.useEffect)(()=>{const O=new m.Disposable;return I(Array.from(v.treeNodeMap.entries())),O.addDispose(v.onDidChangeBreakpointsTreeNode(P=>{I(Array.from(P.entries()))})),()=>{f.current=!0,O.dispose()}},[]),(0,o.useEffect)(()=>{a.length>0&&requestAnimationFrame(()=>{v.refreshBreakpointsInfo()})},[a]),o.default.createElement("div",{className:(0,r.default)(s.default.debug_breakpoints,!T&&s.default.debug_breakpoints_disabled)},o.default.createElement(l.BasicRecycleTree,{onIconClick:(O,P)=>{P.raw.breakpoint&&A(P.raw.breakpoint)},sortComparator:(O,P)=>{if(typeof O.order<"u"&&typeof P.order<"u")return O.order>P.order?1:O.order<P.order?-1:0},indent:18,baseIndent:8,treeData:a,height:d.height}))};t.DebugBreakpointView=c;const h=({label:d,title:v,breakpointItems:f})=>{const a=(0,m.useInjectable)(g.DebugBreakpointsService),b=(0,o.useMemo)(()=>f.some(w=>w.enabled),[f]),[y,S]=o.default.useState(b),A=(0,o.useCallback)(w=>{f.filter(I=>I.enabled===w).forEach(I=>{a.toggleBreakpointEnable(I)}),S(!y)},[y]),T=(0,o.useCallback)(w=>{w.stopPropagation(),f.forEach(D=>{a.delBreakpoint(D)})},[]);return o.default.createElement("div",{className:s.default.debug_breakpoints_file_item},o.default.createElement("div",{className:s.default.file_item_control},o.default.createElement(l.CheckBox,{className:(0,r.default)(s.default.debug_breakpoints_icon,s.default.file_item_checkbox),onChange:()=>A(y),checked:y}),o.default.createElement("i",{className:(0,r.default)((0,m.getIcon)("file-text"),s.default.file_item_icon,s.default.debug_breakpoints_icon)}),o.default.createElement("span",{title:v},d)),o.default.createElement("div",{className:s.default.file_item_control_right},o.default.createElement("i",{className:(0,r.default)((0,m.getIcon)("close"),s.default.close_icon),onClick:w=>T(w)})))};t.BreakpointFileItem=h;const u=({data:d,toggle:v})=>{const f=(0,_.isDebugBreakpoint)(d.breakpoint)?d.breakpoint.enabled:!!d.breakpoint.default,a=(0,m.useInjectable)(p.IDebugSessionManager),b=(0,m.useInjectable)(m.CommandService),y=(0,m.useInjectable)(g.DebugBreakpointsService),[S,A]=o.default.useState(f),[T,w]=o.default.useState(void 0),[D,I]=o.default.useState(d.description),O=(0,o.useMemo)(()=>{const x={preview:!0,focus:!0};if(!(0,_.isDebugBreakpoint)(d.breakpoint))return x;if(T)x.range={startColumn:T.column||0,endColumn:T.column||0,startLineNumber:T.line,endLineNumber:T.line};else{const{raw:N}=d.breakpoint;x.range={startColumn:N.column||0,endColumn:N.column||0,startLineNumber:N.line,endLineNumber:N.line}}return x},[T,d.breakpoint]),P=()=>{v(),A(!S)},R=async()=>{d.breakpoint.uri&&(await b.executeCommand(m.EDITOR_COMMANDS.OPEN_RESOURCE.id,new m.URI(d.breakpoint.uri),O),y.launchFocusedBreakpoints({uri:new m.URI(d.breakpoint.uri),range:O.range}))};o.default.useEffect(()=>{const x=new m.Disposable,N=()=>{if((0,_.isDebugBreakpoint)(d.breakpoint)&&(0,_.isRuntimeBreakpoint)(d.breakpoint)){const j=(0,_.getStatus)(d.breakpoint);w(j)}};return x.addDispose(a.onDidChangeActiveDebugSession(()=>N())),N(),x.addDispose(d.onDescriptionChange(I)),()=>{w(void 0),x.dispose()}},[]);const M=x=>{x.stopPropagation(),y.delBreakpoint(d.breakpoint)},k=async x=>{x.stopPropagation(),await b.executeCommand(m.EDITOR_COMMANDS.OPEN_RESOURCE.id,new m.URI(d.breakpoint.uri),O);const{range:N}=O,j=new E.Position(N?.startLineNumber||1,N?.startColumn||1);await b.executeCommand(p.DEBUG_COMMANDS.EDIT_BREAKPOINT.id,j)},B=(0,o.useMemo)(()=>D?o.default.createElement("span",{className:s.default.debug_breakpoints_description},D):(0,_.isDebugBreakpoint)(d.breakpoint)?o.default.createElement("span",{className:(0,r.default)(s.default.debug_breakpoints_description,s.default.blank)},`< ${(0,m.localize)("debug.breakpoint.blank")} >`):null,[D,d.breakpoint]);return o.default.createElement("div",{className:(0,r.default)(s.default.debug_breakpoints_item)},o.default.createElement(l.CheckBox,{className:s.default.debug_breakpoints_icon,id:d.id,onChange:P,checked:S}),o.default.createElement("div",{className:s.default.debug_breakpoints_wrapper,onClick:R},d.name&&o.default.createElement("span",{className:s.default.debug_breakpoints_name},d.name),B),(0,_.isDebugBreakpoint)(d.breakpoint)?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:s.default.debug_breakpoints_item_control},O.range&&o.default.createElement("i",{title:(0,m.localize)("debug.menu.edit.breakpoint"),onClick:x=>k(x),className:(0,r.default)(s.default.debug_edit_breakpoints_icon,(0,m.getExternalIcon)("edit"))}),o.default.createElement("i",{title:(0,m.localize)("debug.menu.delete.breakpoint"),onClick:x=>M(x),className:(0,r.default)(s.default.debug_remove_breakpoints_icon,(0,m.getIcon)("close"))})),o.default.createElement(l.Badge,{className:s.default.debug_breakpoints_badge},d.breakpoint.raw.line,!!d.breakpoint.raw.column&&`:${d.breakpoint.raw.column}`)):null)};t.BreakpointItem=u},16067:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(28423),m=e(51500),E=e(68810),p=e(64582),_=e(26296),s=e(37499),g=e(38029),c=e(35199),h=e(32756);let u=class{constructor(){this.currentValue=(0,l.observableValue)(this,p.DEFAULT_ADD_CONFIGURATION_KEY),this.float=(0,l.observableValue)(this,!1),this.configurationOptions=(0,l.observableValue)(this,[]),this.dynamicConfigurations=(0,l.observableValue)(this,[]),this.isMultiRootWorkspace=(0,l.observableValue)(this,!1),this.workspaceRoots=(0,l.observableValue)(this,[]),this.start=async()=>{const v=this.debugConfigurationManager.current;v?this.debugSessionManager.start(v):this.debugConfigurationManager.addConfiguration()},this.openConfiguration=()=>{const{current:v}=this.debugConfigurationManager,f=v?.workspaceFolderUri;this.debugConfigurationManager.openConfiguration(f)},this.openLaunchEditor=()=>{this.debugConfigurationManager.openLaunchEditor()},this.openDebugConsole=()=>{this.debugConsoleService.activate()},this.addConfiguration=v=>{this.debugConfigurationManager.addConfiguration(typeof v=="string"?v:void 0)},this.getLaunchUri=()=>{const v=this.workspaceVariables.getWorkspaceRootUri();return new o.URI(v.toString()).resolve(`${this.preferenceConfigurations.getPaths()[0]}/launch.json`)},this.insertConfiguration=v=>{this.debugConfigurationManager.insertConfiguration(this.getLaunchUri(),v)},this.showDynamicQuickPickToInsert=async()=>{const v=await this.debugConfigurationManager.showDynamicConfigurationsTypesQuickPick();if(v){const f=await this.debugConfigurationManager.showDynamicConfigurationsQuickPick(v);f&&this.insertConfiguration(f)}},this.getDynamicSupportTypes=async()=>await this.debugConfigurationManager.getDynamicConfigurationsSupportTypes(),this.updateConfiguration=(v,f,a)=>{this.debugConfigurationManager.current=this.debugConfigurationManager.find(v,f,a)},this.showDynamicQuickPick=async v=>{const f=await this.debugConfigurationManager.showDynamicConfigurationsQuickPick(v);f&&this.debugSessionManager.start({configuration:f,workspaceFolderUri:this.workspaceRoots.get()[0],index:-1})},this.toName=({configuration:v,workspaceFolderUri:f})=>!f||!this.workspaceService.isMultiRootWorkspaceEnabled?v.name:v.name+" ("+new o.URI(f).path.base+")",this._whenReady=this.init()}get whenReady(){return this._whenReady}async init(){await this.debugConfigurationManager.whenReady,await this.updateConfigurationOptions(),this.debugConfigurationManager.onDidChange(async()=>{this.updateConfigurationOptions()}),this.preferenceService.onPreferenceChanged(v=>{const{preferenceName:f,newValue:a}=v;f==="debug.toolbar.float"&&this.float.get()!==a&&this.updateFloat(a)}),this.eventBus.on(p.DebugConfigurationsReadyEvent,()=>{this.updateDynamicConfigurations()}),await this.updateWorkspaceState(),this.workspaceService.onWorkspaceChanged(async()=>{await this.updateWorkspaceState()}),this.updateFloat(!!this.preferenceService.get("debug.toolbar.float"))}async updateWorkspaceState(){const v=(await this.workspaceService.tryGetRoots()).map(f=>f.uri);(0,l.transaction)(f=>{this.isMultiRootWorkspace.set(this.workspaceService.isMultiRootWorkspaceOpened,f),this.workspaceRoots.set(v,f)})}async updateDynamicConfigurations(){const v=await this.debugConfigurationManager.getDynamicConfigurationsSupportTypes();(0,l.transaction)(f=>{this.dynamicConfigurations.set(v,f)})}updateFloat(v){this.float.set(v,void 0)}updateCurrentValue(v){(0,l.transaction)(f=>{this.currentValue.set(v,f)})}async updateConfigurationOptions(){(0,l.transaction)(f=>{this.configurationOptions.set(this.debugConfigurationManager.all,f)});const{current:v}=this.debugConfigurationManager;if(v){const f=this.toValue(v);this.updateCurrentValue(f)}else this.updateCurrentValue(p.DEFAULT_ADD_CONFIGURATION_KEY);this.updateDynamicConfigurations()}toValue({configuration:v,workspaceFolderUri:f,index:a}){if(!f)return v.name;if((0,o.isUndefined)(a)){const b=this.debugConfigurationManager.find(v.name,f);return b&&b.index?this.toValue(b):this.currentValue.get()}return v.name+p.DEFAULT_CONFIGURATION_NAME_SEPARATOR+f+p.DEFAULT_CONFIGURATION_INDEX_SEPARATOR+a}};t.DebugConfigurationService=u,n.__decorate([(0,r.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],u.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(s.DebugConfigurationManager),n.__metadata("design:type",s.DebugConfigurationManager)],u.prototype,"debugConfigurationManager",void 0),n.__decorate([(0,r.Autowired)(_.IDebugSessionManager),n.__metadata("design:type",g.DebugSessionManager)],u.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(h.DebugViewModel),n.__metadata("design:type",h.DebugViewModel)],u.prototype,"debugViewModel",void 0),n.__decorate([(0,r.Autowired)(c.DebugConsoleService),n.__metadata("design:type",c.DebugConsoleService)],u.prototype,"debugConsoleService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(E.WorkspaceVariableContribution),n.__metadata("design:type",E.WorkspaceVariableContribution)],u.prototype,"workspaceVariables",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceConfigurations),n.__metadata("design:type",o.PreferenceConfigurations)],u.prototype,"preferenceConfigurations",void 0),n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),t.DebugConfigurationService=u=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],u)},20676:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugControllerView=t.DebugConfigurationContainerView=t.DebugActionBar=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),m=e(41869),E=e(77331),p=e(64582),_=e(66498),s=n.__importDefault(e(90463)),g=e(16067),c=e(84784),h=o.default.memo(({currentValue:v,options:f,dynamicOptions:a,onChangeConfiguration:b,isMultiRootWorkspace:y,addConfigurationLabel:S,editConfigurationLabel:A,toValue:T,workspaceRoots:w,isElectronRenderer:D})=>{const I=o.default.useCallback(R=>R&&R.length?R.map((M,k)=>{const B=y?`${M.configuration.name} (${new m.URI(M.workspaceFolderUri).displayName})`:M.configuration.name;return D?o.default.createElement("option",{key:k,value:T(M),label:B},B):o.default.createElement(l.Option,{key:k,value:T(M),label:B},B)}):D?[o.default.createElement("option",{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:(0,m.localize)("debug.action.no.configuration")},(0,m.localize)("debug.action.no.configuration"))]:[o.default.createElement(l.Option,{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:(0,m.localize)("debug.action.no.configuration")},(0,m.localize)("debug.action.no.configuration"))],[y]),O=o.default.useCallback(()=>{if(y){let R=S;const M=w.map((B,x)=>{const N=`${S} (${new m.URI(B).displayName})`;return R.length<N.length&&(R=N),D?o.default.createElement("option",{value:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,key:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,label:N},N):o.default.createElement(l.Option,{value:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,key:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,label:N},N)});return(D?[o.default.createElement("option",{disabled:!0,key:"--",value:R.replace(/./g,"-")},R.replace(/./g,"-"))]:[o.default.createElement(l.Option,{disabled:!0,key:"--",value:"",className:s.default.select_divider_container})]).concat(M)}else{const R=S;return D?[o.default.createElement("option",{disabled:!0,key:"--",value:R.replace(/./g,"-")},R.replace(/./g,"-")),o.default.createElement("option",{value:p.DEFAULT_ADD_CONFIGURATION_KEY,key:p.DEFAULT_ADD_CONFIGURATION_KEY,label:R},R),o.default.createElement("option",{value:p.DEFAULT_EDIT_CONFIGURATION_KEY,key:p.DEFAULT_EDIT_CONFIGURATION_KEY,label:A},A)]:[o.default.createElement(l.Option,{disabled:!0,key:"--",value:R.replace(/./g,"-"),className:s.default.select_divider_container}),o.default.createElement(l.Option,{value:p.DEFAULT_ADD_CONFIGURATION_KEY,key:p.DEFAULT_ADD_CONFIGURATION_KEY,label:R},R),o.default.createElement(l.Option,{value:p.DEFAULT_EDIT_CONFIGURATION_KEY,key:p.DEFAULT_EDIT_CONFIGURATION_KEY,label:A},A)]}},[y,S]),P=o.default.useCallback(R=>{if(!y&&R&&R.length)return R.map(k=>{const B=k.label||k.type,x=`${p.DEFAULT_DYNAMIC_CONFIGURATION_KEY}${k.type}`,{popupHint:N}=k;return D?o.default.createElement("option",{key:x,value:x,label:B},B):o.default.createElement(l.Option,{key:x,value:x,label:B},N?o.default.createElement(l.Popover,{id:`debug_configuration_pop_${x}`,title:N,overlayClassName:s.default.config_popover_insert},B):B)})},[y,a]);return D?o.default.createElement(E.Select,{value:v,onChange:b,className:(0,r.default)(s.default.debug_selection,s.default.special_radius)},I(f),O(),a&&P(a)):o.default.createElement(l.Select,{value:v,onChange:b,className:(0,r.default)(s.default.debug_selection,s.default.special_radius),allowOptionsOverflow:!0},I(f),O(),a&&P(a))});t.DebugActionBar=o.default.memo(({runDebug:v,openConfiguration:f,openDebugConsole:a})=>o.default.createElement("div",{className:s.default.debug_actions},o.default.createElement(_.DebugAction,{id:"debug.action.start",icon:"start",label:(0,m.localize)("debug.action.start"),run:v}),o.default.createElement(_.DebugAction,{id:"debug.action.open.configuration",icon:"setting",label:(0,m.localize)("debug.action.open.configuration"),run:f}),o.default.createElement(_.DebugAction,{id:"debug.action.debug.console",icon:"terminal",label:(0,m.localize)("debug.action.debug.console"),run:a})));const u=()=>{const v=(0,m.useInjectable)(g.DebugConfigurationService),f=(0,m.useAutorun)(v.float);return o.default.createElement(o.default.Fragment,null,o.default.createElement(t.DebugControllerView,{className:s.default.debug_configuration_container}),!f&&o.default.createElement(c.DebugToolbarView,{float:!1,className:s.default.debug_action_bar_internal}))};t.DebugConfigurationContainerView=u;const d=v=>{const{toValue:f,openConfiguration:a,addConfiguration:b,openDebugConsole:y,updateConfiguration:S,start:A,showDynamicQuickPick:T,currentValue:w,configurationOptions:D,dynamicConfigurations:I,isMultiRootWorkspace:O,workspaceRoots:P}=(0,m.useInjectable)(g.DebugConfigurationService),R=(0,m.useAutorun)(I),M=(0,m.useAutorun)(w),k=(0,m.useAutorun)(D),B=(0,m.useAutorun)(O),x=(0,m.useAutorun)(P),N=(0,m.useInjectable)(m.AppConfig),j=(0,m.localize)("debug.action.add.configuration"),K=(0,m.localize)("debug.action.edit.configuration"),{CustomActionBar:U}=v,Q=o.default.useCallback(z=>{let G;if(typeof z=="object"?G=z.target.value:G=z,G.startsWith(p.DEFAULT_ADD_CONFIGURATION_KEY)){const Y=G.slice(p.DEFAULT_ADD_CONFIGURATION_KEY.length);b(Y?P[Y]:P[0])}else if(G===p.DEFAULT_EDIT_CONFIGURATION_KEY)a();else if(G.startsWith(p.DEFAULT_DYNAMIC_CONFIGURATION_KEY)){const Y=G.slice(p.DEFAULT_DYNAMIC_CONFIGURATION_KEY.length);T(Y)}else{const[Y,Z]=G.split(p.DEFAULT_CONFIGURATION_NAME_SEPARATOR),[$,H]=Z.split(p.DEFAULT_CONFIGURATION_INDEX_SEPARATOR);S(Y,$,+H)}},[]);return o.default.createElement("div",{className:(0,r.default)(s.default.debug_configuration_toolbar,v.className||"")},o.default.createElement(h,{currentValue:M,options:k,dynamicOptions:R,workspaceRoots:x,isMultiRootWorkspace:B,onChangeConfiguration:Q,addConfigurationLabel:j,editConfigurationLabel:K,toValue:f,isElectronRenderer:N.isElectronRenderer}),U?o.default.createElement(U,null):o.default.createElement(t.DebugActionBar,{runDebug:A,openConfiguration:a,openDebugConsole:y}))};t.DebugControllerView=d},96090:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugToolbarService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),m=e(37406),E=e(28423),p=e(64582),_=e(32756);let s=class{constructor(){this.state=(0,E.observableValue)(this,p.DebugState.Inactive),this.currentSession=(0,E.observableValue)(this,void 0),this.sessions=(0,E.observableValue)(this,[]),this.toolBarMenuMap=new Map,this.doStart=async()=>await this.model.start(),this.doRestart=async()=>{const c=this.instrumentReporter("restart"),h=await this.model.restart();return c(),h},this.doStop=async()=>{if(!this.model.currentSession)return;const c=this.instrumentReporter("stop"),h=await this.model.currentSession.terminate();return c(),h},this.doContinue=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("continue"),h=await this.model.currentThread.continue();return c(),h},this.doPause=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("pause"),h=await this.model.currentThread.pause();return c(),h},this.doStepOver=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepOver"),h=await this.model.currentThread.stepOver();return c(),h},this.doStepIn=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepIn"),h=await this.model.currentThread.stepIn();return c(),h},this.doStepOut=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepOut"),h=await this.model.currentThread.stepOut();return c(),h},this.updateCurrentSession=c=>{this.model.currentSession=c},this.model.onDidChange(()=>{this.updateToolBarMenu(),this.updateModel()})}get mainUIService(){return this.injector.get(m.IElectronMainUIService)}updateModel(){(0,E.transaction)(c=>{this.state.set(this.model.state,c),this.currentSession.set(this.model.currentSession,c),this.sessions.set(Array.from(this.model.sessions).filter(h=>h&&h.state>p.DebugState.Inactive),c)})}updateToolBarMenu(){const c=this.currentSession.get();if(c&&c.id&&!this.toolBarMenuMap.has(c.id)){const h=this.contextMenuService.createMenu({id:l.MenuId.DebugToolBar,contextKeyService:this.contextKeyService.createScoped()});c.on("terminated",()=>{this.toolBarMenuMap.delete(c.id)}),this.toolBarMenuMap.set(c.id,h)}}instrumentReporter(c){var h,u,d,v;const f=this.model.currentSession,a=(h=f.configuration)===null||h===void 0?void 0:h.type,b=this.model.currentThread,y=(u=b?.raw)===null||u===void 0?void 0:u.id;this.model.reportAction(f.id,y,c);const S={type:a,request:(v=(d=this.currentSession.get())===null||d===void 0?void 0:d.configuration)===null||v===void 0?void 0:v.request,sessionId:f.id,threadId:y};this.model.report(p.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION,c,S);const A=this.model.reportTime(p.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION_TIME,S);return()=>{A(c)}}};t.DebugToolbarService=s,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],s.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(l.AbstractContextMenuService),n.__metadata("design:type",l.AbstractContextMenuService)],s.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(_.DebugViewModel),n.__metadata("design:type",_.DebugViewModel)],s.prototype,"model",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],s.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],s.prototype,"injector",void 0),n.__decorate([o.memoize,n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],s.prototype,"mainUIService",null),t.DebugToolbarService=s=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],s)},84784:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugToolbarOverlayWidget=t.DebugToolbarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),m=e(97267),E=e(41869),p=e(25918),_=e(77331),s=e(1149),g=e(28423),c=e(64582),h=e(66498),u=e(5905),d=n.__importDefault(e(90463)),v=e(16067),f=e(96090);let a=class{constructor(){this._x=(0,g.observableValue)(this,0),this._line=(0,g.observableValue)(this,0),this._enable=(0,g.observableValue)(this,!1),this.y=0,this.last=0,this.origin=0,this.state=(0,g.derived)(this,D=>({enable:this._enable.read(D),x:this._x.read(D),line:this._line.read(D)}))}setEnable(D){(0,g.transaction)(I=>{this._enable.set(D,I)})}onMouseDown(D){this.setEnable(!0),this.y=D.clientY,this.origin=D.clientX}onMouseMove(D){D.stopPropagation(),(0,g.transaction)(I=>{this._enable.get()&&(this._x.set(D.clientX-this.origin+this.last,I),this._line.set(D.clientY-this.y>10?1:0,I))})}onMouseUp(){this.setEnable(!1),this.last=this._x.get()}};a=n.__decorate([(0,l.Injectable)()],a);const b=w=>{var D;const{state:I,toolBarMenuMap:O,doStop:P,doStepIn:R,doStepOut:M,doStepOver:k,doContinue:B,doRestart:x,doPause:N,currentSession:j,sessions:K,updateCurrentSession:U}=(0,E.useInjectable)(f.DebugToolbarService),Q=(0,E.useAutorun)(I),z=(0,E.useAutorun)(j),G=(0,E.useAutorun)(K),{isElectronRenderer:Y}=(0,E.useInjectable)(E.AppConfig),Z=!!z&&((D=z.configuration)===null||D===void 0?void 0:D.request)==="attach"&&!(0,u.isExtensionHostDebugging)(z.configuration),$=z&&z.id,H=(0,o.useCallback)(Ae=>{if(Ae&&Ae.id){const te=O.get(Ae.id);if(te)return o.default.createElement(p.InlineMenuBar,{menus:te})}return null},[O]),X=(0,o.useCallback)(Ae=>Z?o.default.createElement(h.DebugAction,{run:P,enabled:Ae!==c.DebugState.Inactive,icon:"disconnect",label:(0,E.localize)("debug.action.disattach")}):o.default.createElement(h.DebugAction,{run:P,enabled:Ae!==c.DebugState.Inactive,icon:"stop",label:(0,E.localize)("debug.action.stop")}),[P]),J=(0,o.useCallback)(Ae=>Ae===c.DebugState.Stopped?o.default.createElement(h.DebugAction,{run:B,icon:"continue",label:(0,E.localize)("debug.action.continue")}):o.default.createElement(h.DebugAction,{run:N,enabled:Q===c.DebugState.Running,icon:"pause",label:(0,E.localize)("debug.action.pause")}),[N,B]),re=(0,o.useCallback)(Ae=>Ae.map(te=>Y?o.default.createElement("option",{key:te.id,value:te.id},te.label):o.default.createElement(m.Option,{key:te.id,label:te.label,value:te.id},te.label)),[]),ce=(0,o.useCallback)(Ae=>{if(Ae.length>1)return o.default.createElement("div",{className:(0,r.default)(d.default.debug_selection)},Y?o.default.createElement(_.Select,{value:$,onChange:fe},re(Ae)):o.default.createElement(m.Select,{className:(0,r.default)(d.default.debug_selection,d.default.special_radius),size:w.float?"small":"default",value:$,options:Ae.map(te=>({label:te.label,value:te.id})),onChange:fe},re(Ae)))},[$]),fe=(0,o.useCallback)(Ae=>{let te=Ae;if(Y&&(te=Ae.target.value),!!G)for(const Le of G)Le.id===te&&U(Le)},[G,U]);return o.default.createElement("div",{className:(0,r.default)(d.default.debug_action_bar,w.className||"")},ce(G.filter(Ae=>!Ae.parentSession)),o.default.createElement("div",{className:d.default.debug_actions},J(Q),o.default.createElement(h.DebugAction,{run:k,enabled:Q===c.DebugState.Stopped,icon:"step",label:(0,E.localize)("debug.action.step-over")}),o.default.createElement(h.DebugAction,{run:R,enabled:Q===c.DebugState.Stopped,icon:"step-in",label:(0,E.localize)("debug.action.step-into")}),o.default.createElement(h.DebugAction,{run:M,enabled:Q===c.DebugState.Stopped,icon:"step-out",label:(0,E.localize)("debug.action.step-out")}),o.default.createElement(h.DebugAction,{run:x,enabled:Q!==c.DebugState.Inactive,icon:"reload",label:(0,E.localize)("debug.action.restart")}),X(Q),H(z)))};t.DebugToolbarView=b;const y="debug.toolbar.top",S="debug.toolbar.height",A=()=>{const w=(0,E.useInjectable)(E.PreferenceService),{isElectronRenderer:D}=(0,E.useInjectable)(E.AppConfig),I=(0,E.useInjectable)(s.LayoutViewSizeConfig),O=(0,E.useDesignStyles)(d.default.debug_toolbar_wrapper,"debug_toolbar_wrapper"),[P,R]=(0,o.useState)(0),M=(0,E.useInjectable)(a),k=(0,E.useAutorun)(M.state),B=(0,E.useInjectable)(f.DebugToolbarService),x=(0,E.useAutorun)(B.state);(0,o.useEffect)(()=>{const K=new E.DisposableCollection,U=w.get(y)||0;if(D){const Q=B.mainUIService;Q.isFullScreen(E.electronEnv.currentWindowId).then(z=>{R(z?U:U+I.calcOnlyTitleBarHeight())}),K.push(Q.on("fullScreenStatusChange",(z,G)=>{z===E.electronEnv.currentWindowId&&R(G?U:U+I.calcOnlyTitleBarHeight())}))}else R(U);return()=>{K.dispose()}},[]);const N=w.get(S)||0,j=(0,r.default)({[O]:!0,[d.default.debug_toolbar_wrapper_electron]:D});return x?o.default.createElement("div",{style:{pointerEvents:k.enable?"all":"none"},className:d.default.debug_toolbar_container,onMouseMove:K=>M.onMouseMove(K),onMouseUp:K=>M.onMouseUp()},o.default.createElement("div",{style:{transform:`translateX(${k.x}px) translateY(${P+k.line*N}px)`,height:`${N}px`},className:j},o.default.createElement("div",{className:(0,r.default)(d.default.debug_toolbar_drag_wrapper)},o.default.createElement("div",{className:(0,r.default)((0,E.getIcon)("drag"),d.default.debug_toolbar_drag),onMouseDown:K=>M.onMouseDown(K),onMouseMove:K=>M.onMouseMove(K)})),o.default.createElement(t.DebugToolbarView,{float:!0}))):(M.setEnable(!1),null)},T=()=>{const w=(0,E.useInjectable)(v.DebugConfigurationService);return(0,E.useAutorun)(w.float)?o.default.createElement(A,null):null};t.DebugToolbarOverlayWidget=T},53378:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterModel=void 0;const r=e(85608),o=e(76003),l=e(41869);let m=n=class{constructor(){this._parsedQueries=[]}set filterQuery(p){if(this._parsedQueries=[],p=p.trim(),p&&p!==""){const _=(0,l.splitGlobAware)(p,",").map(s=>s.trim()).filter(s=>!!s.length);for(const s of _)s.startsWith("!")?this._parsedQueries.push({type:"exclude",query:s.slice(1)}):this._parsedQueries.push({type:"include",query:s})}}filter(p){let _=!1,s=!1;for(const{type:g,query:c}of this._parsedQueries){if(g==="exclude"&&n.matchQuery(c,p))return!1;g==="include"&&(_=!0,n.matchQuery(c,p)&&(s=!0))}return _&&s}};t.DebugConsoleFilterModel=m,m.matchQuery=l.matchesFuzzy,t.DebugConsoleFilterModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0})],m)},1276:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(5905),m=e(53378),E=e(62665),{convertSimple2RegExpPattern:p}=o.strings;let _=class{constructor(){this._onDidValueChange=new o.Emitter,this._onDidFocus=new o.Emitter,this._filterText="",this.filterModel=new m.DebugConsoleFilterModel}get onDidValueChange(){return this._onDidValueChange.event}get onDidFocus(){return this._onDidFocus.event}focusInput(){this._onDidFocus.fire()}get filterText(){return this._filterText}setFilterText(g){return this._filterText!==g&&(this._filterText=g,this.filterModel.filterQuery=this._filterText,this._onDidValueChange.fire(this._filterText)),this}filter(g){const c=E.ansiToText(g);return this._filterText===""||this.filterModel.filter(c)}findMatches(g){const c=new RegExp(p(this._filterText.toLowerCase()),"g");if(this._filterText.trim()==="")return[];const h=(0,l.matchAll)(g.toLowerCase(),c),u=this._filterText.length;return u===0?[]:h.map(v=>({startIndex:v.index!==void 0?v.index:-1,count:u})).filter(v=>v.startIndex>=0)}};t.DebugConsoleFilterService=_,t.DebugConsoleFilterService=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},4161:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterView=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(14041)),l=e(15857),m=e(41869),E=e(1276),p=n.__importDefault(e(80315)),_=()=>{const s=(0,m.useInjectable)(E.DebugConsoleFilterService),[g,c]=o.default.useState(""),[h,u]=o.default.useState(),d=(0,m.useDesignStyles)(p.default.debug_console_filter,"debug_console_filter"),v=(0,m.useDesignStyles)(p.default.filter_input,"filter_input"),f=(0,r.default)(y=>{c(y),s.setFilterText(y),h&&h.addToHistory(y)},400);o.default.useEffect(()=>{const y=s.onDidValueChange(S=>{c(S)});return()=>{y.dispose()}},[]);const a=y=>{u(y)},b=y=>{h&&(y.keyCode===m.Key.ARROW_UP.keyCode?h.showPreviousValue():y.keyCode===m.Key.ARROW_DOWN.keyCode&&h.showNextValue())};return o.default.useEffect(()=>{const y=s.onDidFocus(()=>{h&&h.focus()});return()=>{y.dispose()}},[h]),o.default.createElement("div",{className:d},o.default.createElement(l.HistoryInputBox,{hasClear:!0,className:v,value:g,placeholder:(0,m.localize)("debug.console.filter.placeholder"),onValueChange:f,onReady:a,onKeyDown:b}))};t.DebugConsoleFilterView=_},80390:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleTreeModel=void 0;const r=e(85608),o=e(76003),l=e(97267),m=e(41869),E=e(98650);let p=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new m.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this._tempScrollOffset=0,this.init(s)}get isScrollBottom(){return this._tempScrollOffset=Math.max(this.state.scrollOffset,this._tempScrollOffset),this._tempScrollOffset===this.state.scrollOffset}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugConsoleTreeModel=p,p.DEFAULT_FLUSH_DELAY=100,t.DebugConsoleTreeModel=p=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[E.ExpressionContainer])],p)},75563:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleSession=void 0;const n=e(85608),r=n.__importDefault(e(97331)),o=e(76003),l=e(43718),m=e(52416),E=e(92679),p=e(58542),_=e(29539),s=e(16170),g=e(80390);let c=class{constructor(u,d){this.session=u,this.treeModel=d,this.toDispose=new l.DisposableCollection,this.fireDidChange=(0,r.default)(()=>this.onDidChangeEmitter.fire(),50),this.onDidChangeEmitter=new l.Emitter,this.init()}resolveChildren(){return(this.treeModel.root.flattenedBranch||[]).map(d=>this.treeModel.root.getTreeNodeById(d))}getLastItem(){const{flattenedBranch:u}=this.treeModel.root,d=u?.length?u[u.length-1]:void 0;return d?this.treeModel.root.getTreeNodeById(d):void 0}init(){this.toDispose.push(this.session.on("output",u=>this.logOutput(this.session,u)))}addChildSession(u){this.toDispose.push(u.on("output",d=>this.logOutput(u,d)))}get onDidChange(){return this.onDidChangeEmitter.event}clear(){this.fireDidChange()}async logOutput(u,d){var v;const f="\x1B[2J",a=d.body,{category:b,variablesReference:y,source:S,line:A}=a;if(!this.treeModel)return;const T=b==="stderr"?l.MessageType.Error:b==="stdout"?l.MessageType.Info:b==="console"?l.MessageType.Warning:l.MessageType.Info;if(b==="telemetry"){this.logger.debug(`telemetry/${d.body.output}`,d.body.data);return}if(y){const w=new s.DebugConsoleNode({session:u,variablesReference:y,source:S,line:A},"",(v=this.treeModel)===null||v===void 0?void 0:v.root);await w.evaluate(),this.treeModel.root.insertItem(w)}else if(typeof a.output=="string"){let w=a.output;w.indexOf(f)>=0&&(this.clearConsole(),await this.insertItemWithAnsi((0,l.localize)("debug.console.consoleCleare"),l.MessageType.Info),w=w.substring(w.lastIndexOf(f)+f.length));const D=this.getLastItem();D&&!D.description.endsWith(`
28351
+ `),this._description="",this._available=!0)}}catch(I){this._available=!1,this.name=D,this._description=I.message}else this._available=!1,this.name=D}}t.DebugConsoleNode=a;class b extends g{static is(w){return!!w&&!w.parent}constructor(w,D=[]){super({session:w},void 0,new _(w)),this.session=w,this.presetChildren=D}get expanded(){return!0}updatePresetChildren(w){this.presetChildren=w}}t.DebugConsoleRoot=b;class y extends g{static is(w){return!!w&&!w.parent}constructor(w,D=[]){super({session:w},void 0),this.session=w,this.presetChildren=D}get expanded(){return!0}updatePresetChildren(w){this.presetChildren=w}}t.DebugWatchRoot=y;class S extends u{static is(w){return!!w&&!w.parent}constructor(w){super(w,{},void 0),this.session=w}get expanded(){return!0}}t.DebugVariableRoot=S;class A extends g{constructor(w,D){super({session:D}),this.expression=w,this.session=D,this._value="",this._available=!1}get name(){return this._value}get available(){return this._available}async evaluate(w="repl"){if(this.session)try{const{expression:D}=this,I=await this.session.evaluate(D,w);I&&(this._value=I.result,this._available=!0,this.variablesReference=I.variablesReference,this.namedVariables=I.namedVariables,this.indexedVariables=I.indexedVariables,this.memoryReference=I.memoryReference)}catch(D){this._value=D.message,this._available=!1}else this._value="Please start a debug session to evaluate",this._available=!1}}t.DebugHoverVariableRoot=A},16170:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(98650),t),n.__exportStar(e(81450),t)},57332:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointsTreeNode=void 0;const n=e(43718),r=e(99797);class o{constructor(m,E){this.label="",this._onDescriptionChange=new n.Emitter;const{breakpoint:p}=E;this._uri=m,this.label=(0,r.isDebugBreakpoint)(p)?m.displayName:"",this.rawData=E,this.rawData.onDescriptionChange=this._onDescriptionChange.event}get breakpoint(){return this.rawData.breakpoint}get uri(){return this._uri}fireDescriptionChange(m){this.rawData.description=m,this._onDescriptionChange.fire(m)}}t.BreakpointsTreeNode=o},97319:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugBreakpointsService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26542),m=e(54414),E=e(57517),p=e(28423),_=e(51500),s=e(26199),g=e(64582),c=e(26296),h=e(99797),u=e(38029),d=e(32756),v=e(57332);let f=class extends o.WithEventBus{get inputEditor(){return this._inputEditor}constructor(){super(),this._onDidChangeBreakpointsTreeNode=new o.Emitter,this.onDidChangeBreakpointsTreeNode=this._onDidChangeBreakpointsTreeNode.event,this._onDidFocusedBreakpoints=new o.Emitter,this.onDidFocusedBreakpoints=this._onDidFocusedBreakpoints.event,this.treeNodeMap=new Map,this.enable=(0,p.observableValue)(this,!1),this.inDebugMode=(0,p.observableValue)(this,!1),this.toggleBreakpointEnable=b=>{if((0,h.isDebugBreakpoint)(b)){const y=this.breakpoints.getBreakpoint(o.URI.parse(b.uri),{lineNumber:b.raw.line,column:b.raw.column});y&&(y.enabled=!y.enabled,this.breakpoints.updateBreakpoint(y))}(0,h.isDebugExceptionBreakpoint)(b)&&this.breakpoints.updateExceptionBreakpoints(b.filter,!b.default)},this.init()}launchFocusedBreakpoints(b){this._onDidFocusedBreakpoints.fire(b)}async init(){await this.updateRoots(),this.workspaceService.onWorkspaceChanged(async()=>{this.updateRoots(),this.updateBreakpoints()}),this.breakpoints.onDidChangeBreakpoints(()=>{this.updateBreakpoints()}),this.breakpoints.onDidChangeExceptionsBreakpoints(()=>{this.updateBreakpoints()}),this.breakpoints.whenReady.then(()=>{this.updateBreakpoints()}),this.contextKeyService.onDidChangeContext(b=>{b.payload.affectsSome(new Set([g.CONTEXT_IN_DEBUG_MODE_KEY]))&&(0,p.transaction)(y=>{this.inDebugMode.set(this.contextKeyService.getContextValue(g.CONTEXT_IN_DEBUG_MODE_KEY)||!1,y)})})}getBreakpointDecoration(b,y=!1,S=!0){return new h.DebugDecorator().getDecoration(b,y,S)}onRenameFile(b){this.removeBreakpoints(b.payload.oldUri)}onDeleteFile(b){this.removeBreakpoints(b.payload.oldUri)}removeBreakpoints(b){this.breakpoints.cleanAllMarkers(b),this.updateBreakpoints()}async updateRoots(){(0,p.transaction)(y=>{this.enable.set(this.breakpoints.breakpointsEnabled,y),this.inDebugMode.set(this.contextKeyService.getContextValue(g.CONTEXT_IN_DEBUG_MODE_KEY)||!1,y)});const b=await this.workspaceService.roots;this.roots=b.map(y=>new o.URI(y.uri))}extractNodes(b){if((0,h.isDebugBreakpoint)(b))return{id:b.id,name:"",description:"",onDescriptionChange:o.Event.None,breakpoint:b};if((0,h.isDebugExceptionBreakpoint)(b))return{id:b.filter,name:b.label,onDescriptionChange:o.Event.None,description:"",breakpoint:b}}async updateBreakpoints(){await this.breakpoints.whenReady,this.treeNodeMap.clear(),[...this.breakpoints.getExceptionBreakpoints(),...this.breakpoints.getBreakpoints()].forEach(y=>{const S=this.extractNodes(y);if(S){const A=(0,h.isDebugBreakpoint)(y)?o.URI.parse(y.uri):h.EXCEPTION_BREAKPOINT_URI,T=this.treeNodeMap.get(A.toString())||[];T.push(new v.BreakpointsTreeNode(A,S)),this.treeNodeMap.set(A.toString(),T)}}),this._onDidChangeBreakpointsTreeNode.fire(this.treeNodeMap)}async getDocumentModelRef(b){const y=this.documentService.getModelReference(b);return y||this.documentService.createModelReference(b)}async refreshBreakpointsInfo(){const b=this.treeNodeMap.values(),y=Array.from(b).reduce((S,A)=>S.concat(A),[]);for await(const S of y){const{rawData:A,uri:T}=S;if((0,h.isDebugBreakpoint)(A.breakpoint)){const w=A.breakpoint.raw.line,D=await this.getDocumentModelRef(T);if(!D)return;const I=D.instance.getMonacoModel(),O=I.getLineCount();if(w>O)return;const P=I.getLineContent(w);S.fireDescriptionChange(P.trim()),D.dispose()}}}removeAllBreakpoints(){this.breakpoints.clearBreakpoints()}delBreakpoint(b){this.breakpoints.delBreakpoint(b)}toggleBreakpoints(){this.breakpoints.breakpointsEnabled=!this.breakpoints.breakpointsEnabled,(0,p.transaction)(b=>{this.enable.set(this.breakpoints.breakpointsEnabled,b)}),this.enable.get()?this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"enabled"):this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"unenabled")}async createBreakpointInput(b){this._inputEditor=await this.editorService.createCodeEditor(b,{...(0,m.getSimpleEditorOptions)(),lineHeight:21,scrollbar:{horizontal:"hidden",vertical:"hidden",handleMouseWheel:!1},acceptSuggestionOnEnter:"on",renderIndentGuides:!1});const S=(await this.documentService.createModelReference(new o.URI("debug/breakpoint/expression/input").withScheme(o.Schemes.walkThroughSnippet))).instance.getMonacoModel();return S.updateOptions({tabSize:2}),this._inputEditor.monacoEditor.setModel(S),Promise.resolve(this.inputEditor)}};t.DebugBreakpointsService=f,n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],f.prototype,"model",void 0),n.__decorate([(0,r.Autowired)(_.IWorkspaceService),n.__metadata("design:type",Object)],f.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(h.BreakpointManager),n.__metadata("design:type",h.BreakpointManager)],f.prototype,"breakpoints",void 0),n.__decorate([(0,r.Autowired)(c.IDebugSessionManager),n.__metadata("design:type",u.DebugSessionManager)],f.prototype,"sessions",void 0),n.__decorate([(0,r.Autowired)(l.LabelService),n.__metadata("design:type",l.LabelService)],f.prototype,"labelProvider",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],f.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(m.EditorCollectionService),n.__metadata("design:type",m.EditorCollectionService)],f.prototype,"editorService",void 0),n.__decorate([(0,r.Autowired)(E.IEditorDocumentModelService),n.__metadata("design:type",Object)],f.prototype,"documentService",void 0),n.__decorate([(0,o.OnEvent)(s.WorkspaceEditDidRenameFileEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.WorkspaceEditDidRenameFileEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onRenameFile",null),n.__decorate([(0,o.OnEvent)(s.WorkspaceEditDidDeleteFileEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.WorkspaceEditDidDeleteFileEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onDeleteFile",null),t.DebugBreakpointsService=f=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],f)},85347:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointItem=t.BreakpointFileItem=t.DebugBreakpointView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),m=e(41869),E=n.__importStar(e(20868)),p=e(64582),_=e(99797),s=n.__importDefault(e(96547)),g=e(97319),c=({viewState:d})=>{const v=(0,m.useInjectable)(g.DebugBreakpointsService),f=(0,o.useRef)(!1),[a,b]=(0,o.useState)([]),{enable:y,inDebugMode:S,toggleBreakpointEnable:A}=v,T=(0,m.useAutorun)(y),w=(0,m.useAutorun)(S),D=O=>{const{data:P,inDebugMode:R,breakpointEnabled:M}=O;if((0,_.isDebugBreakpoint)(P.breakpoint)){if(!(R?(0,_.isDebugBreakpoint)(P.breakpoint)&&(0,_.isRuntimeBreakpoint)(P.breakpoint):!0))return"sumi-debug-breakpoint-unverified";const{className:B}=v.getBreakpointDecoration(P.breakpoint,R,M);return B}return""},I=(0,o.useCallback)(O=>{const{roots:P}=v,R=[];O.forEach(([M,k],B)=>{var x;if(_.EXCEPTION_BREAKPOINT_URI.toString()===M)k.forEach((j,K)=>{R.push({label:"",order:B*100+K,expandable:!1,twisterPlaceholderClassName:s.default.tree_item_twister_placeholder_fill,children:[],description:o.default.createElement(t.BreakpointItem,{toggle:()=>A(j.breakpoint),data:j.rawData})})});else{const j=m.URI.parse(M),K=P.filter(z=>z.isEqualOrParent(j))[0],U=K?((x=K.relative(j))===null||x===void 0?void 0:x.toString())||"":m.URI.parse(M).displayName,Q=k.map(z=>z.breakpoint);R.push({label:U,order:B,twisterClassName:s.default.tree_item_twister,renderLabel:o.default.createElement(t.BreakpointFileItem,{label:U,breakpointItems:Q,title:j.toString()}),expandable:!0,expanded:!0,children:k.map(z=>({...z,label:"",expandable:!1,twisterClassName:s.default.tree_item_twister,twisterPlaceholderClassName:s.default.tree_item_twister_placeholder,breakpoint:z.breakpoint,iconClassName:(0,r.default)(D({data:z.rawData,inDebugMode:w,breakpointEnabled:T}),s.default.debug_breakpoints_icon),description:o.default.createElement(t.BreakpointItem,{toggle:()=>A(z.breakpoint),data:z.rawData})}))})}}),f.current||b(R)},[a]);return(0,o.useEffect)(()=>{const O=new m.Disposable;return I(Array.from(v.treeNodeMap.entries())),O.addDispose(v.onDidChangeBreakpointsTreeNode(P=>{I(Array.from(P.entries()))})),()=>{f.current=!0,O.dispose()}},[]),(0,o.useEffect)(()=>{a.length>0&&requestAnimationFrame(()=>{v.refreshBreakpointsInfo()})},[a]),o.default.createElement("div",{className:(0,r.default)(s.default.debug_breakpoints,!T&&s.default.debug_breakpoints_disabled)},o.default.createElement(l.BasicRecycleTree,{onIconClick:(O,P)=>{P.raw.breakpoint&&A(P.raw.breakpoint)},sortComparator:(O,P)=>{if(typeof O.order<"u"&&typeof P.order<"u")return O.order>P.order?1:O.order<P.order?-1:0},indent:18,baseIndent:8,treeData:a,height:d.height}))};t.DebugBreakpointView=c;const h=({label:d,title:v,breakpointItems:f})=>{const a=(0,m.useInjectable)(g.DebugBreakpointsService),b=(0,o.useMemo)(()=>f.some(w=>w.enabled),[f]),[y,S]=o.default.useState(b),A=(0,o.useCallback)(w=>{f.filter(I=>I.enabled===w).forEach(I=>{a.toggleBreakpointEnable(I)}),S(!y)},[y]),T=(0,o.useCallback)(w=>{w.stopPropagation(),f.forEach(D=>{a.delBreakpoint(D)})},[]);return o.default.createElement("div",{className:s.default.debug_breakpoints_file_item},o.default.createElement("div",{className:s.default.file_item_control},o.default.createElement(l.CheckBox,{className:(0,r.default)(s.default.debug_breakpoints_icon,s.default.file_item_checkbox),onChange:()=>A(y),checked:y}),o.default.createElement("i",{className:(0,r.default)((0,m.getIcon)("file-text"),s.default.file_item_icon,s.default.debug_breakpoints_icon)}),o.default.createElement("span",{title:v},d)),o.default.createElement("div",{className:s.default.file_item_control_right},o.default.createElement("i",{className:(0,r.default)((0,m.getIcon)("close"),s.default.close_icon),onClick:w=>T(w)})))};t.BreakpointFileItem=h;const u=({data:d,toggle:v})=>{const f=(0,_.isDebugBreakpoint)(d.breakpoint)?d.breakpoint.enabled:!!d.breakpoint.default,a=(0,m.useInjectable)(p.IDebugSessionManager),b=(0,m.useInjectable)(m.CommandService),y=(0,m.useInjectable)(g.DebugBreakpointsService),[S,A]=o.default.useState(f),[T,w]=o.default.useState(void 0),[D,I]=o.default.useState(d.description),O=(0,o.useMemo)(()=>{const x={preview:!0,focus:!0};if(!(0,_.isDebugBreakpoint)(d.breakpoint))return x;if(T)x.range={startColumn:T.column||0,endColumn:T.column||0,startLineNumber:T.line,endLineNumber:T.line};else{const{raw:N}=d.breakpoint;x.range={startColumn:N.column||0,endColumn:N.column||0,startLineNumber:N.line,endLineNumber:N.line}}return x},[T,d.breakpoint]),P=()=>{v(),A(!S)},R=async()=>{d.breakpoint.uri&&(await b.executeCommand(m.EDITOR_COMMANDS.OPEN_RESOURCE.id,new m.URI(d.breakpoint.uri),O),y.launchFocusedBreakpoints({uri:new m.URI(d.breakpoint.uri),range:O.range}))};o.default.useEffect(()=>{const x=new m.Disposable,N=()=>{if((0,_.isDebugBreakpoint)(d.breakpoint)&&(0,_.isRuntimeBreakpoint)(d.breakpoint)){const j=(0,_.getStatus)(d.breakpoint);w(j)}};return x.addDispose(a.onDidChangeActiveDebugSession(()=>N())),N(),x.addDispose(d.onDescriptionChange(I)),()=>{w(void 0),x.dispose()}},[]);const M=x=>{x.stopPropagation(),y.delBreakpoint(d.breakpoint)},k=async x=>{x.stopPropagation(),await b.executeCommand(m.EDITOR_COMMANDS.OPEN_RESOURCE.id,new m.URI(d.breakpoint.uri),O);const{range:N}=O,j=new E.Position(N?.startLineNumber||1,N?.startColumn||1);await b.executeCommand(p.DEBUG_COMMANDS.EDIT_BREAKPOINT.id,j)},B=(0,o.useMemo)(()=>D?o.default.createElement("span",{className:s.default.debug_breakpoints_description},D):(0,_.isDebugBreakpoint)(d.breakpoint)?o.default.createElement("span",{className:(0,r.default)(s.default.debug_breakpoints_description,s.default.blank)},`< ${(0,m.localize)("debug.breakpoint.blank")} >`):null,[D,d.breakpoint]);return o.default.createElement("div",{className:(0,r.default)(s.default.debug_breakpoints_item)},o.default.createElement(l.CheckBox,{className:s.default.debug_breakpoints_icon,id:d.id,onChange:P,checked:S}),o.default.createElement("div",{className:s.default.debug_breakpoints_wrapper,onClick:R},d.name&&o.default.createElement("span",{className:s.default.debug_breakpoints_name},d.name),B),(0,_.isDebugBreakpoint)(d.breakpoint)?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:s.default.debug_breakpoints_item_control},O.range&&o.default.createElement("i",{title:(0,m.localize)("debug.menu.edit.breakpoint"),onClick:x=>k(x),className:(0,r.default)(s.default.debug_edit_breakpoints_icon,(0,m.getExternalIcon)("edit"))}),o.default.createElement("i",{title:(0,m.localize)("debug.menu.delete.breakpoint"),onClick:x=>M(x),className:(0,r.default)(s.default.debug_remove_breakpoints_icon,(0,m.getIcon)("close"))})),o.default.createElement(l.Badge,{className:s.default.debug_breakpoints_badge},d.breakpoint.raw.line,!!d.breakpoint.raw.column&&`:${d.breakpoint.raw.column}`)):null)};t.BreakpointItem=u},16067:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(28423),m=e(51500),E=e(68810),p=e(64582),_=e(26296),s=e(37499),g=e(38029),c=e(35199),h=e(32756);let u=class{constructor(){this.currentValue=(0,l.observableValue)(this,p.DEFAULT_ADD_CONFIGURATION_KEY),this.float=(0,l.observableValue)(this,!1),this.configurationOptions=(0,l.observableValue)(this,[]),this.dynamicConfigurations=(0,l.observableValue)(this,[]),this.isMultiRootWorkspace=(0,l.observableValue)(this,!1),this.workspaceRoots=(0,l.observableValue)(this,[]),this.start=async()=>{const v=this.debugConfigurationManager.current;v?this.debugSessionManager.start(v):this.debugConfigurationManager.addConfiguration()},this.openConfiguration=()=>{const{current:v}=this.debugConfigurationManager,f=v?.workspaceFolderUri;this.debugConfigurationManager.openConfiguration(f)},this.openLaunchEditor=()=>{this.debugConfigurationManager.openLaunchEditor()},this.openDebugConsole=()=>{this.debugConsoleService.activate()},this.addConfiguration=v=>{this.debugConfigurationManager.addConfiguration(typeof v=="string"?v:void 0)},this.getLaunchUri=()=>{const v=this.workspaceVariables.getWorkspaceRootUri();return new o.URI(v.toString()).resolve(`${this.preferenceConfigurations.getPaths()[0]}/launch.json`)},this.insertConfiguration=v=>{this.debugConfigurationManager.insertConfiguration(this.getLaunchUri(),v)},this.showDynamicQuickPickToInsert=async()=>{const v=await this.debugConfigurationManager.showDynamicConfigurationsTypesQuickPick();if(v){const f=await this.debugConfigurationManager.showDynamicConfigurationsQuickPick(v);f&&this.insertConfiguration(f)}},this.getDynamicSupportTypes=async()=>await this.debugConfigurationManager.getDynamicConfigurationsSupportTypes(),this.updateConfiguration=(v,f,a)=>{this.debugConfigurationManager.current=this.debugConfigurationManager.find(v,f,a)},this.showDynamicQuickPick=async v=>{const f=await this.debugConfigurationManager.showDynamicConfigurationsQuickPick(v);f&&this.debugSessionManager.start({configuration:f,workspaceFolderUri:this.workspaceRoots.get()[0],index:-1})},this.toName=({configuration:v,workspaceFolderUri:f})=>!f||!this.workspaceService.isMultiRootWorkspaceEnabled?v.name:v.name+" ("+new o.URI(f).path.base+")",this._whenReady=this.init()}get whenReady(){return this._whenReady}async init(){await this.debugConfigurationManager.whenReady,await this.updateConfigurationOptions(),this.debugConfigurationManager.onDidChange(async()=>{this.updateConfigurationOptions()}),this.preferenceService.onPreferenceChanged(v=>{const{preferenceName:f,newValue:a}=v;f==="debug.toolbar.float"&&this.float.get()!==a&&this.updateFloat(a)}),this.eventBus.on(p.DebugConfigurationsReadyEvent,()=>{this.updateDynamicConfigurations()}),await this.updateWorkspaceState(),this.workspaceService.onWorkspaceChanged(async()=>{await this.updateWorkspaceState()}),this.updateFloat(!!this.preferenceService.get("debug.toolbar.float"))}async updateWorkspaceState(){const v=(await this.workspaceService.tryGetRoots()).map(f=>f.uri);(0,l.transaction)(f=>{this.isMultiRootWorkspace.set(this.workspaceService.isMultiRootWorkspaceOpened,f),this.workspaceRoots.set(v,f)})}async updateDynamicConfigurations(){const v=await this.debugConfigurationManager.getDynamicConfigurationsSupportTypes();(0,l.transaction)(f=>{this.dynamicConfigurations.set(v,f)})}updateFloat(v){this.float.set(v,void 0)}updateCurrentValue(v){(0,l.transaction)(f=>{this.currentValue.set(v,f)})}async updateConfigurationOptions(){(0,l.transaction)(f=>{this.configurationOptions.set(this.debugConfigurationManager.all,f)});const{current:v}=this.debugConfigurationManager;if(v){const f=this.toValue(v);this.updateCurrentValue(f)}else this.updateCurrentValue(p.DEFAULT_ADD_CONFIGURATION_KEY);this.updateDynamicConfigurations()}toValue({configuration:v,workspaceFolderUri:f,index:a}){if(!f)return v.name;if((0,o.isUndefined)(a)){const b=this.debugConfigurationManager.find(v.name,f);return b&&b.index?this.toValue(b):this.currentValue.get()}return v.name+p.DEFAULT_CONFIGURATION_NAME_SEPARATOR+f+p.DEFAULT_CONFIGURATION_INDEX_SEPARATOR+a}};t.DebugConfigurationService=u,n.__decorate([(0,r.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],u.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(s.DebugConfigurationManager),n.__metadata("design:type",s.DebugConfigurationManager)],u.prototype,"debugConfigurationManager",void 0),n.__decorate([(0,r.Autowired)(_.IDebugSessionManager),n.__metadata("design:type",g.DebugSessionManager)],u.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(h.DebugViewModel),n.__metadata("design:type",h.DebugViewModel)],u.prototype,"debugViewModel",void 0),n.__decorate([(0,r.Autowired)(c.DebugConsoleService),n.__metadata("design:type",c.DebugConsoleService)],u.prototype,"debugConsoleService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(E.WorkspaceVariableContribution),n.__metadata("design:type",E.WorkspaceVariableContribution)],u.prototype,"workspaceVariables",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceConfigurations),n.__metadata("design:type",o.PreferenceConfigurations)],u.prototype,"preferenceConfigurations",void 0),n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),t.DebugConfigurationService=u=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],u)},20676:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugControllerView=t.DebugConfigurationContainerView=t.DebugActionBar=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),m=e(41869),E=e(77331),p=e(64582),_=e(66498),s=n.__importDefault(e(90463)),g=e(16067),c=e(84784),h=o.default.memo(({currentValue:v,options:f,dynamicOptions:a,onChangeConfiguration:b,isMultiRootWorkspace:y,addConfigurationLabel:S,editConfigurationLabel:A,toValue:T,workspaceRoots:w,isElectronRenderer:D})=>{const I=o.default.useCallback(R=>R&&R.length?R.map((M,k)=>{const B=y?`${M.configuration.name} (${new m.URI(M.workspaceFolderUri).displayName})`:M.configuration.name;return D?o.default.createElement("option",{key:k,value:T(M),label:B},B):o.default.createElement(l.Option,{key:k,value:T(M),label:B},B)}):D?[o.default.createElement("option",{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:(0,m.localize)("debug.action.no.configuration")},(0,m.localize)("debug.action.no.configuration"))]:[o.default.createElement(l.Option,{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:(0,m.localize)("debug.action.no.configuration")},(0,m.localize)("debug.action.no.configuration"))],[y]),O=o.default.useCallback(()=>{if(y){let R=S;const M=w.map((B,x)=>{const N=`${S} (${new m.URI(B).displayName})`;return R.length<N.length&&(R=N),D?o.default.createElement("option",{value:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,key:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,label:N},N):o.default.createElement(l.Option,{value:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,key:`${p.DEFAULT_ADD_CONFIGURATION_KEY}${x}`,label:N},N)});return(D?[o.default.createElement("option",{disabled:!0,key:"--",value:R.replace(/./g,"-")},R.replace(/./g,"-"))]:[o.default.createElement(l.Option,{disabled:!0,key:"--",value:"",className:s.default.select_divider_container})]).concat(M)}else{const R=S;return D?[o.default.createElement("option",{disabled:!0,key:"--",value:R.replace(/./g,"-")},R.replace(/./g,"-")),o.default.createElement("option",{value:p.DEFAULT_ADD_CONFIGURATION_KEY,key:p.DEFAULT_ADD_CONFIGURATION_KEY,label:R},R),o.default.createElement("option",{value:p.DEFAULT_EDIT_CONFIGURATION_KEY,key:p.DEFAULT_EDIT_CONFIGURATION_KEY,label:A},A)]:[o.default.createElement(l.Option,{disabled:!0,key:"--",value:R.replace(/./g,"-"),className:s.default.select_divider_container}),o.default.createElement(l.Option,{value:p.DEFAULT_ADD_CONFIGURATION_KEY,key:p.DEFAULT_ADD_CONFIGURATION_KEY,label:R},R),o.default.createElement(l.Option,{value:p.DEFAULT_EDIT_CONFIGURATION_KEY,key:p.DEFAULT_EDIT_CONFIGURATION_KEY,label:A},A)]}},[y,S]),P=o.default.useCallback(R=>{if(!y&&R&&R.length)return R.map(k=>{const B=k.label||k.type,x=`${p.DEFAULT_DYNAMIC_CONFIGURATION_KEY}${k.type}`,{popupHint:N}=k;return D?o.default.createElement("option",{key:x,value:x,label:B},B):o.default.createElement(l.Option,{key:x,value:x,label:B},N?o.default.createElement(l.Popover,{id:`debug_configuration_pop_${x}`,title:N,overlayClassName:s.default.config_popover_insert},B):B)})},[y,a]);return D?o.default.createElement(E.Select,{value:v,onChange:b,className:(0,r.default)(s.default.debug_selection,s.default.special_radius)},I(f),O(),a&&P(a)):o.default.createElement(l.Select,{value:v,onChange:b,className:(0,r.default)(s.default.debug_selection,s.default.special_radius),allowOptionsOverflow:!0},I(f),O(),a&&P(a))});t.DebugActionBar=o.default.memo(({runDebug:v,openConfiguration:f,openDebugConsole:a})=>o.default.createElement("div",{className:s.default.debug_actions},o.default.createElement(_.DebugAction,{id:"debug.action.start",icon:"start",label:(0,m.localize)("debug.action.start"),run:v}),o.default.createElement(_.DebugAction,{id:"debug.action.open.configuration",icon:"setting",label:(0,m.localize)("debug.action.open.configuration"),run:f}),o.default.createElement(_.DebugAction,{id:"debug.action.debug.console",icon:"terminal",label:(0,m.localize)("debug.action.debug.console"),run:a})));const u=()=>{const v=(0,m.useInjectable)(g.DebugConfigurationService),f=(0,m.useAutorun)(v.float);return o.default.createElement(o.default.Fragment,null,o.default.createElement(t.DebugControllerView,{className:s.default.debug_configuration_container}),!f&&o.default.createElement(c.DebugToolbarView,{float:!1,className:s.default.debug_action_bar_internal}))};t.DebugConfigurationContainerView=u;const d=v=>{const{toValue:f,openConfiguration:a,addConfiguration:b,openDebugConsole:y,updateConfiguration:S,start:A,showDynamicQuickPick:T,currentValue:w,configurationOptions:D,dynamicConfigurations:I,isMultiRootWorkspace:O,workspaceRoots:P}=(0,m.useInjectable)(g.DebugConfigurationService),R=(0,m.useAutorun)(I),M=(0,m.useAutorun)(w),k=(0,m.useAutorun)(D),B=(0,m.useAutorun)(O),x=(0,m.useAutorun)(P),N=(0,m.useInjectable)(m.AppConfig),j=(0,m.localize)("debug.action.add.configuration"),K=(0,m.localize)("debug.action.edit.configuration"),{CustomActionBar:U}=v,Q=o.default.useCallback(z=>{let G;if(typeof z=="object"?G=z.target.value:G=z,G.startsWith(p.DEFAULT_ADD_CONFIGURATION_KEY)){const Y=G.slice(p.DEFAULT_ADD_CONFIGURATION_KEY.length);b(Y?P[Y]:P[0])}else if(G===p.DEFAULT_EDIT_CONFIGURATION_KEY)a();else if(G.startsWith(p.DEFAULT_DYNAMIC_CONFIGURATION_KEY)){const Y=G.slice(p.DEFAULT_DYNAMIC_CONFIGURATION_KEY.length);T(Y)}else{const[Y,Z]=G.split(p.DEFAULT_CONFIGURATION_NAME_SEPARATOR),[$,H]=Z.split(p.DEFAULT_CONFIGURATION_INDEX_SEPARATOR);S(Y,$,+H)}},[]);return o.default.createElement("div",{className:(0,r.default)(s.default.debug_configuration_toolbar,v.className||"")},o.default.createElement(h,{currentValue:M,options:k,dynamicOptions:R,workspaceRoots:x,isMultiRootWorkspace:B,onChangeConfiguration:Q,addConfigurationLabel:j,editConfigurationLabel:K,toValue:f,isElectronRenderer:N.isElectronRenderer}),U?o.default.createElement(U,null):o.default.createElement(t.DebugActionBar,{runDebug:A,openConfiguration:a,openDebugConsole:y}))};t.DebugControllerView=d},96090:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugToolbarService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),m=e(37406),E=e(28423),p=e(64582),_=e(32756);let s=class{constructor(){this.state=(0,E.observableValue)(this,p.DebugState.Inactive),this.currentSession=(0,E.observableValue)(this,void 0),this.sessions=(0,E.observableValue)(this,[]),this.toolBarMenuMap=new Map,this.doStart=async()=>await this.model.start(),this.doRestart=async()=>{const c=this.instrumentReporter("restart"),h=await this.model.restart();return c(),h},this.doStop=async()=>{if(!this.model.currentSession)return;const c=this.instrumentReporter("stop"),h=await this.model.currentSession.terminate();return c(),h},this.doContinue=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("continue"),h=await this.model.currentThread.continue();return c(),h},this.doPause=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("pause"),h=await this.model.currentThread.pause();return c(),h},this.doStepOver=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepOver"),h=await this.model.currentThread.stepOver();return c(),h},this.doStepIn=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepIn"),h=await this.model.currentThread.stepIn();return c(),h},this.doStepOut=async()=>{if(!this.model.currentThread)return;const c=this.instrumentReporter("stepOut"),h=await this.model.currentThread.stepOut();return c(),h},this.updateCurrentSession=c=>{this.model.currentSession=c},this.model.onDidChange(()=>{this.updateToolBarMenu(),this.updateModel()})}get mainUIService(){return this.injector.get(m.IElectronMainUIService)}updateModel(){(0,E.transaction)(c=>{this.state.set(this.model.state,c),this.currentSession.set(this.model.currentSession,c),this.sessions.set(Array.from(this.model.sessions).filter(h=>h&&h.state>p.DebugState.Inactive),c)})}updateToolBarMenu(){const c=this.currentSession.get();if(c&&c.id&&!this.toolBarMenuMap.has(c.id)){const h=this.contextMenuService.createMenu({id:l.MenuId.DebugToolBar,contextKeyService:this.contextKeyService.createScoped()});c.on("terminated",()=>{this.toolBarMenuMap.delete(c.id)}),this.toolBarMenuMap.set(c.id,h)}}instrumentReporter(c){var h,u,d,v;const f=this.model.currentSession,a=(h=f.configuration)===null||h===void 0?void 0:h.type,b=this.model.currentThread,y=(u=b?.raw)===null||u===void 0?void 0:u.id;this.model.reportAction(f.id,y,c);const S={type:a,request:(v=(d=this.currentSession.get())===null||d===void 0?void 0:d.configuration)===null||v===void 0?void 0:v.request,sessionId:f.id,threadId:y};this.model.report(p.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION,c,S);const A=this.model.reportTime(p.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION_TIME,S);return()=>{A(c)}}};t.DebugToolbarService=s,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],s.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(l.AbstractContextMenuService),n.__metadata("design:type",l.AbstractContextMenuService)],s.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(_.DebugViewModel),n.__metadata("design:type",_.DebugViewModel)],s.prototype,"model",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],s.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],s.prototype,"injector",void 0),n.__decorate([o.memoize,n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],s.prototype,"mainUIService",null),t.DebugToolbarService=s=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],s)},84784:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugToolbarOverlayWidget=t.DebugToolbarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),m=e(97267),E=e(41869),p=e(25918),_=e(77331),s=e(1149),g=e(28423),c=e(64582),h=e(66498),u=e(5905),d=n.__importDefault(e(90463)),v=e(16067),f=e(96090);let a=class{constructor(){this._x=(0,g.observableValue)(this,0),this._line=(0,g.observableValue)(this,0),this._enable=(0,g.observableValue)(this,!1),this.y=0,this.last=0,this.origin=0,this.state=(0,g.derived)(this,D=>({enable:this._enable.read(D),x:this._x.read(D),line:this._line.read(D)}))}setEnable(D){(0,g.transaction)(I=>{this._enable.set(D,I)})}onMouseDown(D){this.setEnable(!0),this.y=D.clientY,this.origin=D.clientX}onMouseMove(D){D.stopPropagation(),(0,g.transaction)(I=>{this._enable.get()&&(this._x.set(D.clientX-this.origin+this.last,I),this._line.set(D.clientY-this.y>10?1:0,I))})}onMouseUp(){this.setEnable(!1),this.last=this._x.get()}};a=n.__decorate([(0,l.Injectable)()],a);const b=w=>{var D;const{state:I,toolBarMenuMap:O,doStop:P,doStepIn:R,doStepOut:M,doStepOver:k,doContinue:B,doRestart:x,doPause:N,currentSession:j,sessions:K,updateCurrentSession:U}=(0,E.useInjectable)(f.DebugToolbarService),Q=(0,E.useAutorun)(I),z=(0,E.useAutorun)(j),G=(0,E.useAutorun)(K),{isElectronRenderer:Y}=(0,E.useInjectable)(E.AppConfig),Z=!!z&&((D=z.configuration)===null||D===void 0?void 0:D.request)==="attach"&&!(0,u.isExtensionHostDebugging)(z.configuration),$=z&&z.id,H=(0,o.useCallback)(Ae=>{if(Ae&&Ae.id){const te=O.get(Ae.id);if(te)return o.default.createElement(p.InlineMenuBar,{menus:te})}return null},[O]),X=(0,o.useCallback)(Ae=>Z?o.default.createElement(h.DebugAction,{run:P,enabled:Ae!==c.DebugState.Inactive,icon:"disconnect",label:(0,E.localize)("debug.action.disattach")}):o.default.createElement(h.DebugAction,{run:P,enabled:Ae!==c.DebugState.Inactive,icon:"stop",label:(0,E.localize)("debug.action.stop")}),[P]),J=(0,o.useCallback)(Ae=>Ae===c.DebugState.Stopped?o.default.createElement(h.DebugAction,{run:B,icon:"continue",label:(0,E.localize)("debug.action.continue")}):o.default.createElement(h.DebugAction,{run:N,enabled:Q===c.DebugState.Running,icon:"pause",label:(0,E.localize)("debug.action.pause")}),[N,B]),re=(0,o.useCallback)(Ae=>Ae.map(te=>Y?o.default.createElement("option",{key:te.id,value:te.id},te.label):o.default.createElement(m.Option,{key:te.id,label:te.label,value:te.id},te.label)),[]),ce=(0,o.useCallback)(Ae=>{if(Ae.length>1)return o.default.createElement("div",{className:(0,r.default)(d.default.debug_selection)},Y?o.default.createElement(_.Select,{value:$,onChange:fe},re(Ae)):o.default.createElement(m.Select,{className:(0,r.default)(d.default.debug_selection,d.default.special_radius),size:w.float?"small":"default",value:$,options:Ae.map(te=>({label:te.label,value:te.id})),onChange:fe},re(Ae)))},[$]),fe=(0,o.useCallback)(Ae=>{let te=Ae;if(Y&&(te=Ae.target.value),!!G)for(const Le of G)Le.id===te&&U(Le)},[G,U]);return o.default.createElement("div",{className:(0,r.default)(d.default.debug_action_bar,w.className||"")},ce(G.filter(Ae=>!Ae.parentSession)),o.default.createElement("div",{className:d.default.debug_actions},J(Q),o.default.createElement(h.DebugAction,{run:k,enabled:Q===c.DebugState.Stopped,icon:"step",label:(0,E.localize)("debug.action.step-over")}),o.default.createElement(h.DebugAction,{run:R,enabled:Q===c.DebugState.Stopped,icon:"step-in",label:(0,E.localize)("debug.action.step-into")}),o.default.createElement(h.DebugAction,{run:M,enabled:Q===c.DebugState.Stopped,icon:"step-out",label:(0,E.localize)("debug.action.step-out")}),o.default.createElement(h.DebugAction,{run:x,enabled:Q!==c.DebugState.Inactive,icon:"reload",label:(0,E.localize)("debug.action.restart")}),X(Q),H(z)))};t.DebugToolbarView=b;const y="debug.toolbar.top",S="debug.toolbar.height",A=()=>{const w=(0,E.useInjectable)(E.PreferenceService),{isElectronRenderer:D}=(0,E.useInjectable)(E.AppConfig),I=(0,E.useInjectable)(s.LayoutViewSizeConfig),O=(0,E.useDesignStyles)(d.default.debug_toolbar_wrapper,"debug_toolbar_wrapper"),[P,R]=(0,o.useState)(0),M=(0,E.useInjectable)(a),k=(0,E.useAutorun)(M.state),B=(0,E.useInjectable)(f.DebugToolbarService),x=(0,E.useAutorun)(B.state);(0,o.useEffect)(()=>{const K=new E.DisposableCollection,U=w.get(y)||0;if(D){const Q=B.mainUIService;Q.isFullScreen(E.electronEnv.currentWindowId).then(z=>{R(z?U:U+I.calcOnlyTitleBarHeight())}),K.push(Q.on("fullScreenStatusChange",(z,G)=>{z===E.electronEnv.currentWindowId&&R(G?U:U+I.calcOnlyTitleBarHeight())}))}else R(U);return()=>{K.dispose()}},[]);const N=w.get(S)||0,j=(0,r.default)({[O]:!0,[d.default.debug_toolbar_wrapper_electron]:D});return x?o.default.createElement("div",{style:{pointerEvents:k.enable?"all":"none"},className:d.default.debug_toolbar_container,onMouseMove:K=>M.onMouseMove(K),onMouseUp:K=>M.onMouseUp()},o.default.createElement("div",{style:{transform:`translateX(${k.x}px) translateY(${P+k.line*N}px)`,height:`${N}px`},className:j},o.default.createElement("div",{className:(0,r.default)(d.default.debug_toolbar_drag_wrapper)},o.default.createElement("div",{className:(0,r.default)((0,E.getIcon)("drag"),d.default.debug_toolbar_drag),onMouseDown:K=>M.onMouseDown(K),onMouseMove:K=>M.onMouseMove(K)})),o.default.createElement(t.DebugToolbarView,{float:!0}))):(M.setEnable(!1),null)},T=()=>{const w=(0,E.useInjectable)(v.DebugConfigurationService);return(0,E.useAutorun)(w.float)?o.default.createElement(A,null):null};t.DebugToolbarOverlayWidget=T},53378:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterModel=void 0;const r=e(85608),o=e(76003),l=e(41869);let m=n=class{constructor(){this._parsedQueries=[]}set filterQuery(p){if(this._parsedQueries=[],p=p.trim(),p&&p!==""){const _=(0,l.splitGlobAware)(p,",").map(s=>s.trim()).filter(s=>!!s.length);for(const s of _)s.startsWith("!")?this._parsedQueries.push({type:"exclude",query:s.slice(1)}):this._parsedQueries.push({type:"include",query:s})}}filter(p){let _=!1,s=!1;for(const{type:g,query:c}of this._parsedQueries){if(g==="exclude"&&n.matchQuery(c,p))return!1;g==="include"&&(_=!0,n.matchQuery(c,p)&&(s=!0))}return _&&s}};t.DebugConsoleFilterModel=m,m.matchQuery=l.matchesFuzzy,t.DebugConsoleFilterModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0})],m)},1276:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(5905),m=e(53378),E=e(62665),{convertSimple2RegExpPattern:p}=o.strings;let _=class{constructor(){this._onDidValueChange=new o.Emitter,this._onDidFocus=new o.Emitter,this._filterText="",this.filterModel=new m.DebugConsoleFilterModel}get onDidValueChange(){return this._onDidValueChange.event}get onDidFocus(){return this._onDidFocus.event}focusInput(){this._onDidFocus.fire()}get filterText(){return this._filterText}setFilterText(g){return this._filterText!==g&&(this._filterText=g,this.filterModel.filterQuery=this._filterText,this._onDidValueChange.fire(this._filterText)),this}filter(g){const c=E.ansiToText(g);return this._filterText===""||this.filterModel.filter(c)}findMatches(g){const c=new RegExp(p(this._filterText.toLowerCase()),"g");if(this._filterText.trim()==="")return[];const h=(0,l.matchAll)(g.toLowerCase(),c),u=this._filterText.length;return u===0?[]:h.map(v=>({startIndex:v.index!==void 0?v.index:-1,count:u})).filter(v=>v.startIndex>=0)}};t.DebugConsoleFilterService=_,t.DebugConsoleFilterService=_=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],_)},4161:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleFilterView=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(14041)),l=e(15857),m=e(41869),E=e(1276),p=n.__importDefault(e(80315)),_=()=>{const s=(0,m.useInjectable)(E.DebugConsoleFilterService),[g,c]=o.default.useState(""),[h,u]=o.default.useState(),d=(0,m.useDesignStyles)(p.default.debug_console_filter,"debug_console_filter"),v=(0,m.useDesignStyles)(p.default.filter_input,"filter_input"),f=(0,r.default)(y=>{c(y),s.setFilterText(y),h&&h.addToHistory(y)},400);o.default.useEffect(()=>{const y=s.onDidValueChange(S=>{c(S)});return()=>{y.dispose()}},[]);const a=y=>{u(y)},b=y=>{h&&(y.keyCode===m.Key.ARROW_UP.keyCode?h.showPreviousValue():y.keyCode===m.Key.ARROW_DOWN.keyCode&&h.showNextValue())};return o.default.useEffect(()=>{const y=s.onDidFocus(()=>{h&&h.focus()});return()=>{y.dispose()}},[h]),o.default.createElement("div",{className:d},o.default.createElement(l.HistoryInputBox,{hasClear:!0,className:v,value:g,placeholder:(0,m.localize)("debug.console.filter.placeholder"),onValueChange:f,onReady:a,onKeyDown:b}))};t.DebugConsoleFilterView=_},80390:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleTreeModel=void 0;const r=e(85608),o=e(76003),l=e(97267),m=e(41869),E=e(98650);let p=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new m.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this._tempScrollOffset=0,this.init(s)}get isScrollBottom(){return this._tempScrollOffset=Math.max(this.state.scrollOffset,this._tempScrollOffset),this._tempScrollOffset===this.state.scrollOffset}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugConsoleTreeModel=p,p.DEFAULT_FLUSH_DELAY=100,t.DebugConsoleTreeModel=p=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[E.ExpressionContainer])],p)},75563:(L,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleSession=void 0;const n=e(85608),r=n.__importDefault(e(97331)),o=e(76003),l=e(43718),m=e(52416),E=e(92679),p=e(58542),_=e(29539),s=e(16170),g=e(80390);let c=class{constructor(u,d){this.session=u,this.treeModel=d,this.toDispose=new l.DisposableCollection,this.fireDidChange=(0,r.default)(()=>this.onDidChangeEmitter.fire(),50),this.onDidChangeEmitter=new l.Emitter,this.init()}resolveChildren(){return(this.treeModel.root.flattenedBranch||[]).map(d=>this.treeModel.root.getTreeNodeById(d))}getLastItem(){const{flattenedBranch:u}=this.treeModel.root,d=u?.length?u[u.length-1]:void 0;return d?this.treeModel.root.getTreeNodeById(d):void 0}init(){this.toDispose.push(this.session.on("output",u=>this.logOutput(this.session,u)))}addChildSession(u){this.toDispose.push(u.on("output",d=>this.logOutput(u,d)))}get onDidChange(){return this.onDidChangeEmitter.event}clear(){this.fireDidChange()}async logOutput(u,d){var v;const f="\x1B[2J",a=d.body,{category:b,variablesReference:y,source:S,line:A}=a;if(!this.treeModel)return;const T=b==="stderr"?l.MessageType.Error:b==="stdout"?l.MessageType.Info:b==="console"?l.MessageType.Warning:l.MessageType.Info;if(b==="telemetry"){this.logger.debug(`telemetry/${d.body.output}`,d.body.data);return}if(y){const w=new s.DebugConsoleNode({session:u,variablesReference:y,source:S,line:A},"",(v=this.treeModel)===null||v===void 0?void 0:v.root);await w.evaluate(),this.treeModel.root.insertItem(w)}else if(typeof a.output=="string"){let w=a.output;w.indexOf(f)>=0&&(this.clearConsole(),await this.insertItemWithAnsi((0,l.localize)("debug.console.consoleCleare"),l.MessageType.Info),w=w.substring(w.lastIndexOf(f)+f.length));const D=this.getLastItem();D&&!D.description.endsWith(`
28348
28352
  `)&&!D.description.endsWith(`\r
28349
28353
  `)&&D.severity===T?(this.treeModel.root.unlinkItem(D),await this.insertItemWithAnsi(D.description+a.output,T,S,A)):await this.insertItemWithAnsi(a.output,T,S,A)}this.fireDidChange()}async clearConsole(){var u;const d=(u=this.treeModel.root.flattenedBranch)===null||u===void 0?void 0:u.map(v=>this.treeModel.root.getTreeNodeById(v));if(d)for(const v of d)this.treeModel.root.unlinkItem(v)}async insertItemWithAnsi(u,d,v,f){var a;const b=await(0,E.handleANSIOutput)(u,this.linkDetector,this.themeService,void 0);this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,(a=this.treeModel)===null||a===void 0?void 0:a.root,this.linkDetector,b,d,v,f))}async execute(u){var d;this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,this.treeModel.root,this.linkDetector,void 0,l.MessageType.Info));const v=new s.DebugConsoleNode({session:this.session},u,(d=this.treeModel)===null||d===void 0?void 0:d.root);await v.evaluate(),this.treeModel.root.insertItem(v),this.fireDidChange()}append(u){var d;if(!u)return;const v=this.resolveChildren().slice(-1)[0];v instanceof s.AnsiConsoleNode&&v.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,l.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,l.MessageType.Info)),this.fireDidChange()}};t.DebugConsoleSession=c,n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],c.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(p.LinkDetector),n.__metadata("design:type",p.LinkDetector)],c.prototype,"linkDetector",void 0),n.__decorate([(0,o.Autowired)(m.IThemeService),n.__metadata("design:type",Object)],c.prototype,"themeService",void 0),t.DebugConsoleSession=c=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__param(0,(0,o.Optional)()),n.__param(1,(0,o.Optional)()),n.__metadata("design:paramtypes",[_.DebugSession,g.DebugConsoleTreeModel])],c)},15153:(L,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleModelService=void 0;const r=e(85608),o=e(76003),l=e(97267),m=e(41869),E=e(93899),p=e(64582),_=e(58542),s=e(16170),g=e(98650),c=e(32756),h=e(17280),u=e(80390),d=e(75563),v=r.__importDefault(e(80315)),{Path:f}=m.path;let a=n=class{constructor(){this.debugSessionModelMap=new Map,this._changeEventDispatchQueue=[],this.selectedDecoration=new l.Decoration(v.default.mod_selected),this.contextMenuDecoration=new l.Decoration(v.default.mod_actived),this.loadingDecoration=new l.Decoration(v.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new m.Emitter,this.onDidUpdateTreeModelEmitter=new m.Emitter,this.treeModelDisposableCollection=new m.DisposableCollection,this.debugConsoleDisposableCollection=new m.DisposableCollection,this.activeNodeDecoration=(y,S=!0)=>{var A;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),y){if(this.selectedNodes.length>0)for(const T of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(T);this.focusedNode,this.selectedDecoration.addTarget(y),this._focusedNode=y,this._selectedNodes=[y],S&&((A=this.treeModel)===null||A===void 0||A.dispatchChange())}},this.activeNodeActivedDecoration=y=>{var S;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this._focusedNode=void 0),this.contextMenuDecoration.addTarget(y),this._contextMenuNode=y,(S=this.treeModel)===null||S===void 0||S.dispatchChange()},this.enactiveNodeDecoration=()=>{var y;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,S)=>{var A;y.stopPropagation(),y.preventDefault();const{x:T,y:w}=y.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:E.MenuId.DebugConsoleContext,contextKeyService:this.debugContextKey.contextKeyScoped}),O=I.getMergedMenuNodes();I.dispose(),this.ctxMenuRenderer.show({anchor:{x:T,y:w},menuNodes:O,args:[D],onHide:()=>{window.requestAnimationFrame(()=>{this.debugContextKey.contextInDebugConsole.set(!1)})}})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=y=>{this.activeNodeDecoration(y)},this.handleTwistierClick=(y,S)=>{if(S===l.TreeNodeType.CompositeTreeNode){if(g.DebugConsoleNode.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.flushEventQueue=()=>{let y;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((A,T)=>{const w=f.pathDepth(A),D=f.pathDepth(T);return w-D});const S=[this._changeEventDispatchQueue[0]];for(const A of this._changeEventDispatchQueue)S.some(T=>A.indexOf(T)===0)||S.push(A);return y=(0,m.pSeries)(S.map(A=>async()=>{var T,w;const D=(w=(T=this.treeModel)===null||T===void 0?void 0:T.root)===null||w===void 0?void 0:w.getTreeNodeByPath(A);return D&&l.CompositeTreeNode.is(D)&&await D.refresh(),null})),this._changeEventDispatchQueue=[],y},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 y;return(y=this._activeDebugSessionModel)===null||y===void 0?void 0:y.treeModel}get debugConsoleSession(){var y;return(y=this._activeDebugSessionModel)===null||y===void 0?void 0:y.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 y;(y=this.treeModel)===null||y===void 0||y.root.collapsedAll()}copyAll(){var y;let S="";if(!(!(!((y=this.treeModel)===null||y===void 0)&&y.root)||!this.treeModel.root.children)){for(const A of this.treeModel.root.children)S+=this.getValidText(A)+`
28350
28354
  `;this.clipboardService.writeText(S.slice(0,-1))}}copy(y){y&&this.clipboardService.writeText(this.getValidText(y))}getValidText(y){return y.description.endsWith(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/cli-engine",
3
- "version": "3.7.1-next-1736320460.0",
3
+ "version": "3.7.1-next-1736417771.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.7.1-next-1736320460.0",
30
- "@opensumi/ide-core-common": "3.7.1-next-1736320460.0",
31
- "@opensumi/ide-core-node": "3.7.1-next-1736320460.0",
32
- "@opensumi/ide-express-file-server": "3.7.1-next-1736320460.0",
33
- "@opensumi/ide-extension": "3.7.1-next-1736320460.0",
34
- "@opensumi/ide-i18n": "3.7.1-next-1736320460.0",
35
- "@opensumi/ide-main-layout": "3.7.1-next-1736320460.0",
36
- "@opensumi/ide-startup": "3.7.1-next-1736320460.0",
29
+ "@opensumi/ide-core-browser": "3.7.1-next-1736417771.0",
30
+ "@opensumi/ide-core-common": "3.7.1-next-1736417771.0",
31
+ "@opensumi/ide-core-node": "3.7.1-next-1736417771.0",
32
+ "@opensumi/ide-express-file-server": "3.7.1-next-1736417771.0",
33
+ "@opensumi/ide-extension": "3.7.1-next-1736417771.0",
34
+ "@opensumi/ide-i18n": "3.7.1-next-1736417771.0",
35
+ "@opensumi/ide-main-layout": "3.7.1-next-1736417771.0",
36
+ "@opensumi/ide-startup": "3.7.1-next-1736417771.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": "401f98ebbf3c14901e40e9cb1909fe66ec7dca21"
75
+ "gitHead": "abb8fc92cfe1f2c732b393e2f1b954c083ae73f9"
76
76
  }