Skip to content

Commit 617fc49

Browse files
committed
Reveal Webview in active view column.
1 parent b8c2e71 commit 617fc49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/api/electron-browser/mainThreadWebview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
200200
return;
201201
}
202202

203-
const targetGroup = this._editorGroupService.getGroup(viewColumnToEditorGroup(this._editorGroupService, showOptions.viewColumn));
203+
const targetGroup = this._editorGroupService.getGroup(viewColumnToEditorGroup(this._editorGroupService, showOptions.viewColumn)) || this._editorGroupService.getGroup(webview.group || 0);
204204
if (targetGroup) {
205-
this._webviewService.revealWebview(webview, targetGroup || this._editorGroupService.getGroup(webview.group || ACTIVE_GROUP), !!showOptions.preserveFocus);
205+
this._webviewService.revealWebview(webview, targetGroup, !!showOptions.preserveFocus);
206206
}
207207
}
208208

0 commit comments

Comments
 (0)