From b240a624b38c15ab8a4d1d66419a2a4ad8c2ff8e Mon Sep 17 00:00:00 2001 From: mildag Date: Mon, 6 Feb 2023 11:51:30 +0200 Subject: [PATCH] Fix build after changes --- .../scala/libraries/BlazeScalaAttachSourceProvider.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scala/src/com/google/idea/blaze/scala/libraries/BlazeScalaAttachSourceProvider.java b/scala/src/com/google/idea/blaze/scala/libraries/BlazeScalaAttachSourceProvider.java index 93e49f5714b..ff650947087 100644 --- a/scala/src/com/google/idea/blaze/scala/libraries/BlazeScalaAttachSourceProvider.java +++ b/scala/src/com/google/idea/blaze/scala/libraries/BlazeScalaAttachSourceProvider.java @@ -13,7 +13,6 @@ import com.google.idea.blaze.scala.sync.model.BlazeScalaSyncData; import com.google.idea.common.experiments.BoolExperiment; import com.google.idea.common.util.Transactions; -import com.google.idea.sdkcompat.general.BaseSdkCompat; import com.google.idea.sdkcompat.java.AttachSourcesProviderAdapter; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.TransactionGuard; @@ -28,6 +27,7 @@ import java.util.Collection; import java.util.List; import javax.annotation.Nullable; +import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProviderImpl; public class BlazeScalaAttachSourceProvider extends AttachSourcesProviderAdapter { @@ -141,8 +141,7 @@ private static void attachSources( ApplicationManager.getApplication() .runWriteAction( () -> { - IdeModifiableModelsProvider modelsProvider = - BaseSdkCompat.createModifiableModelsProvider(project); + IdeModifiableModelsProvider modelsProvider = new IdeModifiableModelsProviderImpl(project); for (BlazeLibrary blazeLibrary : librariesToAttachSourceTo) { // Make sure we don't do it twice if (AttachedSourceJarManager.getInstance(project)