Skip to content

Source generator-filled partial method "go to definition" and "go to implementation" seem reversed #77916

@stephentoub

Description

@stephentoub

Version Used:
Version 17.14.0 Preview 3.0 [35930.19.main]

Steps to Reproduce:
Add a partial method that's filled in by a source generator, such as with the regex source generator or the logging source generator. Then right-click on the method and select either Go To Definition or Go To Implementation.

Expected Behavior:
Go To Definition should take me to the partial method declaration / stub I wrote.
Go To Implementation should take me to the partial method implementation generated by the source generator, that actually has an implementation.

Actual Behavior:
The opposite. Go To Definition takes me to the source generated implemention, while Go To Implementation takes me to the partial method I wrote without an implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions