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 1450908 commit 74d6d04Copy full SHA for 74d6d04
src/services/jsDoc.ts
@@ -93,10 +93,13 @@ namespace ts.JsDoc {
93
forEachUnique(declarations, declaration => {
94
for (const { comment } of getCommentHavingNodes(declaration)) {
95
if (comment === undefined) continue;
96
- if (documentationComment.length) {
97
- documentationComment.push(lineBreakPart());
+ const commentTextPart = textPart(comment);
+ if (!contains(documentationComment, commentTextPart)) {
98
+ if (documentationComment.length) {
99
+ documentationComment.push(lineBreakPart());
100
+ }
101
+ documentationComment.push(commentTextPart);
102
}
- documentationComment.push(textPart(comment));
103
104
});
105
return documentationComment;
0 commit comments