question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.gitignore'd files sometimes not greyed-out

See original GitHub issue

Hi 👋

Sometimes files and folders that are in .gitignore and normally greyed-out just stop being greyed-out. #70099 may be related, see how in the first image in comment https://github.com/Microsoft/vscode/issues/70099#issuecomment-471596614 node_modules directory is not greyed out, however in the second one it is properly greyed-out again.

Here is a quick gif (I do <kbd>⌘</kbd><kbd>⇧</kbd><kbd>P</kbd> — Reload window in the middle of it):

hello

Unfortunately, cannot reproduce 😞

  • VSCode Version: 1.32.3
  • OS Version: 10.14.3

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:30
  • Comments:51 (2 by maintainers)

github_iconTop GitHub Comments

41reactions
sulaysumariacommented, May 27, 2019

I am facing same issue. But weird thing is if I edit .gitignore and save the file. It starts greying out correct files and folders!

22reactions
ggeddecommented, Jan 28, 2020

Same issue. Re-saving .gitignore helped with untracked files, but newly untracked did not work. So i cleared my git cache and re-added the files and re-committed. Then re-saved .gitignore once again and it is working now.

Clearing Git Cache:

git rm -rf --cache .
git add --all
git commit -m 'Cleared Caches'

Then re-save .gitignore

Read more comments on GitHub >

github_iconTop Results From Across the Web

The files and folders specified in gitignore don't grayed out in ...
I can't speak to remote development mode, but it looks like other people have run into this issue and re-cloning the repo solved...
Read more >
Folder in gitignore should be not grayed out when added to ...
Given a workspace which has two folders: a parent folder and a subfolder, when the parent folder has the subfolder in .gitignore the...
Read more >
Show files that are ignored by .gitignore in dimmed color
In order to be able to distinguish these, I suggest to display files and folders supposed to be ignored by Git (or any...
Read more >
Ignored files and folders should indicate that they are ignored
WI-22181 Files from .gitignore are not highlighted (grayed out) ; WI-25731 Colors & Fonts -> File Status -> Ignored : changing makes no...
Read more >
If node_modules is greyed out, that means that the files in that ...
If node_modules is greyed out, that means that the files in that folder are not tracked by source control (git). The files in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found