VS Code Web Extension demonstrating WebUSB access
A VS Code Web build available which includes microsoft/vscode#152310
WebUSB devices can be accessed from web extensions running in the web extension host webworker here:
https://github.com/thegecko/webusb-web-extension/blob/main/src/browser/commands.ts#L23
WebUSB devices need to be authorised before being accessed and this is possible due to the new workbench.experimental.requestUsbDevice
command.
This is triggered from the webview here:
https://github.com/thegecko/webusb-web-extension/blob/main/src/views/webusb-view.ts#L7
but run in the webworker here:
https://github.com/thegecko/webusb-web-extension/blob/main/src/views/webusb-main.ts#L25