Skip to content

go-to-definition doesn't jump to closest same-file definition #548

Closed
@diminutivesloop

Description

@diminutivesloop

When using go-to-definition on a variable with multiple definitions, if the VSCode setting editor.gotoLocation.multipleDefinitions is set to "goto", the jumped-to definition is frequently either in a different file or if it is in the same file it's not the closest one. However if editor.gotoLocation.multipleDefinitions is set to "peek" then the selected definition in the peek view is the closest in-file definition. Ideally "goto" should jump to whatever the selected "peek" definition would be which should be the closest same-file definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions