When guests in a VS Code Live Share session try to run VS Code Python extension 'cells', they will get the following message in an error pop-up dialog in the lower right:
The host doesn’t allow running this command.
If needed, ask them to enable it.
Clicking on the "More info" button of the pop-up dialog, directs the guest to https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/security. I cannot find on this page where it describes how to allow guests to use certain features of particular VS Code extensions.
As a host, how do I allow guests to my VS Code Live Share session to run VS Code Python extension 'cells'?
Be sure you've started the VS Code at least once and waited for the install to complete in the status bar. If that doesn't work, try running the "Live Share: Launcher Setup" command. Linux users: If prompted to enter your admin (sudo) password when running the above command, please do so.
Update (May 7, 2018): Visual Studio Live Share is now publicly available. You can get started using Live Share today! We are excited to announce that we're working on "Visual Studio Live Share", which enables developers using Visual Studio 2017 or Visual Studio Code to collaborate in real-time!
Welcome to Visual Studio Live Share! Live Share enables you to collaboratively edit and debug with others in real time, regardless of the programming languages you're using or app types you're building.
Analogous to Guest Debugging (https://github.com/MicrosoftDocs/live-share/issues/2154), there is an option to "Allow Guest Command Control" in the VSCode Live Share extension settings (in VSCode, open the extensions sidebar - under "Installed", click on the settings wheel next to "Live Share" - Extension Settings). Enabling this should do the trick (could not test this, yet).
There may be some additional issues depending on version: https://github.com/MicrosoftDocs/live-share/issues/3121
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With