Classify nameof<'T> & match … with nameof ident -> … correctly#18300
Classify nameof<'T> & match … with nameof ident -> … correctly#18300psfinaki merged 7 commits intodotnet:mainfrom
nameof<'T> & match … with nameof ident -> … correctly#18300Conversation
❗ Release notes required
|
nameof<'T>, match … with nameof ident -> …, correctlynameof<'T> & match … with nameof ident -> … correctly
319500e to
74eea31
Compare
ca1888b to
96783dc
Compare
|
Thanks for this Brian. Will this also cover the cases |
In the result expression of match clauses? It's already colorized correctly there, no? This PR covers (1) generic |
In Rider currently looks like this |
I don't have Rider installed on this machine, but what do other "intrinsic functions" ( What does let f 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? 🙂
vsintegration/tests/FSharp.Editor.Tests/SemanticClassificationServiceTests.fs
Show resolved
Hide resolved
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