mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
build: use swiftshader on macOS CI (#162568)
This commit is contained in:
parent
f74e6923dc
commit
94ec9025ea
|
@ -49,6 +49,15 @@ export async function resolveElectronConfiguration(options: LaunchOptions): Prom
|
|||
args.push('--disable-dev-shm-usage');
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
// On macOS force software based rendering since we are seeing GPU process
|
||||
// hangs when initializing GL context. This is very likely possible
|
||||
// that there are new displays available in the CI hardware and
|
||||
// the relevant drivers couldn't be loaded via the GPU sandbox.
|
||||
// TODO(deepak1556): remove this switch with Electron update.
|
||||
args.push('--use-gl=swiftshader');
|
||||
}
|
||||
|
||||
if (remote) {
|
||||
// Replace workspace path with URI
|
||||
args[0] = `--${workspacePath.endsWith('.code-workspace') ? 'file' : 'folder'}-uri=vscode-remote://test+test/${URI.file(workspacePath).path}`;
|
||||
|
|
Loading…
Reference in a new issue