You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.)
All reactions