Process only those Kotlin files that sit under source/test roots

This commit is contained in:
Andrey Breslav
2013-01-19 14:32:10 -08:00
parent c1772685e9
commit e384d4ec96
@@ -102,7 +102,7 @@ public class PluginJetFilesProvider extends JetFilesProvider {
new com.google.common.base.Function<VirtualFile, JetFile>() {
@Override
public JetFile apply(@Nullable VirtualFile file) {
if (file == null || !ProjectFileIndex.SERVICE.getInstance(project).isInContent(file)) {
if (file == null || !ProjectFileIndex.SERVICE.getInstance(project).isInSourceContent(file)) {
return null;
}