Merge pull request #81 from spahnke/deprecated-hover-fix
Build tag text correctly for all tagspull/2748/head
commit
dda62a58b7
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue