I’m developing a Visual Studio Code extension, and i’ve already created a package for it.
But when i install the package the colors i listed in the package.json are not loaded, only if i reload the window.
That causes the icons it adds at the explorer’s and extension’s view to be gray until the window is reloaded.
The contributes.colors
part of the extension’s package.json:
{
...
"contributes": {
...
"colors": [
...
{
"id": "bocaExplorer.blue",
"description": "Color for blue balloon problem",
"defaults": {
"dark": "#A8E7F0",
"light": "#A8E7F0"
}
},
{
"id": "bocaExplorer.orange",
"description": "Color for orange balloon problem",
"defaults": {
"dark": "#F4D199",
"light": "#F4D199"
}
},
...
],
...
},
...
}
Extension view without colors (without reloading window)
CSS of icon (without reloading window)
Extension view with colors (after reloading window)
CSS of icon (after reloading window)
I want the colors to be loaded when the extension is installed, removing the need to reload the window.
renatomm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.