mediatr-plugin icon indicating copy to clipboard operation
mediatr-plugin copied to clipboard

[Bug] "Go to Handlr" does not work if handler declared inside class

Open rolandcheck opened this issue 1 year ago • 0 comments

Noticed that if handler declared as nested class navigation does not work My common structure is when my handler class is wrapped in command, so me personally it does not bother I think worth look into this as well when it will come to reworking searching & navigation

// one file
record Command: IRequest;

// other file
class Wrapper {
    class CommandHandler : IRequestHandler<Command, Unit>
    {
        public Task<Unit> Handle(Command request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
        }
    }
}

If I remove Wapper class navigation works as intended

rolandcheck avatar Dec 21 '23 13:12 rolandcheck