提交 edb50859 编写于 作者: M Matt Bierner

Use finally

上级 4d4f9638
......@@ -265,12 +265,9 @@ export class MainThreadWebviews implements MainThreadWebviewsShape {
onDidClickLink: uri => this.onDidClickLink(handle, uri),
onMessage: message => this._proxy.$onMessage(handle, message),
onDispose: () => {
const cleanUp = () => {
this._proxy.$onDidDisposeWebviewPanel(handle).finally(() => {
this._webviews.delete(handle);
};
this._proxy.$onDidDisposeWebviewPanel(handle).then(
cleanUp,
cleanUp);
});
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册