microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.43k stars 28.62k forks source link

Enable WebCodec support in VS Code (electron) #127023

Closed koush closed 3 years ago

koush commented 3 years ago

WebCodec is a new API that allows hardware/software decoding of video codecs to be exposed to Window and Workers. I need this feature to enabled in electron to bring Vysor (https://vysor.io) to VS Code as an extension.

app.commandLine.appendSwitch('--enable-blink-features', 'WebCodecs');
koush commented 3 years ago

It seems that there's only a specific list of electron args that can be passed through:

https://github.com/microsoft/vscode/blob/400a80796db7433c05a1e5377e8e07ec683d12ca/src/main.js#L143-L155

Ideally though, it should just be enabled by default.

bpasero commented 3 years ago

This is unlikely to happen given the security advice here: https://github.com/microsoft/vscode/pull/127024