mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
5a43663aed
commit
f4ca89503e
|
@ -762,8 +762,9 @@ export class FilesFilter implements ITreeFilter<ExplorerItem, FuzzyScore> {
|
|||
// Add newly visited .gitignore files to the ignore tree
|
||||
if (stat.name === '.gitignore') {
|
||||
this.processIgnoreFile(stat.root.resource.toString(), stat.resource, false);
|
||||
// Never hide .gitignore files
|
||||
return true;
|
||||
// Never hide .gitignore files if explorer.excludeGitIgnore setting is enabled
|
||||
// We can tell it's enabled if there is an ignore tree for the workspace root
|
||||
return !!this.ignoreTreesPerRoot.get(stat.root.resource.toString());
|
||||
}
|
||||
|
||||
return this.isVisible(stat, parentVisibility);
|
||||
|
|
Loading…
Reference in a new issue