Fix onDidChangeActiveWeview not getting fired when switching away from webviews

This commit is contained in:
Matt Bierner
2018-02-28 17:52:13 -08:00
parent 47ec334ed9
commit 5994f5f90e

View File

@@ -148,10 +148,7 @@ export class ExtHostWebviews implements ExtHostWebviewsShape {
}
$onDidChangeActiveWeview(handle: WebviewHandle | undefined): void {
const webview = this.getWebview(handle);
if (webview) {
this._onDidChangeActiveWebview.fire(webview);
}
this._onDidChangeActiveWebview.fire(this.getWebview(handle));
}
$onDidDisposeWeview(handle: WebviewHandle): Thenable<void> {