mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
with @jrieken use BufferedContent to optimize output appending
fixes #22804
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user