mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DirectoryIndex: fixed 'isIgnored' for ignored files
This commit is contained in:
@@ -358,6 +358,13 @@ public class DirectoryIndexTest extends IdeaTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testIgnoredFile() throws IOException {
|
||||
VirtualFile ignoredFile = myModule1Dir.createChildData(this, "CVS");
|
||||
DirectoryInfo info = myIndex.getInfoForFile(ignoredFile);
|
||||
assertTrue(info.isIgnored());
|
||||
assertTrue(ProjectRootManager.getInstance(myProject).getFileIndex().isIgnored(ignoredFile));
|
||||
}
|
||||
|
||||
public void testAddModule() throws Exception {
|
||||
myIndex.checkConsistency();
|
||||
|
||||
|
||||
@@ -272,6 +272,9 @@ public class RootIndex extends DirectoryIndex {
|
||||
if (info != null) {
|
||||
return info;
|
||||
}
|
||||
if (isIgnored(file)) {
|
||||
return NonProjectDirectoryInfo.IGNORED;
|
||||
}
|
||||
dir = file.getParent();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user