with @jrieken use BufferedContent to optimize output appending

fixes #22804
This commit is contained in:
isidor
2017-03-21 16:17:28 +01:00
parent 36a125ed10
commit aca643ec36
4 changed files with 147 additions and 85 deletions

View File

@@ -43,7 +43,7 @@ export class MainThreadOutputService extends MainThreadOutputServiceShape {
}
private _getChannel(channelId: string, label: string): IOutputChannel {
if (Registry.as<IOutputChannelRegistry>(Extensions.OutputChannels).getChannels().every(channel => channel.id !== channelId)) {
if (!Registry.as<IOutputChannelRegistry>(Extensions.OutputChannels).getChannel(channelId)) {
Registry.as<IOutputChannelRegistry>(Extensions.OutputChannels).registerChannel(channelId, label);
}