Skip to content

Git status in File Explorer #178

Description

@ozsay

Similar to what atom provides in the project explorer:

  1. New files are displayed green.
  2. Modified are displayed yellow/orange.
  3. Ignored files are displayed transparent-ish.

Thanks

Activity

  1. changed the title [-]Feature request: Files status highlight according to their source control status[/-] [+]Git status in File Explorer[/+] on Nov 19, 2015
  2. waderyan commented on Dec 16, 2015

    @waderyan
    • 1
  3. csinco commented on Dec 16, 2015

    @csinco

    Would be cool if this was exposed as an extension in some way. I worry that in some cases, the tree can be a bit polluted with color and look like a Christmas tree. Or if not, at least have the option to toggle it on and off.

  4. waderyan commented on Dec 16, 2015

    @waderyan

    Yes I agree. I created a separate issue to have this exposed in extension API (see #1394).

  5. timc13 commented on Mar 12, 2016

    @timc13

    +1

  6. 0cv commented on Apr 20, 2016

    @0cv

    Would love that too. The Git tab is very handy but this is for another purpose - having colors like in Atom would be very complimentary to see at a glance what's changed and where (with the color propagating automatically up to the top directory). That's probably the feature I miss the most from Atom.

    Usually, you don't have 10s or 100s of modified files uncommitted, so it's unlikely to look like a Christmas tree :)

  7. dend commented on Jul 21, 2016

    @dend

    So it looks like the PR for this was closed. Benjamin Pasero (@bpasero) João Moreno (@joaomoreno) - any updates on the status of this work?

  8. 233 remaining items

  9. CyberPunkCodes commented on Nov 3, 2017

    @CyberPunkCodes

    Fernando Fleury (@fernandofleury) Nobody said anything about not providing theme managers an API to manage it. My post said nothing of the sort. So your snarky comment, is simply invalid and unwarranted.

    Johannes Rieken (@jrieken) said:

    Well, it was done on purpose because the selection-foreground color often conflicts with the decoration colors.

    I said:

    If your issue is themes, it isn't your problem. That is the responsibility of the theme developers to update and accommodate.

    The issue would be a conflict between the foreground (actually, it's a background color) color of the file/folder tree item (normal, selected, focused), and the font color choices for the various git statuses.

    This would be the responsibility of theme developers. They should choose both the foreground colors of the items in the tree and the font colors for the various git statuses so that they don't conflict.

    For example: A theme developer has ThemeX and his font color for the items in the explorer file tree is yellow. Well, his default font color would conflict with the default yellow git status color. You wouldn't be able to tell which files are modified anymore. So this would be the responsibility of the theme developers! -- The same is for the background color for selected/selected-focused items in the explorer file tree vs the font colors of the git statuses.

  10. xzilja commented on Nov 8, 2017

    @xzilja

    Is this postponed now?

  11. ghiscoding commented on Nov 8, 2017

    @ghiscoding

    iljadaderko I don't think so since it shows up in the upcoming Release Note v1.18 of the next Stable version. The question might be more, will this be closed or is there still more work to be done?

  12. wilsenhc commented on Nov 9, 2017

    @wilsenhc

    iljadaderko VSCode v1.18 is already out and it includes the changes discussed here.

  13. emily-curry commented on Nov 9, 2017

    @emily-curry

    Are ignored file colors supposed to be a part of the v1.18 update? The docs say gitDecoration.ignoredResourceForeground can be used to color ignored files, but so far I haven't been able to see that affect anything. Modified/untracked coloring works great though. This is on stable 1.18.0, windows.

  14. NgxDev commented on Nov 9, 2017

    @NgxDev

    Same here (about ignored color). Hasn't been working for me either, since this whole Git implementation started. Using Insiders.
    All that gitDecoration.ignoredResourceForeground does is ignore ignored files from coloring :)

  15. arxpoetica commented on Nov 9, 2017

    @arxpoetica

    It's working for me and it looks SPECTACULAR.

  16. vbozhinovski commented on Nov 9, 2017

    @vbozhinovski

    Finally it's here 🥇

  17. NgxDev commented on Nov 9, 2017

    @NgxDev

    Robert Hall (@arxpoetica) This is what I get:
    image

    How can it work for some and not for others, I don't get it. It's just that one setting gitDecoration.ignoredResourceForeground
    Am I the only one it doesn't work for? Really no one else? :) Oh, and Airuz (@Shurelia)
    Has anybody else (us, users) actually tested setting the ignored color before saying it works?

    OS: Windows 10 PRO (1709)
    VSCode: 1.19.0-insider (just updated earlier)
    Same on my work laptop and home desktop.

  18. nkkollaw commented on Nov 9, 2017

    @nkkollaw

    Is it in Insiders? How can I use it?

    Congrats, everyone!

  19. jrieken commented on Nov 9, 2017

    @jrieken
    Contributor

    Niccolo Brogi (@nkkollaw) In both 😎 insiders and stable (1.18)

  20. jrieken commented on Nov 9, 2017

    @jrieken
    Contributor

    Mr.Croft (@MrCroft) Please discuss git-ignore issues here: #37857

  21. jrieken commented on Nov 9, 2017

    @jrieken
    Contributor

    As we have shipped this feature in our latest stable build it's time to close and lock this issue. Please create new issues for topic discussions and bug reports. Issues around this area are tagged with the file-decorations-label.

    Everyone, thanks for the great and continued feedback that made this feature what it is!

    To summarise and repeat my previous comment.

    screen shot 2017-10-24 at 19 51 36 2

    A couple of things

    • By default there is a combination of color and bagde.
      • enable/disable icons with: "explorer.decorations.badges": true|false
      • enable/disable colors with "explorer.decorations.colors": true|false
    • Colors show in the file tree, the open editors section, and in the SCM viewlet
    • There are three colors to begin with. You can customise them in the workbench.colorCustomizations-setting. The colors are gitDecoration.modifiedResourceForeground,
      gitDecoration.deletedResourceForeground,
      gitDecoration.untrackedResourceForeground,
      gitDecoration.ignoredResourceForeground, and
      gitDecoration.conflictingResourceForeground
  22. locked and limited conversation to collaborators on Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions