Expose native support for USB, HID and Serial device access in VS Code (Desktop) #236450
Labels
extensions
Issues concerning extensions
feature-request
Request for new features or functionality
workbench-os-integration
Native OS integration issues
Milestone
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
The text was updated successfully, but these errors were encountered: