#VScode Themes Broke

13 messages · Page 1 of 1 (latest)

inner vessel
#

I installed an external theme, and now when I apply another theme, all those configuration lines appear. I have to press Ctrl+Z to apply the correct settings. Does anyone know how to fix this?

shy onyx
#

Hey @inner vessel, what do you get when you run this?

cat $HOME/.config/omarchy/current/theme/vscode.json
inner vessel
#

Hi @shy onyx this is my output:
~ ❯ cat $HOME/.config/omarchy/current/theme/vscode.json
{
"name": "Everforest Dark",
"extension": "sainnhe.everforest"
}

But I previously used Ctrl+Z to repair it

shy onyx
#

Hm, I checked the code that runs when you switch a theme in Omarchy and I can't find anything that would cause this from the Omarchy side of things. If you install a theme that doesn't support vscode (like e.g. the Omarchy Florida Man Theme), all it does is it removes the workbench.colorTheme property from your settings.json.

#

Any chance you installed a VSCode extension maybe that could interfere with theming?

inner vessel
#

I've disabled the theme-related extensions, but I'm still getting the error.

shy onyx
#

@inner vessel Thanks for the theme name. Looks like Black Arch comes with a weird vscode_colors.json 🤔 This may be the cause.

Can you do me a favor and fzf to see if you can find that file anywhere on your PC? If so, simply delete it and see if the issue persists.

inner vessel
#

Thanks for the help. When I search for the vscode colors.json file, it shows the files, but only for the default themes.

#

But the one from Black Arch can't find it.

shy onyx
#

Yeah, these files are not part of a default Omarchy installation. Is there any chance you tried or installed other custom themes that might have included this theme hook?
https://github.com/imbypass/omarchy-theme-hook

If so, you might find folders along the lines of:

/tmp/theme-hook/
$HOME/.local/share/omarchy/bin/theme-hook-update
$HOME/.config/omarchy/hooks/theme-set.d/
$HOME/.config/omarchy/hooks/theme-set

A GitHub code search for "vscode_colors.json" only surfaces a handful of occurrences, and from what I can see, this seems closest to what you are experiencing:
https://github.com/imbypass/omarchy-theme-hook/blob/main/theme-set.d/30-vscode.sh

#

Oh, and if you do find them, it's probably safe to simply remove them, just like it's done in the uninstall.sh of omarchy-theme-hook 🙂

inner vessel
#

Thank you so much for your help and the time you took to analyze this problem; I really appreciate it.

I was able to solve it. I uninstalled theme-hook, and now it works perfectly.

Sorry to bother you, I have two questions.

If I install external themes, will the same thing happen again?

If I reinstall theme-hook, will the same thing happen?