Don't set resource on webviews

Fixes #46217
This commit is contained in:
Matt Bierner
2018-03-20 15:53:07 -07:00
parent dd3ce6c89e
commit 954c5ae24f
4 changed files with 13 additions and 9 deletions

View File

@@ -141,7 +141,7 @@ export class WebviewEditor extends BaseWebviewEditor {
return undefined;
}
if (this.input && this.input.getResource().fsPath !== input.getResource().fsPath) {
if (this.input) {
(this.input as WebviewInput).releaseWebview(this);
this._webview = undefined;
this.webviewContent = undefined;