rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 96 forks source link

Documentation in code completion #645

Closed fantostisch closed 3 years ago

fantostisch commented 3 years ago

Fixes issue #638

Preview: screenshot-doc

Using originalElement in

getQuickNavigateInfo(element: PsiElement, originalElement: PsiElement)

does not work because it seems to be PsiWhiteSpace when using code completion, so I changed it to always use element. I am not sure if this breaks other features.

Sometimes I can not navigate through the options using the arrow keys on my keyboard, only using my mouse. I don't know why this is happening.

The documention lookup is only done when pressing CTRL+Q so it should not affect the responsiveness.

fantostisch commented 3 years ago

Hmm, this also tries to find an identifier for completions that are not modules like the completion for "where". Will try to fix this.

rikvdkleij commented 3 years ago

@fantostisch thanks! I will take a look soon.

rikvdkleij commented 3 years ago

@fantostisch Thanks!