fix defaultLayout with contributed fs providers
This commit is contained in:
parent
69e8f8ea0c
commit
6881079a37
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue