You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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).
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.
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 singlefiles.include
to list exceptions in a single pass afterfiles.exclude
is applied would still be useful.The text was updated successfully, but these errors were encountered: