@@ -27,7 +27,7 @@ export class OutputEditorInput extends StringEditorInput {
2727 private static instances : { [ channel : string ] : OutputEditorInput ; } = Object . create ( null ) ;
2828
2929 private outputSet : boolean ;
30- private channel : string ;
30+ private channelId : string ;
3131 private bufferedOutput : string ;
3232 private toDispose : lifecycle . IDisposable [ ] ;
3333 private appendOutputScheduler : RunOnceScheduler ;
@@ -47,15 +47,15 @@ export class OutputEditorInput extends StringEditorInput {
4747 }
4848
4949 constructor (
50- channel : string ,
50+ channelId : string ,
5151 @IInstantiationService instantiationService : IInstantiationService ,
5252 @IOutputService private outputService : IOutputService ,
5353 @IPanelService private panelService : IPanelService ,
5454 @IEventService private eventService : IEventService
5555 ) {
56- super ( nls . localize ( 'output' , "Output" ) , channel ? nls . localize ( 'outputChannel' , "for '{0}'" , channel ) : '' , '' , OUTPUT_MIME , true , instantiationService ) ;
56+ super ( nls . localize ( 'output' , "Output" ) , channelId ? nls . localize ( 'outputChannel' , "for '{0}'" , channelId ) : '' , '' , OUTPUT_MIME , true , instantiationService ) ;
5757
58- this . channel = channel ;
58+ this . channelId = channelId ;
5959 this . bufferedOutput = '' ;
6060 this . toDispose = [ ] ;
6161 this . toDispose . push ( this . outputService . onOutput ( this . onOutputReceived , this ) ) ;
@@ -75,7 +75,7 @@ export class OutputEditorInput extends StringEditorInput {
7575
7676 private appendOutput ( ) : void {
7777 if ( this . value . length + this . bufferedOutput . length > MAX_OUTPUT_LENGTH ) {
78- this . setValue ( this . outputService . getOutput ( this . channel ) ) ;
78+ this . setValue ( this . outputService . getOutputChannel ( this . channelId ) . getContent ( ) ) ;
7979 } else {
8080 this . append ( this . bufferedOutput ) ;
8181 }
@@ -86,7 +86,7 @@ export class OutputEditorInput extends StringEditorInput {
8686 }
8787
8888 private onOutputReceived ( e : IOutputEvent ) : void {
89- if ( this . outputSet && e . channelId === this . channel ) {
89+ if ( this . outputSet && e . channelId === this . channelId ) {
9090 if ( e . output ) {
9191 this . bufferedOutput = strings . appendWithLimit ( this . bufferedOutput , e . output , MAX_OUTPUT_LENGTH ) ;
9292 this . scheduleOutputAppend ( ) ;
@@ -98,7 +98,7 @@ export class OutputEditorInput extends StringEditorInput {
9898
9999 private isVisible ( ) : boolean {
100100 const panel = this . panelService . getActivePanel ( ) ;
101- return panel && panel . getId ( ) === OUTPUT_PANEL_ID && this . outputService . getActiveChannel ( ) === this . channel ;
101+ return panel && panel . getId ( ) === OUTPUT_PANEL_ID && this . outputService . getActiveChannel ( ) === this . channelId ;
102102 }
103103
104104 private scheduleOutputAppend ( ) : void {
@@ -118,21 +118,21 @@ export class OutputEditorInput extends StringEditorInput {
118118 return model ;
119119 }
120120
121- this . setValue ( this . outputService . getOutput ( this . channel ) ) ;
121+ this . setValue ( this . outputService . getOutputChannel ( this . channelId ) . getContent ( ) ) ;
122122 this . outputSet = true ;
123123
124124 return model ;
125125 } ) ;
126126 }
127127
128128 public getChannel ( ) : string {
129- return this . channel ;
129+ return this . channelId ;
130130 }
131131
132132 public matches ( otherInput : any ) : boolean {
133133 if ( otherInput instanceof OutputEditorInput ) {
134134 let otherOutputEditorInput = < OutputEditorInput > otherInput ;
135- if ( otherOutputEditorInput . getChannel ( ) === this . channel ) {
135+ if ( otherOutputEditorInput . getChannel ( ) === this . channelId ) {
136136 return super . matches ( otherInput ) ;
137137 }
138138 }
0 commit comments