purescript-language-server
purescript-language-server copied to clipboard
Go to def is not working for imported type constructors
Having type data constructors imported:
import Data.Maybe (Maybe(..))
import Data.Maybe as Maybe
If to use just imported constructors without a namespace (Just, Nothing) one cannot go to definition, though if to use namespaced version (Maybe.Just) go to definition can be triggered.
x = Just 1 -- <- can NOT go to `Just` defintion,
y = Maybe.Just 2 -- <- can go to `Just` defintion
Isn't possible to implement it currently?
Oh it's not just go to definition, hover tooltips are not showing for type constructors either. I think this is a regression.
It works if the type is defined in the same module, does not for external types, so maybe it is not a regression.