Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Compiler/Service/ServiceParsedInputOps.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,13 @@ module ParsedInput =
|> Option.orElseWith (fun () ->
// Last resort - check for fun { Field1 = a; F| } ->
// That is, pos is after the last field and still within braces
if pats |> List.forall (fun (_, m, _) -> rangeBeforePos m pos) then
if
pats
|> List.forall (fun (_, m, _) ->
match m with
| Some m -> rangeBeforePos m pos
| None -> false)
then
let referencedFields = pats |> List.map (fun ((_, x), _, _) -> x.idText, x.idRange)
Some(CompletionContext.Pattern(PatternContext.RecordFieldIdentifier referencedFields))
else
Expand Down