purescript-language-server icon indicating copy to clipboard operation
purescript-language-server copied to clipboard

Go to def is not working for imported type constructors

Open wclr opened this issue 4 years ago • 2 comments

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?

wclr avatar Jul 06 '21 11:07 wclr

Oh it's not just go to definition, hover tooltips are not showing for type constructors either. I think this is a regression.

nwolverson avatar Jul 06 '21 12:07 nwolverson

It works if the type is defined in the same module, does not for external types, so maybe it is not a regression.

wclr avatar Jul 22 '21 15:07 wclr