Earlier quoted context omitted.
> I'm curious what would stop you from opening it in restricted mode? Is it because it says browse and not edit under the button? loss of syntax highlighting and to a lesser extent the neovim plugin. maybe having some kind of more granular permission system or a whitelist is the answer here. opening a folder in vscode shouldn't be dangerous.
> opening a folder in vscode shouldn't be dangerous. You're not "opening a folder" though, you're opening a codebase in an IDE, with all the integrations and automations that implies, including running code. As a developer it's important to understand the context in which you're operating. If you just want to "open a folder" and browse the contents, that's literally what Restricted mode is for. What you're asking to…
I checkout all code projects into ~/projects. I don't recall ever seeing a trust/restricted dialogue box. But, I'm guessing, at some point in the distant past, I whitelisted that folder and everything under it.
I've only just now, reading through this thread, realized how problematic that is. :o/