Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The interceptors feature from .NET 8+ is very powerful, but can be difficult to know whether some code was actually intercepted.
Here, I am calling the method

AsStringName(). It appears to be a normal method call, and control-clicking the method takes you to the method body as normal:However, the method is actually intercepted by this interceptor, which is impossible for the user to see:

Suggestion
My suggestion is to add a section to the documentation tooltip that says the method was intercepted, with a link to the interceptor method body. Something like this:

It may also be good to colour the intercepted method in a different colour (e.g. purple instead of yellow) so that the user can see it was intercepted even without hovering over it.
(Ignore the fact that I am using Visual Studio instead of Visual Studio Code here - the same suggestion applies.)
Beta Was this translation helpful? Give feedback.
All reactions