We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb804bc commit 5e8a8acCopy full SHA for 5e8a8ac
modules/core/src/main/scala/ch/epfl/scala/debugadapter/internal/ClassEntryLookUp.scala
@@ -42,6 +42,7 @@ private class ClassEntryLookUp(
42
logger: Logger
43
) {
44
private val sourceLineCache = mutable.Map.empty[SourceLine, Seq[ClassFile]]
45
+ private val scalaSigCache = mutable.Map.empty[String, Option[ScalaSig]]
46
47
def sources: Iterable[SanitizedUri] = sourceUriToSourceFile.keys
48
def fullyQualifiedNames: Iterable[String] = {
@@ -145,7 +146,7 @@ private class ClassEntryLookUp(
145
146
else scalaSigs.headOption
147
}
148
- fromClass.orElse(fromSource)
149
+ scalaSigCache.getOrElseUpdate(fqcn, fromClass.orElse(fromSource))
150
151
152
0 commit comments