zanza00 / random-theme-switcher

a Visual Studio Code extension that chooses a theme for you
https://marketplace.visualstudio.com/items?itemName=zanza00.random-theme-switcher
8 stars 0 forks source link

It does not see any themes when vs code is running as remote (WSL) connection #44

Open cagils opened 2 years ago

cagils commented 2 years ago

Copy all command does not see any themes. Probably it looks into remote and the themes are installed locally (on Windows).

My current workaround is to run a series of commands to parse the theme names in a file:

grep -loP '"themes"' /mnt/c/Users/USERNAME/.vscode/extensions/*/package.json > ~/vsthemes.txt

grep -hoP '"label": "\K[^"]+' -- `cat vsthemes.txt` > vsthemeslist.txt

code vsthemeslist.txt

Fresh Material
Fresh Material - Blue
Fresh Material - Green
Fresh Material - Pink
Fresh Material - Red
Fresh Material - Indigo
Fresh Material - Cyan
Shades of Purple
Atom One Dark
dimmed-theme
One Monokai
ReUI
ReUI (Italic)
ReUI Mirage
ReUI Mirage (Italic)
...

Probably not the most efficient way but it works.