Commit 0d4a2b2e authored by Alexander Bubenchikov's avatar Alexander Bubenchikov Committed by intellij-monorepo-bot
Browse files

[maven] IDEA-299516 remove waiting for smart mode in project indexing

GitOrigin-RevId: 68b2ae61e07a8dbb7d47121400cf876dcdab5cec
parent 82025a01
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 2 deletions
+1 -2
......@@ -3,7 +3,6 @@ package org.jetbrains.idea.maven.importing;
import com.google.common.collect.ImmutableMap;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.externalSystem.model.project.ProjectId;
import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProvider;
......@@ -197,7 +196,7 @@ public final class MavenLegacyModuleImporter {
}
void config(final List<MavenProjectsProcessorTask> postTasks, Map<Class<? extends MavenImporter>, CountAndTime> counters) {
MavenUtil.smartInvokeAndWait(myModule.getProject(), ModalityState.defaultModalityState(), () -> {
ApplicationManager.getApplication().invokeAndWait(() -> {
if (myModule.isDisposed()) return;
final ModuleType moduleType = ModuleType.get(myModule);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment