From cd6fa35fb9452d6b73535a80f99307d7c270c3c7 Mon Sep 17 00:00:00 2001 From: rebornix Date: Fri, 22 Jan 2021 13:20:46 -0800 Subject: [PATCH] fix #114233. --- .../workbench/contrib/notebook/browser/notebookServiceImpl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebookServiceImpl.ts b/src/vs/workbench/contrib/notebook/browser/notebookServiceImpl.ts index aec010de917..5b45735d114 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookServiceImpl.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookServiceImpl.ts @@ -627,11 +627,12 @@ export class NotebookService extends Disposable implements INotebookService, ICu } async canResolve(viewType: string): Promise { + 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 { -- GitLab