Skip to content

Commit 118f9ec

Browse files
authored
1 parent d04f348 commit 118f9ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/workbench/contrib/output/browser/outputView.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class OutputViewPane extends FilterViewPane {
5454

5555
private readonly editor: OutputEditor;
5656
private channelId: string | undefined;
57-
private editorPromise: CancelablePromise<OutputEditor> | null = null;
57+
private editorPromise: CancelablePromise<void> | null = null;
5858

5959
private readonly scrollLockContextKey: IContextKey<boolean>;
6060
get scrollLock(): boolean { return !!this.scrollLockContextKey.get(); }
@@ -180,8 +180,7 @@ export class OutputViewPane extends FilterViewPane {
180180
const input = this.createInput(channel);
181181
if (!this.editor.input || !input.matches(this.editor.input)) {
182182
this.editorPromise?.cancel();
183-
this.editorPromise = createCancelablePromise(token => this.editor.setInput(this.createInput(channel), { preserveFocus: true }, Object.create(null), token)
184-
.then(() => this.editor));
183+
this.editorPromise = createCancelablePromise(token => this.editor.setInput(this.createInput(channel), { preserveFocus: true }, Object.create(null), token));
185184
}
186185

187186
}

0 commit comments

Comments
 (0)