-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
Area-LangService-HintsF# hints inspired by C# inline hintsF# hints inspired by C# inline hintsFeature Request
Milestone
Description
Potentially also for lambdas?
Sidenote:
fsharp/vsintegration/src/FSharp.Editor/Hints/InlineTypeHints.fs
Lines 17 to 24 in 92b2b5d
| match symbol.GetReturnTypeLayout symbolUse.DisplayContext with | |
| | Some typeInfo -> | |
| let colon = TaggedText(TextTag.Text, ": ") | |
| colon :: (typeInfo |> Array.toList) | |
| // not sure when this can happen | |
| | None -> | |
| [] |
The None case above is hit when the symbol is a member (currently it does not pass through isValidForHint). The empty hint parts then cause a crash later on with ToImmutableArray.
vzarytovskii, T-Gro and 0101
Metadata
Metadata
Assignees
Labels
Area-LangService-HintsF# hints inspired by C# inline hintsF# hints inspired by C# inline hintsFeature Request
Type
Projects
Status
Done

