Open marvingreenberg opened 1 year ago
Thank you @marvingreenberg for creating this issue!
I second this. In our project we want to sync certain linter and debug settings so we do commit .vscode/settings.json
to version control.
And it doesn't seem possible to style the UI without writing things to the vscode settings.
Perhaps setting up a multi-root workspace would help. But I haven't tried it yet.
bump. I Love Peacock but I don't like .vscode
directories littering my filesystem when I update with my computer's configs in VS Code. It would be nice if the plugin would save all themes in a single config.
Themes don't write themselves into settings.json
, but instead into user settings: %APPDATA%\Code\User\settings.json
Perhaps that's where Peacock needs to write its settings as well. It would need to be able to save settings based on workspaces so possibly a structure like this:
"peackock": {
"workspaces": {
"<workspacename/path>": {
"activityBar.activeBackground": "#ff6433",
"...": "...",
"titleBar.inactiveBackground": "#ff3d0099",
"titleBar.inactiveForeground": "#e7e7e799"
}
}
}
Having looked around a bit, isn't this a duplicate of #7 ?
This is my major reason for not using Peacock, as we also commit this file to the repo and I don't want to force colors on other team members, but it sure would be helpful to set colors to my different workspaces so I can keep them straight.
has anyone found a workaround?
TL;DR - A workaround is, don't commit the Peacock configuration?
In my case at least, we rarely update settings.json
. We set our team configuration at the beginning of the project and have not committed a change since.
I'm the only one on my team using Peacock as far as I'm aware, and rarely stage changes using git add -all
, but there have been cases I accidentally committed and pushed my Peacock configuration.
The last change we needed, I stashed my Peacock settings, made the required change, and unstashed.
I'm more annoyed at seeing a pending change all the time in the Source Control tab, and having to remove Peacock's settings to remove work trees (I extensively use git worktree
).
Some other solutions such as #7 or #517 defeat the purpose of this extension for me, and would be detrimental with work trees. How would I easily know I'm working on our production branch vs a feature branch?
Having a dedicated settings file for this extension would be ideal, but I assume it is not possible to override the VSCode theme in such a manner.
I rarely close my workspace. Could we just have an option to not save anything at all? It's easier to re-apply theme from favourites when opening workspace.
Describe the solution you'd like I'd like the ability to set a global setting like
And then when peacock saves and retrieves colors for a project from a separate file, than the workspace
.vscode/settings.json
. In certain projects I have found it useful to commit.vscode/settings.json
to version control - say when defining debugging configurations or other properties that SHOULD be committed, to help collaborate with other using vscode. But the color scheme for a workspace is a personal preference.Describe alternatives you've considered None really. It may be that moving settings into a separate file is complex and violates principals of the vscode extensions architecture. Simplest may be to just say "won't fix", and its a minor point.