Skip to content

Goto Type Definition should probably use range and not just position #1007

Closed
@matklad

Description

@matklad

At the moment, goto type definition is specked to use TextDocumentPositionParams:

https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition

I think it is reasonable to use Range, and not just position, for this request. I imagine a user might want to use "extend selection" to select an expression (like foo.bar.baz.foo()), and then "goto type definition" to get to the type of the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions