Uh oh!
There was an error while loading. Please reload this page.
Classify nameof<'T> & match … with nameof ident -> … correctly - #18300
Conversation
❗ Release notes required
|
nameof<'T>, match … with nameof ident -> …, correctlynameof<'T> & match … with nameof ident -> … correctly319500e to
74eea31CompareUh oh!
There was an error while loading. Please reload this page.
ca1888b to
96783dcCompareedgarfgp
commented
Feb 9, 2025
Thanks for this Brian. Will this also cover the cases |
brianrourkeboll
commented
Feb 9, 2025
In the result expression of match clauses? It's already colorized correctly there, no? This PR covers (1) generic |
edgarfgp
commented
Feb 9, 2025
In Rider currently looks like this |
I don't have Rider installed on this machine, but what do other "intrinsic functions" ( What does letf x = nameof x? FCS classifies fsharp/src/Compiler/Service/SemanticClassification.fs Lines 157 to 168 in ad29712 The VS integration maps that to its own, separate classification, in the same category as keywords: It looks like Rider doesn't use the FCS API here; it must be doing its own classification: https://github.com/search?q=repo%3AJetBrains%2Fresharper-fsharp+SemanticClassificationType&type=code My guess is that this PR will at least make the |
auduchinok
left a comment
There was a problem hiding this comment.
@brianrourkeboll Cool, thanks! Could you look at these two things, please? 🙂
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
left a comment
There was a problem hiding this comment.
Nice. Thank you @brianrourkeboll :)


Description
Fixes#10026.
nameofidentifier in type application expressions and patterns to enable correct colorization:nameofinnameof<'T>.nameofinmatch … with nameof ident -> ….Before
After
Checklist