Fix show preview not re-showing existing preview

This commit is contained in:
Matt Bierner 2018-03-01 11:02:00 -08:00
parent b6a862cc49
commit 02bd0a10e5

View file

@ -485,10 +485,10 @@ export class MainThreadWebviews implements MainThreadWebviewsShape {
$show(handle: WebviewHandle, column: Position): void {
const webviewInput = this.getWebview(handle);
if (webviewInput.position === column) {
return;
this._editorService.openEditor(webviewInput, { preserveFocus: true }, column);
} else {
this._editorGroupService.moveEditor(webviewInput, webviewInput.position, column, { preserveFocus: true });
}
this._editorGroupService.moveEditor(webviewInput, webviewInput.position, column, { preserveFocus: true });
}
async $sendMessage(handle: WebviewHandle, message: any): Promise<boolean> {