todo: don't skip source roots outside of java (IDEA-159909)

This commit is contained in:
Anna.Kozlova
2016-11-03 09:57:12 +01:00
parent 29edb9cb44
commit 64e7499b24
2 changed files with 21 additions and 15 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -133,7 +133,9 @@ public class TodoJavaTreeHelper extends TodoTreeHelper {
}
}
}
super.addPackagesToChildren(children, module, builder);
final List<VirtualFile> roots = collectContentRoots(module);
roots.removeAll(sourceRoots);
addDirsToChildren(roots, children, builder);
}
@Nullable