-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statusBarColors
modifies workspace settings.json
#1565
Comments
Yea this is unavoidable right now.. I would advise to gitignore the setting file locally if it bothers you or disable the feature. I am not sure vscode will ever expose this to the API. I will add something to the readme |
Updated the readme for now! Thanks for reporting |
Why don't you put it in your user settings? https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations Update: Hm, I see, why does this have to be in the workspace? I think I missed the memo on that one. |
I am not sure, that is just where it seems to go... Seeing as how the feature is experimental, I figure I will wait it out a bit from vscode side... |
@xconverge I'm interested in why we have to put it in workspace? workspace settings are shared in teams so making changes to it leads to unwanted git changes, sometimes we don't want to git ignore it. |
I didn't mean to, I just used the same calls we use elsewhere for config. I couldn't figure out how to make it go to user |
@xconverge thanks for the info. I just updated the code to make sure it only affects user setting. |
Ah well that was easy...not super intuitive of the API but that works! Thanks |
This change breaks |
The VSCodeVim team prioritizes issues based on reaction count.
What did you do?
Enabled
"vim.statusBarColorControl": true
What happened instead?
The status bar color changes as expected, but it also saves those changes to my workspace
.vscode/settings.json
. My team keeps this file checked into Git for shared project settings, so these changes show up in my Git status and I have to be sure not to commit them.A warning in the docs could help other users avoid the confusion about where these changes are coming from.
A more complete fix might require new APIs in VSCode for extensions to control the color without writing them to the settings file. A direct API call would probably also be more responsive. There is a noticeable delay between changing modes and the color updating that I found slightly distracting.
Technical details:
The text was updated successfully, but these errors were encountered: