提交 8888fdd3 编写于 作者: I isidor

output: reveal last line on output recieved

上级 541e7546
......@@ -107,7 +107,7 @@ export interface IOutputService {
onOutputChannel: Event<string>;
/**
* Reveals the last line on the editor that has the passed channel set as output.
* Reveals the last line on the currently opened channel.
*/
revealLastLine(): void;
}
......
......@@ -56,6 +56,9 @@ export class OutputEditorInput extends StringEditorInput {
if (e.output) {
this.append(e.output);
this.trim(OutputEditorInput.MAX_OUTPUT_LINES);
if (this.outputService.getActiveChannel() === this.channel) {
this.outputService.revealLastLine();
}
} else if (e.output === null) {
this.clearValue(); // special output indicates we should clear
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册