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

Expose native support for USB, HID and Serial device access in VS Code (Desktop) #236450

Open
thegecko opened this issue Dec 18, 2024 · 1 comment
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality workbench-os-integration Native OS integration issues

Comments

@thegecko
Copy link
Contributor

thegecko commented Dec 18, 2024

Since Electron version 25, Web-* device access has been possible using the functionality described here: https://www.electronjs.org/docs/latest/tutorial/devices

This request is to expose this functionality in VS Code on the desktop and bring functionality on-par with the browser version added in #152310

The benefit of this is that native device support is added using the functionality already available in Chrome shipped as part of VS Code, so there is no extra bloat.

It means extension developers no longer have to include external packages such as node-usb or SerialPort. In many cases this approach should be more stable and reliable, too (e.g. chrome uses winusb for device access over libusb as used in node-usb).

From a security perspective, it uses the same model as the browser, so brings the device authorisation model too.

A PR adding this can be found here: #198047

cc @bpasero

@bpasero bpasero added feature-request Request for new features or functionality extensions Issues concerning extensions workbench-os-integration Native OS integration issues and removed triage-needed labels Dec 18, 2024
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Dec 18, 2024
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality workbench-os-integration Native OS integration issues
Projects
None yet
Development

No branches or pull requests

3 participants