Skip to content
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

Closed
mgood opened this issue Apr 24, 2017 · 9 comments
Closed

statusBarColors modifies workspace settings.json #1565

mgood opened this issue Apr 24, 2017 · 9 comments

Comments

@mgood
Copy link

mgood commented Apr 24, 2017

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

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:

  • VSCode Version: 1.11.2
  • VsCodeVim Version: 0.6.18
  • OS: Mac Sierra
@xconverge
Copy link
Member

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

@xconverge
Copy link
Member

xconverge commented Apr 25, 2017

Updated the readme for now! Thanks for reporting

@jpoon
Copy link
Member

jpoon commented Apr 25, 2017

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.

@xconverge
Copy link
Member

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...

@rebornix
Copy link
Member

rebornix commented May 1, 2017

@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.

@xconverge
Copy link
Member

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

@rebornix
Copy link
Member

rebornix commented May 1, 2017

@xconverge thanks for the info. I just updated the code to make sure it only affects user setting.

@xconverge
Copy link
Member

Ah well that was easy...not super intuitive of the API but that works! Thanks

@zelphir
Copy link
Contributor

zelphir commented May 5, 2017

#1654

This change breaks workbench.colorCustomizations if you have more settings in there. Also if you have your settings.json saved in a repo it keeps changing the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants