Skip to content

Commit

Permalink
Fix #496 and mini fix in AllArendFilesAndPackagesScope
Browse files Browse the repository at this point in the history
  • Loading branch information
alex999990009 committed Jun 12, 2024
1 parent 65d587d commit f992bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ class AllArendFilesAndPackagesScope(

override fun getElements(kind: Referable.RefKind?): Collection<Referable> = if (kind == null || kind == Referable.RefKind.EXPR) elements else emptyList()

override fun resolveNamespace(name: String, onlyInternal: Boolean) = AllArendFilesAndPackagesScope(libraryConfig, ModulePath(extraPath.toList() + name), false)
override fun resolveNamespace(name: String, onlyInternal: Boolean) = AllArendFilesAndPackagesScope(libraryConfig, ModulePath(extraPath.toList() + name), false, withArendExtension)
}
2 changes: 1 addition & 1 deletion src/main/kotlin/org/arend/psi/ArendFile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ArendFile(viewProvider: FileViewProvider) : PsiFileBase(viewProvider, Aren
val libraryName: String?
get() = arendLibrary?.name ?: if (name == ArendPreludeLibrary.PRELUDE_FILE_NAME) Prelude.LIBRARY_NAME else null

val concreteDefinitions = HashMap<LongName, Concrete.Definition>()
val concreteDefinitions = ConcurrentHashMap<LongName, Concrete.Definition>()

fun getTCRefMap(refKind: RefKind): ConcurrentHashMap<LongName, IntellijTCReferable> {
val location = moduleLocation ?: return ConcurrentHashMap<LongName, IntellijTCReferable>()
Expand Down

0 comments on commit f992bf2

Please sign in to comment.