Skip to content

Commit 67534ca

Browse files
authored
Dev Containers fails to start on VS Code 1.102.0 with TypeError: Cannot read properties of null (reading 'filesToOpen') (fix #255254) (#255330)
1 parent 1be8fda commit 67534ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/browser/actions/workspaceCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ CommandsRegistry.registerCommand({
199199
};
200200

201201
const workspaceToOpen: IWorkspaceToOpen | IFolderToOpen = (hasWorkspaceFileExtension(uri) || uri.scheme === Schemas.untitled) ? { workspaceUri: uri } : { folderUri: uri };
202-
const filesToOpen: IFileToOpen[] = typeof arg === 'object' ? arg.filesToOpen?.map(file => ({ fileUri: URI.from(file, true) })) ?? [] : [];
202+
const filesToOpen: IFileToOpen[] = arg?.filesToOpen?.map(file => ({ fileUri: URI.from(file, true) })) ?? [];
203203
return commandService.executeCommand('_files.windowOpen', [workspaceToOpen, ...filesToOpen], options);
204204
},
205205
metadata: {

0 commit comments

Comments
 (0)