We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d98fe commit 9e357caCopy full SHA for 9e357ca
vsintegration/src/FSharp.Editor/DocComments/XMLDocumentation.fs
@@ -78,10 +78,12 @@ type internal TextSanitizingCollector(collector, ?lineLimit: int) =
78
79
interface ITaggedTextCollector with
80
member _.Add taggedText =
81
- // TODO: bail out early if line limit is already hit
82
- match taggedText.Tag with
83
- | TextTag.Text -> reportTextLines taggedText.Text
84
- | _ -> addTaggedTextEntry taggedText
+ match lineLimit with
+ | Some lineLimit when lineLimit < count -> ()
+ | _ ->
+ match taggedText.Tag with
85
+ | TextTag.Text -> reportTextLines taggedText.Text
86
+ | _ -> addTaggedTextEntry taggedText
87
88
member _.IsEmpty = isEmpty
89
member _.EndsWithLineBreak = isEmpty || endsWithLineBreak
0 commit comments