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
{{ message }}
Nameof is not classified in generic form or pattern form #10026
changed the title [-]Nameof not colored blue in generic form or pattern form[/-][+]Nameof is not classified in generic form or pattern form[/+]on Aug 27, 2020
@dsyme I bumped this out of low priority. Colors have significance in the editor and by not being accurate here we're effectively misleading folks. I suspect this will get a lot of pings from people who start to use nameof prolifically in a larger codebase. We should fix this.
While reading this thread, noticed the syntax highlight disparity between GitHub markdown's F# code rendering and VS Code. Opened a PR for it to use the same grammar as VS Code: github-linguist/linguist#5011. 😺
Activity
[-]Nameof on generic types is not colored[/-][+]Nameof not colored blue in generic form or pattern form[/+]cartermp commentedon Aug 27, 2020
cartermp commentedon Aug 27, 2020
@dsyme @TIHan the issue here is that
nameofin either case is not actually in the captured name resolutions.For both of these examples:
I get name resolutions for the
'TTypeandfthat I'm taking a name of, but notnameofitself.[-]Nameof not colored blue in generic form or pattern form[/-][+]Nameof is not classified in generic form or pattern form[/+]cartermp commentedon Sep 1, 2020
@dsyme I bumped this out of low priority. Colors have significance in the editor and by not being accurate here we're effectively misleading folks. I suspect this will get a lot of pings from people who start to use
nameofprolifically in a larger codebase. We should fix this.abelbraaksma commentedon Sep 1, 2020
This is related: #7826 (but not the same, that issue is caused by incorrect preview feature parsing).
am11 commentedon Sep 15, 2020
While reading this thread, noticed the syntax highlight disparity between GitHub markdown's F# code rendering and VS Code. Opened a PR for it to use the same grammar as VS Code: github-linguist/linguist#5011. 😺