mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 18:12:45 -05:00
Fix webview dispose potentially closing unrelated editors
This commit is contained in:
@@ -467,7 +467,9 @@ export class MainThreadWebviews implements MainThreadWebviewsShape {
|
||||
|
||||
$disposeWebview(handle: WebviewHandle): void {
|
||||
const webview = this.getWebview(handle);
|
||||
this._editorService.closeEditors({ positionOne: [webview], positionTwo: [webview], positionThree: [webview] });
|
||||
if (webview) {
|
||||
this._editorService.closeEditor(webview.position, webview);
|
||||
}
|
||||
}
|
||||
|
||||
$setTitle(handle: WebviewHandle, value: string): void {
|
||||
|
||||
Reference in New Issue
Block a user