Browse Source

Build tag text correctly for all tags

Sebastian Pahnke 4 years ago
parent
commit
b8e0740b41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/languageFeatures.ts

+ 1 - 1
src/languageFeatures.ts

@@ -576,7 +576,7 @@ function tagToString(tag: ts.JSDocTagInfo): string {
 		tagLabel += `\`${paramName.text}\``;
 		if (rest.length > 0) tagLabel += ` — ${rest.map(r => r.text).join(' ')}`;
 	} else if (tag.text) {
-		tagLabel += ` — ${tag.text}`;
+		tagLabel += ` — ${tag.text.map(r => r.text).join(' ')}`;
 	}
 	return tagLabel;
 }