From 44d987d7033a865ac811ba65977fc4468bbd2d8f Mon Sep 17 00:00:00 2001 From: Rik van der Kleij Date: Sun, 2 Feb 2020 20:00:50 +0100 Subject: [PATCH] Take qualified declaration into account. Fix #499 --- .../haskell/external/component/BrowseModuleComponent.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/intellij/haskell/external/component/BrowseModuleComponent.scala b/src/main/scala/intellij/haskell/external/component/BrowseModuleComponent.scala index a6374eac..d54f9487 100644 --- a/src/main/scala/intellij/haskell/external/component/BrowseModuleComponent.scala +++ b/src/main/scala/intellij/haskell/external/component/BrowseModuleComponent.scala @@ -171,7 +171,7 @@ private[component] object BrowseModuleComponent { private def createProjectModuleIdentifier(project: Project, declarationLine: String, moduleName: String): Option[ModuleIdentifier] = { declarationLine match { case Module$SelPattern(mn, id, fieldType) => Some(ModuleIdentifier(id, mn, s"$id :: $fieldType", StringUtil.isWithinParens(id))) - case _ => DeclarationUtil.getDeclarationInfo(declarationLine, containsQualifiedIds = false). + case _ => DeclarationUtil.getDeclarationInfo(declarationLine, containsQualifiedIds = true). map(declarationInfo => ModuleIdentifier(declarationInfo.id, moduleName, declarationInfo.declarationLine, declarationInfo.operator)) } }