mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
fix #114233.
This commit is contained in:
parent
add5b32d95
commit
cd6fa35fb9
|
@ -627,11 +627,12 @@ export class NotebookService extends Disposable implements INotebookService, ICu
|
|||
}
|
||||
|
||||
async canResolve(viewType: string): Promise<boolean> {
|
||||
await this._extensionService.activateByEvent(`onNotebook:*`);
|
||||
|
||||
if (!this._notebookProviders.has(viewType)) {
|
||||
await this._extensionService.whenInstalledExtensionsRegistered();
|
||||
// this awaits full activation of all matching extensions
|
||||
await this._extensionService.activateByEvent(`onNotebook:${viewType}`);
|
||||
await this._extensionService.activateByEvent(`onNotebook:*`);
|
||||
if (this._notebookProviders.has(viewType)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue