src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.ts/WebviewEditorService/revealWebview
class WebviewEditorService:	public revealWebview(
		webview: WebviewInput,
		group: IEditorGroup,
		preserveFocus: boolean
	): void {
		const topLevelEditor = this.findTopLevelEditorForWebview(webview);
		if (webview.group === group.id) {
			if (this._editorService.activeEditor === topLevelEditor) {
				return;
			}

			this._editorService.openEditor(topLevelEditor, {
				preserveFocus,
				// preserve pre 1.38 behaviour to not make group active when preserveFocus: true
				// but make sure to restore the editor to fix https://github.com/microsoft/vscode/issues/79633
				activation: preserveFocus ? EditorActivation.RESTORE : undefined
			}, webview.group);
		} else {
			const groupView = this._editorGroupService.getGroup(webview.group!);
			if (groupView) {
				groupView.moveEditor(topLevelEditor, group, { preserveFocus });
			}
		}
	}