diff --git a/src/languageFeatures.ts b/src/languageFeatures.ts index 6abfa74..db332fa 100644 --- a/src/languageFeatures.ts +++ b/src/languageFeatures.ts @@ -575,6 +575,8 @@ function tagToString(tag: ts.JSDocTagInfo): string { const [paramName, ...rest] = tag.text; tagLabel += `\`${paramName.text}\``; if (rest.length > 0) tagLabel += ` — ${rest.map(r => r.text).join(' ')}`; + } else if (Array.isArray(tag.text)) { + tagLabel += ` — ${tag.text.map(r => r.text).join(' ')}`; } else if (tag.text) { tagLabel += ` — ${tag.text}`; }