mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 04:17:37 +00:00
Fix show preview not re-showing existing preview
This commit is contained in:
parent
b6a862cc49
commit
02bd0a10e5
1 changed files with 3 additions and 3 deletions
|
@ -485,11 +485,11 @@ 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 });
|
||||
}
|
||||
}
|
||||
|
||||
async $sendMessage(handle: WebviewHandle, message: any): Promise<boolean> {
|
||||
const webviewInput = this.getWebview(handle);
|
||||
|
|
Loading…
Reference in a new issue