VsCode extension - get list of dark/light themes

末鹿安然 提交于 2021-01-29 07:49:18

问题


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.


回答1:


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);
}


来源:https://stackoverflow.com/questions/54772368/vscode-extension-get-list-of-dark-light-themes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!