Can't initialize PowerShell session in VSCode for Mac

Solution 1:

This drives me nuts every time there's an update... luckily, the fix is easy.

~/.vscode/extensions/ms-vscode.powershell-2020.1.0/modules/PowerShellEditorServices/Start-EditorServices.ps1

Around line 272, change

chmod $DEFAULT_USER_MODE $PipeFile

to

/bin/chmod $DEFAULT_USER_MODE $PipeFile