-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to add my service to the include list to support my extension's use of shareService() #2896
Comments
I'm experiencing this behavior too. Version: 1.38.1 (system setup) |
Thanks for reporting this issue. We are going to prioritize this and figure out why the method is behaving unexpectedly. |
This should be resolved now! Please let us know if you’re still encountering issues 👍 |
Hi @lostintangent - unless I am doing something wrong whatever changed did not fix the issue for me. I am willing to do a live-share session to figure it out :) But you can also see my code in the above mention. -VSCODE- -NPM- Live Share Extension: 1.0.1783 |
I still encounter this issue with my project. |
@parithon , do you have the |
Yes, I do. |
To test, I changed my extension id and publisher to match those used by vscode-test-explorer-liveshare and also changed the shared service name to match what is used in that extension and it returned an object as expected. |
@parithon Hmm, that seems to indicate that our logic for the API permissions regressed, and is only allowing whitelisted extensions to call it. We should obviously fix that 😁 As you discovered, you can unblock yourself by using an the publisher/ID of an extension that’s already allowed, but we can also whitelist your extension if you can share a pointer to it, so we can see what it does and how it uses this API (we limit access to this API so we can ensure it’s used properly). |
I am the co-author of the following: https://github.com/clarkio/vscode-twitch-highlighter |
Sorry to bump, but I just wanted to check if whitelisting was still required/resolved for shareService, as I can't find this in the docs and have been only having null returned. I've been fiddling with the API in order to better integrate LiveShare with Vscode-R, but this has been brick walling me a bit. I can open a new issue if that would suit! Thanks! :) |
Hey! Currently, the allow list is required. We could add the R extension to the list though, and get you unblocked. Would you mind sharing how you plan to use the Live Share API with this extension? |
Thanks! At the moment, guest sessions for Vscode-R are unable to use the environment viewer due to it relying on local files for data. In order to have a synced environment viewer, I was hoping to use RPC to request file content from the host, to feed to the guest session. |
Just thought I would bump this! For an example of how this would be used in the extension, please see this fork of vscode-r: https://github.com/ElianHugh/vscode-R-Live-Share/blob/master/src/rShare.ts Essentially, the guest requests file content from the host, the host reads the content and returns it to the guest. This content is used to populate tables, graphs, workspace viewers, etc. If you would like more information, please let me know! Thanks! |
@ElianHugh Hey! I just sent out a PR to add the R extension to the Live Share allow list. That should be merged and ready by this afternoon, so I'll ping the thread as soon as that's live 👍🏻 |
@ElianHugh FYI, this change has been made, and so if you reload VS Code, you should see that the R extension is able to access the Live Share API. Let us know if you run into any problems. Thanks! |
Re-labeling this thread for any other services who wish to add their service to the supported list. |
@lostintangent I never got a response to this. Has your team had the opportunity to fix the regression or can you please add this extension to the allowed whitelist? To see an example of what we're trying to accomplish you can see the branch: https://github.com/parithon/vscode-twitch-highlighter/tree/liveshare TLDR; We will be using VSLS to notify guests whenever a highlighted line is added or removed. |
Hey, would be great if the Julia extension could also be added to the list of supported extensions (well, a fix for that regression would be even better, of course). |
Just to be clear, If you would like your extension added to the allow list, please reply with a description of how you intend to use the API. |
@daytonellwanger Hi, thanks for this amazing functionality, please add my extension to the allow list. I write an extension to help users to play with LeetCode (here), this extension provides many useful command, such as When I know about live share extension, I think my extension may provide something like a 'room', many people can solve LeetCode problem together. But I found execution of vscode extension command cannot be shared through live share, so I decide to use vsls API to pass Seems that get |
Hey @labuladong , yes, it sounds like Is your extension source code stored in a public repo? The one linked to from the the extension marketplace doesn't look like the repo for the extension. Do you have a prototype of your Live Share feature? You should be able to test locally by changing your extension ID to one of the approved extensions as mentioned in this thread (I'll look into coming up with a better development experience for extensions pre-approval). |
@daytonellwanger Hi, thanks for your reply. My repo is here. I have tried to use approved extension ID locally and it works perfectly, I will develop my extension in this way now. |
Hey @labuladong , I took a quick look at the extension and it looks like it makes it quite easy for the host to execute arbitrary commands on the guest's machine (see here). Do you have any security measures in place to prevent a guest from being exploited by a malicious host? We wouldn't want Live Share to be the enabler for a hack. |
Maybe we should open a separate issue to further discuss? |
@daytonellwanger Let's discuss it here |
@daytonellwanger Hi, I've tested locally and improved the usage of vsls API, I use a whitelist to avoid executing arbitrary commands here. Do you have any suggestion? Please add my extension to the allow list and look forward to your reply, thanks :) |
Hey @labuladong , I'm no longer working on the Live Share team, but I'll make sure they have someone else follow up on getting your extension on the allow list. |
@daytonellwanger Thanks! And best wishes to you :) |
Can someone put my extension on the allow list? Thanks! @lostintangent @Davsterl |
Hello again :) Sorry to bump, but the shareService API has stopped working for the R extension. Specifically, |
Hey @ElianHugh thank you for bringing this to our attention. We will take a look at our allow list and check why the R extension has stopped working with the shareService(). Please stay tuned. |
Hello @fubaduba. We recently started developing our extension based on vsls and noticed that we were having similar issues with What is the suggested procedure to get our extension whitelisted once we're ready to release? |
Product and Version VSCode v1.38.1
OS Version macOS Mojave v10.14.6
Live Share Extension Version v1.0.905
Target Platform or Language Node.js v10.16.3
Steps to Reproduce / Scenario:
I've tried to use vsls v0.3.1291 to create a VSCode extension for collaborative music livecoding on top of Live Share. For that purpose, I need to use the
shareService()
method, but it always returnsnull
.I've tried setting this parameter:
"liveshare.featureSet": "insiders"
but it didn't work. I also tried publishing the app in the Marketplace and downloading it, but with the same resultIt is related to this issue: #736
The text was updated successfully, but these errors were encountered: