Sure, for example in the screenshot below Inlay Hints are working except for "message:" in the Debug.Log. I know the m has to be enclosed with “” but if I do that, the “message:” inlay hint disappears and doesn't stay as you can see in the first screenshot above.
void Log(string message)
{
throw new NotImplementedException();
}
Calling this won't show an inlay hint, but if you change the name from Log to Send (or whatever you want), it will show the inlay hint. I'm assuming this is some kind of exception made for methods with certain names, like “Log”, where the purpose of the parameter is very clear and understood.
Disclaimer: I do not work for JetBrains so this is all speculation.
Suddenly this is a hardcoded behaviour for Log*(String, If there is a method Log* with the first argument of type String, inlay hint will never be shown for this first parameter.
Can you give an example of where the inlay hints not working as you expect? It seems the inlay hints are working in the image provided.
Sure, for example in the screenshot below Inlay Hints are working except for "message:" in the Debug.Log. I know the m has to be enclosed with “” but if I do that, the “message:” inlay hint disappears and doesn't stay as you can see in the first screenshot above.
Interesting. I wrote a little function:
Calling this won't show an inlay hint, but if you change the name from
Log
toSend
(or whatever you want), it will show the inlay hint. I'm assuming this is some kind of exception made for methods with certain names, like “Log”, where the purpose of the parameter is very clear and understood.Disclaimer: I do not work for JetBrains so this is all speculation.
I tried it but it still doesn't work. I unchecked “hide” options and changed everything to always show in settings.
I did some digging in settings and found:
Editor → Inlay Hints → C# → Parameter Name Hints →
I would think one of those settings would affect this functionality, but they do not.
EDIT: I just saw your comment about going down this same path.
I have these excluded:
I was looking at that exclusion list as well, but nothing matches
Log*(string message)
.Yeah. I am not sure what I am missing or doing wrong.
Suddenly this is a hardcoded behaviour for Log*(String,
If there is a method Log* with the first argument of type String, inlay hint will never be shown for this first parameter.
https://youtrack.jetbrains.com/issue/RIDER-115589/Inlay-hint-is-not-shown-for-the-first-argument-with-the-type-String-for-method-Log