Fix webview dispose potentially closing unrelated editors

This commit is contained in:
Matt Bierner
2018-02-28 17:56:05 -08:00
parent 5994f5f90e
commit 9ea92b3019

View File

@@ -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 {