Explorar el Código

Build tag text correctly for all tags

Sebastian Pahnke hace 4 años
padre
commit
b8e0740b41
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 }