Skip to content
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

Visual Studio Code Server: Passthrough USB devices from client to remote host via WebUSB #161018

Closed
flawedworld opened this issue Aug 5, 2022 · 4 comments
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@flawedworld
Copy link

In my workflows it's very convenient for me to be able to access devices connected to my client from my remote development server. As a user I would like to connect a USB device to my client, pass it through to vscode.dev, and then choose a remote machine to pass the USB device to and use it from there.

@github-actions github-actions bot added the ssh label Aug 5, 2022
@bamurtaugh bamurtaugh removed the ssh label Aug 8, 2022
@tanhakabir tanhakabir added the feature-request Request for new features or functionality label Aug 18, 2022
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Aug 18, 2022
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa modified the milestones: Backlog Candidates, Backlog Aug 19, 2022
@connor4312
Copy link
Member

This is a general feature request for remotes, I don't think it's specific to code-server (though that's probably the most common use case)

@connor4312 connor4312 transferred this issue from microsoft/vscode-remote-release Sep 15, 2022
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 18, 2022

Web UI extensions can already access usb devices connected to the client using webusb: https://code.visualstudio.com/updates/v1_69#_webusb-webserial-and-webhid-access-on-web

Allowing remote workspace extensions to also use the webusb API would require that we transparently proxy the webusb API from the client back to the remote. That's going to be a total bug farm

If your remote extension needs to talk to a usb device, instead:

  • Have a UI extension that can use webusb (we may need API so extensions can force themselves to be run as web extensions, even on desktop)
  • Expose vscode commands from that UI extension that do high level operations using webUSB (i.e. don't expose webusb directly)
  • Have a workspace extension that invokes those commands

@mjbvz mjbvz closed this as completed Sep 18, 2022
@mjbvz mjbvz added the *out-of-scope Posted issue is not in scope of VS Code label Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

6 participants