Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow guests to a VS Code Live Share session to run Python extension 'cells'

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'?

like image 995
Clay Avatar asked Feb 11 '19 15:02

Clay


People also ask

Why live share is not working in VS Code?

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.

Can you collaborate on Visual Studio code?

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!

Can you live share on Visual Studio?

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.


1 Answers

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

like image 108
ra0 Avatar answered Sep 23 '22 23:09

ra0