Skip to content

Commit

Permalink
Remove Navigatable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Dec 17, 2023
1 parent 09b58a8 commit 853d9a7
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ final class SbtDependencyAnalyzerGoToAction extends DependencyAnalyzerGoToAction
)

private val LOG = Logger.getInstance(classOf[SbtDependencyAnalyzerGoToAction])
private var declaredDependencies: List[DeclaredDependency] = _

override def getNavigatable(e: AnActionEvent): Navigatable =
Option(getDeclaredDependency(e)).flatMap { dependency =>
Expand Down Expand Up @@ -55,12 +54,7 @@ final class SbtDependencyAnalyzerGoToAction extends DependencyAnalyzerGoToAction
val module = getParentModule(project, dependency)
if (coordinates == null || module == null) return null

val declared =
if (declaredDependencies == null) {
declaredDependencies = DependencyUtils.getDeclaredDependency(module)
declaredDependencies
} else declaredDependencies

val declared = DependencyUtils.getDeclaredDependency(module)
declared
.find(dc =>
if (
Expand Down

0 comments on commit 853d9a7

Please sign in to comment.