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

Add support for exceptions to files.exclude #198900

Closed
sparr opened this issue Nov 23, 2023 · 3 comments
Closed

Add support for exceptions to files.exclude #198900

sparr opened this issue Nov 23, 2023 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@sparr
Copy link

sparr commented Nov 23, 2023

The files.exclude setting allows certain file patterns to be excluded from search results and the Explorer sidebar. However, there does not seem to be a mechanism for specifying exceptions to this, which makes it difficult to impossible to exclude, e.g., a whole directory except for one file that should remain visible.

gitignore addresses this with a leading ! inverting a pattern, including the matching files as exceptions to earlier excludes. That level of functionality would be nice here, but simply having a single files.include to list exceptions in a single pass after files.exclude is applied would still be useful.

@sparr
Copy link
Author

sparr commented Nov 23, 2023

My use case for this feature is to write a script or extension to automatically synchronize the file exclude/include patterns in my vscode workspace with the gitignore file(s) affecting the workspace folder(s).

@IllusionMH
Copy link
Contributor

/duplicate of #869 and #134415

Please upvote relevant issues and add use cases there if necessary

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 23, 2023
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Nov 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants