Skip to content

Commit

Permalink
fix defaultLayout with contributed fs providers
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jul 14, 2021
1 parent 69e8f8e commit 6881079
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/vs/workbench/common/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6881079

Please sign in to comment.