As of June 2022, VS Code's Live Share still does not work well on Apple silicon Macs (M1/M2 series) without Rosetta 2. Although this bug is tracked in the official issue tracker on GitHub, unfortuneately, Live Share extension is not open source, so no outsiders can send any patch to address this bug to the upstream. Instead, I'd like to share a workaround I found:1
-
Install .NET SDK 6 (arm64) or higher. It's also available on Homebrew Cask:
brew install --cask dotnet-sdk
. -
Replace vsls-agent (no postfix) in ~/.vscode/extensions/ms-vsliveshare.vsliveshare-*/dotnet_modules/ directory (use your version instead of *) with vsls-agent included in this Gist.
-
Make it executable:
chmod +x ~/.vscode/extensions/ms-vsliveshare.vsliveshare-*/dotnet_modules/vsls-agent
. -
Reload VS Code.
That's all. Of course, this dirty fix will be overwritten when the Live Share extension is upgraded.
Absolutely brilliant - working for me too, thanks so much!
If anyone else is using a development container you can also use this approach inside that (although you'll need to install .NET inside the container inside the container and add it to your path first, rather than using brew). Could maybe be incorporated into the container's Dockerfile to work around being cleared on rebuild.