Skip to content

Commit

Permalink
respect line limit in quick info (dotnet#16208)
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Nov 14, 2023
1 parent 52d98fe commit 9e357ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vsintegration/src/FSharp.Editor/DocComments/XMLDocumentation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ type internal TextSanitizingCollector(collector, ?lineLimit: int) =

interface ITaggedTextCollector with
member _.Add taggedText =
// TODO: bail out early if line limit is already hit
match taggedText.Tag with
| TextTag.Text -> reportTextLines taggedText.Text
| _ -> addTaggedTextEntry taggedText
match lineLimit with
| Some lineLimit when lineLimit < count -> ()
| _ ->
match taggedText.Tag with
| TextTag.Text -> reportTextLines taggedText.Text
| _ -> addTaggedTextEntry taggedText

member _.IsEmpty = isEmpty
member _.EndsWithLineBreak = isEmpty || endsWithLineBreak
Expand Down

0 comments on commit 9e357ca

Please sign in to comment.