Reputation: 1020
Is it possible to get list of installed light/dark themes in extension programmatically.
I want to make an extension that will switch next color theme on key command.
Upvotes: 0
Views: 368
Reputation: 67561
You can get all extensions and search for the ones that contribute a theme:
vscode.extensions.all.forEach(ext => {
console.log(ext.packageJSON.contributes.themes);
}
Upvotes: 2