提交 aef33be9 编写于 作者: B Benjamin Pasero

Missing workspace prevents start of vscode (fixes #35871)

上级 b862b187
......@@ -70,7 +70,14 @@ export class WorkspacesMainService implements IWorkspacesMainService {
return null; // does not look like a valid workspace config file
}
return this.doResolveWorkspace(path, readFileSync(path, 'utf8'));
let contents: string;
try {
contents = readFileSync(path, 'utf8');
} catch (error) {
return null; // invalid workspace
}
return this.doResolveWorkspace(path, contents);
}
private isWorkspacePath(path: string): boolean {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册