Skip to content

Commit

Permalink
Merged branch idea243.release into idea243.x
Browse files Browse the repository at this point in the history
  • Loading branch information
builduser committed Dec 9, 2024
2 parents 42c709a + 154d5ab commit 848c884
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jetbrains.plugins.scala.packagesearch.util

import com.intellij.openapi.diagnostic.ControlFlowException
import com.intellij.openapi.progress.util.ProgressIndicatorUtils
import com.intellij.psi.PsiElement
import com.intellij.util.concurrency.AppExecutorUtil
Expand All @@ -15,6 +16,7 @@ import org.jetbrains.plugins.scala.project.{ProjectExt, ProjectPsiElementExt}
import java.util.concurrent.CompletableFuture
import java.util.concurrent.atomic.AtomicReference
import scala.jdk.CollectionConverters.ListHasAsScala
import scala.util.control.NonFatal

object DependencyUtil {
private[this] val versionCompletion = VersionCompletion.instance()
Expand Down Expand Up @@ -49,7 +51,8 @@ object DependencyUtil {
val result = ProgressIndicatorUtils.awaitWithCheckCanceled(resultFuture)
result.getCompletions.asScala.toSeq
} catch {
case _: coursierapi.error.CoursierError => Seq.empty
case e: ControlFlowException => throw e
case NonFatal(_) => Seq.empty
}
}
}
Expand Down

0 comments on commit 848c884

Please sign in to comment.