From 6881079a3799469ce350ed8728b6681b0d37675d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Wed, 14 Jul 2021 11:00:05 +0200 Subject: [PATCH] fix defaultLayout with contributed fs providers --- src/vs/workbench/common/editor.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/common/editor.ts b/src/vs/workbench/common/editor.ts index 15f5e47dca809..241e412eb4b0b 100644 --- a/src/vs/workbench/common/editor.ts +++ b/src/vs/workbench/common/editor.ts @@ -1093,7 +1093,14 @@ export async function pathsToEditors(paths: IPathData[] | undefined, fileService const editors = await Promise.all(paths.map(async path => { const resource = URI.revive(path.fileUri); - if (!resource || !fileService.canHandleResource(resource)) { + + if (!resource) { + return; + } + + await fileService.activateProvider(resource.scheme); + + if (!fileService.canHandleResource(resource)) { return; }