mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user