ferdinand
ferdinand

Reputation: 1020

VsCode extension - get list of dark/light themes

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

Answers (1)

Alex
Alex

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

Related Questions