Subtly change the color of your Visual Studio Code workspace. Ideal when you have multiple VS Code instances, use VS Live Share, or use VS Code's Remote features, and you want to quickly identify your editor.
Is your feature request related to a problem? Please describe.
There is no problem, this would be a nice to have feature.
Describe the solution you'd like
In order to keep things under the same style it would be nice to have the current selected color for peacock as the "selected file highlight" color which rests under the list.inactiveSelectionBackground setting (and probably a few others, like list.hoverBackground)
this could be toggled on and off just like the other peacock settings!
Describe alternatives you've considered
After a bit of research I found that vscode settings.json file doesn't allow using variables:
The settings in settings.json are static and do not support variable substitution or referencing other settings.
Additional context
I put together a quick example of what I think might work in case it helps, here it is:
const vscode = require('vscode');
function activate(context) {
let disposable = vscode.commands.registerCommand('extension.usePeacockColor', function () {
// Get the current workspace configuration
let config = vscode.workspace.getConfiguration();
// Get the current Peacock color
let peacockColor = config.get('peacock.color');
// Update the other setting with the Peacock color
config.update('list.inactiveSelectionBackground', peacockColor, vscode.ConfigurationTarget.Workspace);
});
context.subscriptions.push(disposable);
}
exports.activate = activate;
A couple of shots of what the end result could look like:
Is your feature request related to a problem? Please describe. There is no problem, this would be a nice to have feature.
Describe the solution you'd like In order to keep things under the same style it would be nice to have the current selected color for peacock as the "selected file highlight" color which rests under the
list.inactiveSelectionBackground
setting (and probably a few others, likelist.hoverBackground
)this could be toggled on and off just like the other peacock settings!
Describe alternatives you've considered After a bit of research I found that vscode settings.json file doesn't allow using variables:
Additional context I put together a quick example of what I think might work in case it helps, here it is:
A couple of shots of what the end result could look like: