Skip to content

Commit

Permalink
Only add ms-enable-electron-run-as-node flag to cloud shell process…
Browse files Browse the repository at this point in the history
… for Mac platform (#403)
  • Loading branch information
Will Lorey committed Jan 15, 2022
1 parent ebd8513 commit e3a0a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloudConsole/cloudConsole.ts
Expand Up @@ -273,7 +273,7 @@ export function createCloudConsole(api: AzureAccountExtensionApi, osName: OSName
shellArgs.shift();
}

if (!isWindows && semver.gte(version, '1.62.1')) {
if (process.platform === 'darwin' && semver.gte(version, '1.62.1')) {
// https://github.com/microsoft/vscode/issues/136987
// This fix can't be applied to all versions of VS Code. An error is thrown in versions less than the one specified
shellArgs.push('--ms-enable-electron-run-as-node');
Expand Down

0 comments on commit e3a0a2a

Please sign in to comment.