notebook resolve should wait for * activated events.
This commit is contained in:
parent
f9ca74dcf1
commit
7e9abe577d
2 changed files with 4 additions and 2 deletions
|
@ -6,8 +6,7 @@
|
|||
"license": "MIT",
|
||||
"private": true,
|
||||
"activationEvents": [
|
||||
"*",
|
||||
"onNotebookEditor:notebookCoreTest"
|
||||
"*"
|
||||
],
|
||||
"main": "./out/notebookTestMain",
|
||||
"enableProposedApi": true,
|
||||
|
|
|
@ -203,6 +203,9 @@ export class NotebookService extends Disposable implements INotebookService, ICu
|
|||
|
||||
async canResolve(viewType: string): Promise<boolean> {
|
||||
if (!this._notebookProviders.has(viewType)) {
|
||||
await this.extensionService.whenInstalledExtensionsRegistered();
|
||||
// notebook providers/kernels/renderers might use `*` as activation event.
|
||||
await this.extensionService.activateByEvent(`*`);
|
||||
// this awaits full activation of all matching extensions
|
||||
await this.extensionService.activateByEvent(`onNotebookEditor:${viewType}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue