提交 99d63cc0 编写于 作者: S Sandeep Somavarapu

Fix #90794

上级 a386a871
......@@ -112,7 +112,7 @@ export class OutputService extends Disposable implements IOutputService, ITextMo
}
const outputView = await this.viewsService.openView<OutputViewPane>(OUTPUT_VIEW_ID, !preserveFocus);
if (outputView && channel) {
outputView!.showChannel(channel, !!preserveFocus);
outputView.showChannel(channel, !!preserveFocus);
}
}
......
......@@ -130,8 +130,11 @@ export class OutputViewPane extends ViewPane {
private onDidChangeVisibility(visible: boolean): void {
this.editor.setVisible(visible);
const channel = this.channelId ? this.outputService.getChannel(this.channelId) : undefined;
if (visible && channel) {
let channel: IOutputChannel | undefined = undefined;
if (visible) {
channel = this.channelId ? this.outputService.getChannel(this.channelId) : this.outputService.getActiveChannel();
}
if (channel) {
this.setInput(channel);
} else {
this.clearInput();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册