fix defaultLayout with contributed fs providers

This commit is contained in:
João Moreno 2021-07-14 11:00:05 +02:00
parent 69e8f8ea0c
commit 6881079a37
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -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;
}