@@ -25,7 +25,7 @@ export class OutputService implements IOutputService {
2525
2626 private receivedOutput : { [ channel : string ] : string ; } ;
2727
28- private activeChannel : string ;
28+ private activeChannelId : string ;
2929
3030 private _onOutput : Emitter < IOutputEvent > ;
3131 private _onOutputChannel : Emitter < string > ;
@@ -45,7 +45,7 @@ export class OutputService implements IOutputService {
4545 this . receivedOutput = Object . create ( null ) ;
4646
4747 const channels = ( < IOutputChannelRegistry > Registry . as ( Extensions . OutputChannels ) ) . getChannels ( ) ;
48- this . activeChannel = this . storageService . get ( OUTPUT_ACTIVE_CHANNEL_KEY , StorageScope . WORKSPACE , channels && channels . length > 0 ? channels [ 0 ] : null ) ;
48+ this . activeChannelId = this . storageService . get ( OUTPUT_ACTIVE_CHANNEL_KEY , StorageScope . WORKSPACE , channels && channels . length > 0 ? channels [ 0 ] . id : null ) ;
4949 }
5050
5151 public get onOutput ( ) : Event < IOutputEvent > {
@@ -89,7 +89,7 @@ export class OutputService implements IOutputService {
8989 }
9090
9191 public getActiveChannel ( ) : string {
92- return this . activeChannel ;
92+ return this . activeChannelId ;
9393 }
9494
9595 public clearOutput ( channel : string ) : void {
@@ -100,12 +100,12 @@ export class OutputService implements IOutputService {
100100
101101 public showOutput ( channel : string , preserveFocus ?: boolean ) : TPromise < IEditor > {
102102 const panel = this . panelService . getActivePanel ( ) ;
103- if ( this . activeChannel === channel && panel && panel . getId ( ) === OUTPUT_PANEL_ID ) {
103+ if ( this . activeChannelId === channel && panel && panel . getId ( ) === OUTPUT_PANEL_ID ) {
104104 return TPromise . as ( < OutputPanel > panel ) ;
105105 }
106106
107- this . activeChannel = channel ;
108- this . storageService . store ( OUTPUT_ACTIVE_CHANNEL_KEY , this . activeChannel , StorageScope . WORKSPACE ) ;
107+ this . activeChannelId = channel ;
108+ this . storageService . store ( OUTPUT_ACTIVE_CHANNEL_KEY , this . activeChannelId , StorageScope . WORKSPACE ) ;
109109 this . _onActiveOutputChannel . fire ( channel ) ; // emit event that a new channel is active
110110
111111 return this . panelService . openPanel ( OUTPUT_PANEL_ID , ! preserveFocus ) . then ( ( outputPanel : OutputPanel ) => {
0 commit comments