I'll take the opportunity to self plug:
I've been working on a solution to help bridge this gap of having to blindly trust VSCode extensions, planning to eventually also release it as open source
yeah there is! it's been in the works for a number of years, and they're talking about Q1 2023
but it will still leave all the vscode.* APIs open, so extensions can still do things like read any file in the filesystem, or run programs like they do today
it's a start and an important step, but definitely not a cure-all
It was built in a single day of running across the street between coding in a coffee shop, and testing the product on the microwave in seven-eleven.
It is actually just a mobile-first (mobile-only?) single page web app.
Built using no JS framework, has no build stage, or server side code. Uses Bootstrap for templating, and a lot of hacky vanilla JS code to quickly create this MVP.
We use the Web Audio JS API to listen for pops using device's microphone. The pop detection logic is as follows: if the current microphone sample volume is 10 times higher than the average of the last 6 samples of volume, it is a pop.
The logic on when to stop the microwave is as follows: first wait for 5 pops with less than 1 second in between them. We call this the "peak popping stage". Then we wait for either 3 pops with longer than 1.5 seconds in between. or 3 seconds without a single pop. We fine tuned the parameters with a lot of testing.
Hope this helps people avoid burnt or unpopped popcorn, and enjoy perfect microwaved popcorn every time.
You're welcome to sign up for early access at https://coderguard.io/
As I'm currently mainly looking for user feedback