提交 6972d5dc 编写于 作者: S Sandeep Somavarapu

Fix #93215

上级 8215c509
...@@ -139,8 +139,8 @@ export class OutputViewPane extends ViewPane { ...@@ -139,8 +139,8 @@ export class OutputViewPane extends ViewPane {
private setInput(channel: IOutputChannel): void { private setInput(channel: IOutputChannel): void {
this.channelId = channel.id; this.channelId = channel.id;
const descriptor = this.outputService.getChannelDescriptor(channel.id)!; const descriptor = this.outputService.getChannelDescriptor(channel.id);
CONTEXT_ACTIVE_LOG_OUTPUT.bindTo(this.contextKeyService).set(!!descriptor.file && descriptor.log); CONTEXT_ACTIVE_LOG_OUTPUT.bindTo(this.contextKeyService).set(!!descriptor?.file && descriptor?.log);
this.editorPromise = this.editor.setInput(this.createInput(channel), EditorOptions.create({ preserveFocus: true }), CancellationToken.None) this.editorPromise = this.editor.setInput(this.createInput(channel), EditorOptions.create({ preserveFocus: true }), CancellationToken.None)
.then(() => this.editor); .then(() => this.editor);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册