mirror of
https://github.com/ilyakooo0/intellij-haskell.git
synced 2024-08-17 10:40:44 +03:00
Fix issue #509
This commit is contained in:
parent
8b4895377e
commit
18aea1b2a3
@ -313,7 +313,7 @@ object StackProjectManager {
|
||||
|
||||
private def invalidateTypeInfo(event: PsiTreeChangeEvent): Unit = {
|
||||
val element = Option(event.getOldChild).orElse(Option(event.getNewChild)).flatMap(e => HaskellPsiUtil.findExpression(e)).orElse(Option(event.getParent))
|
||||
val elements = element.map(e => HaskellPsiUtil.findQualifiedNamedElements(e)).getOrElse(Seq()).toSeq
|
||||
val elements = element.filter(_.isValid).map(HaskellPsiUtil.findQualifiedNamedElements).getOrElse(Seq()).toSeq
|
||||
TypeInfoComponent.invalidateElements(event.getFile, elements)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user