mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add early return IDEA-CR-33644 IDEA-193631
This commit is contained in:
+7
-2
@@ -101,13 +101,18 @@ public class GradleAutoImportAware implements ExternalSystemAutoImportAware {
|
||||
.filter(outputUrl -> VfsUtilCore.isEqualOrAncestor(outputUrl, url))
|
||||
.isPresent();
|
||||
|
||||
final boolean isInsideModuleCompile = Arrays.stream(ModuleManager.getInstance(project).getModules())
|
||||
if (isInsideProjectCompile) {
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean isInsideModuleCompile = Arrays.stream(ModuleManager.getInstance(project).getModules())
|
||||
.map(CompilerModuleExtension::getInstance)
|
||||
.filter(Objects::nonNull)
|
||||
.flatMap(ex -> Stream.of(ex.getCompilerOutputUrl(), ex.getCompilerOutputUrlForTests()))
|
||||
.anyMatch(outputUrl -> VfsUtilCore.isEqualOrAncestor(outputUrl, url));
|
||||
|
||||
return isInsideProjectCompile || isInsideModuleCompile;
|
||||
return
|
||||
isInsideModuleCompile;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user