I want to get the list of installed extensions for VS Code in code.
Not from the CLI, I want it in code so I can write it to the console for diagnostic purposes in the middle of a unit test that's behaving like things aren't installed. It could be that something isn't yet loaded (or is loaded but isn't ready yet).
I already know how to get a list from the CLI as detailed here How to show the extensions installed in Visual Studio Code?.
Probably there's some command I can use with executeCommand
, but I can't find it.