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

Inconsistent rules for .gitignore and files.exclude #151692

Open
GMbrianlaw opened this issue Jun 10, 2022 · 2 comments
Open

Inconsistent rules for .gitignore and files.exclude #151692

GMbrianlaw opened this issue Jun 10, 2022 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues

Comments

@GMbrianlaw
Copy link

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

  • VS Code Version: 1.68.0
  • OS Version: macOS 12.3.1

Steps to Reproduce:

  1. Update to the latest version of VSCode
  2. Enable explorer.excludeGitIgnore in settings.json
  3. Try to ignore files using .gitignore
    For example, bin in .gitignore ignores the all bin directories, but in files.exclude, it only ignores the top-level bin directory.
  4. The hidden files / folders on the explorer are different than the ones ignored by Git
@Senbonzakura1234
Copy link

I have similar issue but happened with explorer.excludeGitIgnore

@GMbrianlaw
Copy link
Author

Hi Senbonzakura1234, it's actually the same issue. explorer.excludeGitIgnore parses files the same way as files.exclude, which is different from the way .gitignore parses files.

@lramos15 lramos15 added bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues labels Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

4 participants