提交 64023bd1 编写于 作者: M Matt Bierner

Show loading indicator while a custom editor is resolving

Part of #81740
上级 ccf0a562
...@@ -258,7 +258,10 @@ export class WebviewEditorService implements IWebviewEditorService { ...@@ -258,7 +258,10 @@ export class WebviewEditorService implements IWebviewEditorService {
): Promise<void> { ): Promise<void> {
const didRevive = await this.tryRevive(webview); const didRevive = await this.tryRevive(webview);
if (!didRevive) { if (!didRevive) {
this._revivalPool.add(webview, () => { }); let resolve: () => void;
const promise = new Promise<void>(r => { resolve = r; });
this._revivalPool.add(webview, resolve!);
return promise;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册