Skip to content

Commit 01a235d

Browse files
Merge branch 'combine-sparse-open-decls-and-hash-directives' into rider
# Conflicts: # src/fsharp/TypeChecker.fs
1 parent 0c11595 commit 01a235d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fsharp/vs/ServiceStructure.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ module Structure =
545545
| [], [] -> List.rev res
546546
| [], _ -> List.rev (currentBulk::res)
547547
| r :: rest, [] -> loop rest res [r]
548-
| r :: rest, last :: _ when r.StartLine = last.EndLine + 1 ->
548+
| r :: rest, last :: _
549+
when r.StartLine = last.EndLine + 1 ||
550+
sourceLines.[last.EndLine..r.StartLine - 2] |> Array.forall System.String.IsNullOrWhiteSpace ->
549551
loop rest res (r::currentBulk)
550552
| r :: rest, _ -> loop rest (currentBulk::res) [r]
551553
loop input [] []

0 commit comments

Comments
 (0)