Skip to content

Commit 31473fe

Browse files
committed
output: show labels in output channel dropdown
1 parent d444862 commit 31473fe

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/vs/workbench/parts/output/browser/outputActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class SwitchOutputActionItem extends SelectActionItem {
122122
}
123123

124124
private static getChannels(outputService: IOutputService): string[] {
125-
const contributedChannels = (<IOutputChannelRegistry>Registry.as(Extensions.OutputChannels)).getChannels().map(channelData => channelData.id);
125+
const contributedChannels = (<IOutputChannelRegistry>Registry.as(Extensions.OutputChannels)).getChannels().map(channelData => channelData.displayName);
126126
return contributedChannels.sort(); // sort by name
127127
}
128128
}

src/vs/workbench/parts/output/common/output.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export var IOutputService = createDecorator<IOutputService>(OUTPUT_SERVICE_ID);
5454
export interface IOutputService {
5555
serviceId: ServiceIdentifier<any>;
5656

57+
/**
58+
* Given the channel id returns the output channel instance.
59+
*/
5760
getOutputChannel(id: string): IOutputChannel;
5861

5962
/**
@@ -62,25 +65,25 @@ export interface IOutputService {
6265
getActiveChannelId(): string;
6366

6467
/**
65-
* Allows to register on Output events
68+
* Allows to register on Output events.
6669
*/
6770
onOutput: Event<IOutputEvent>;
6871

6972
/**
70-
* Allows to register on a new Output channel getting filled with output
73+
* Allows to register on a new Output channel getting filled with output.
7174
*/
7275
onOutputChannel: Event<string>;
7376

7477
/**
75-
* Allows to register on active output channel change
78+
* Allows to register on active output channel change.
7679
*/
7780
onActiveOutputChannel: Event<string>;
7881
}
7982

8083
export interface IOutputChannel {
8184

8285
/**
83-
* The received output content.
86+
* Returns the received output content.
8487
*/
8588
getContent(): string;
8689

@@ -95,7 +98,7 @@ export interface IOutputChannel {
9598
show(preserveFocus?: boolean): TPromise<IEditor>;
9699

97100
/**
98-
* Clears all received output.
101+
* Clears all received output for this channel.
99102
*/
100103
clear(): void;
101104
}

0 commit comments

Comments
 (0)