Skip to content

Folders cointaining only .gitignored files are sometimes not hidden, disappear only on click #210341

@bersbersbers

Description

@bersbersbers

coverage.py's htmlcov output folder contains a .gitignore file like this:

# Created by coverage.py
*

I am using "explorer.excludeGitIgnore": true, and so this folder should be hidden. Except, it isn't always, until I click it.

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.88.1
  • OS Version: Windows 11 23H2

Steps to Reproduce:

On Windows:

if exist bug rmdir /s/q bug
mkdir bug
for /l %i in (1,1,20) do (mkdir bug\sub%i && echo *> bug\sub%i\.gitignore)
code.cmd --disable-extensions bug

Code_dOWoC85rl5

This issue does not seem to reproduce if I replace 20 with 1 above.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugfile-explorerExplorer widget issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions