Delete webview input on dispose

This commit is contained in:
Matt Bierner
2018-02-28 00:10:35 -08:00
parent 103d106421
commit b60267b17c
3 changed files with 9 additions and 3 deletions

View File

@@ -150,11 +150,12 @@ export class ExtHostWebviews implements ExtHostWebviewsShape {
this._onDidChangeActiveWebview.fire(webview);
}
$onDidDisposeWeview(handle: WebviewHandle): void {
$onDidDisposeWeview(handle: WebviewHandle): Thenable<void> {
const webview = this._webviews.get(handle);
if (webview) {
webview.onDisposeEmitter.fire();
}
return Promise.resolve(void 0);
}
$onDidChangePosition(handle: WebviewHandle, newPosition: Position): void {