Closed
Description
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.