/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/import{IActionRunner}from'vs/base/common/actions';import{IViewletView}from'vs/workbench/browser/viewlet';import{ServiceIdentifier}from'vs/platform/instantiation/common/instantiation';// Debug view registrationexportinterfaceIDebugViewConstructorSignature{new(actionRunner:IActionRunner,viewletSetings:any,...services:{serviceId:ServiceIdentifier<any>;}[]):IViewletView;}exportinterfaceIDebugViewRegistry{registerDebugView(view:IDebugViewConstructorSignature,order:number):void;getDebugViews():IDebugViewConstructorSignature[];}classDebugViewRegistryImplimplementsIDebugViewRegistry{privatedebugViews:{view:IDebugViewConstructorSignature,order:number}[];constructor(){this.debugViews=[];}publicregisterDebugView(view:IDebugViewConstructorSignature,order:number):void{this.debugViews.push({view,order});}publicgetDebugViews():IDebugViewConstructorSignature[]{returnthis.debugViews.sort((first,second)=>first.order-second.order).map(viewWithOrder=>viewWithOrder.view);}}exportvarDebugViewRegistry=<IDebugViewRegistry>newDebugViewRegistryImpl();