nwolverson / vscode-ide-purescript

PureScript IDE support for VS Code
https://marketplace.visualstudio.com/items/nwolverson.ide-purescript
MIT License
188 stars 35 forks source link

Ctrl + click on a type named Field always opens Data.Field #215

Open bklaric opened 1 year ago

bklaric commented 1 year ago

I have in one file:

module FieldDef where

type Field = { someProp :: String }

In another file I have:

module FieldUse where

import FieldDef (Field)

someValue :: Field
someValue = { someProp: "aoeu" }

Ctrl + clik on Field in someValue :: Field shows class definition in Data.Field (relative path .spago/prelude/v6.0.0/src/Data/Field.purs) instead of type alias in FieldDef.