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

Change definitions to go to the name node instead of the entire thing

Open jmbockhorst opened this issue 4 years ago • 0 comments

For types, type aliases, functions, and ports, a go to definition should resolve to just the name node, instead of the entire expression.

For example:

type alias Model = {

}

Resolving to this type alias would go to the Model node instead of the entire type alias node.

We only want to change this in the definition provider, not the internal implementation.

jmbockhorst avatar Oct 08 '20 19:10 jmbockhorst