提交 4ca396cb 编写于 作者: I isidor

output: fixes #4128, fixes #4129

上级 6c9110f2
......@@ -61,11 +61,18 @@ export class OutputEditorInput extends StringEditorInput {
this.toDispose.push(this.outputService.onActiveOutputChannel(() => this.scheduleOutputAppend()));
this.toDispose.push(this.eventService.addListener2(EventType.COMPOSITE_OPENED, (e: CompositeEvent) => {
if (e.compositeId === OUTPUT_PANEL_ID) {
this.scheduleOutputAppend();
this.appendOutput();
}
}));
this.appendOutputScheduler = new RunOnceScheduler(() => {
if (this.isVisible()) {
this.appendOutput();
}
}, OutputEditorInput.OUTPUT_DELAY);
}
private appendOutput(): void {
if (this.value.length + this.bufferedOutput.length > MAX_OUTPUT_LENGTH) {
this.setValue(this.outputService.getOutput(this.channel));
} else {
......@@ -73,12 +80,9 @@ export class OutputEditorInput extends StringEditorInput {
}
this.bufferedOutput = '';
if (this.isVisible()) {
const panel = this.panelService.getActivePanel();
(<OutputPanel>panel).revealLastLine();
}
}, OutputEditorInput.OUTPUT_DELAY);
}
private onOutputReceived(e: IOutputEvent): void {
if (this.outputSet && e.channel === this.channel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册