Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #81 from spahnke/deprecated-hover-fix
Browse files Browse the repository at this point in the history
Build tag text correctly for all tags
  • Loading branch information
alexdima authored Jun 11, 2021
2 parents 3fb5fa0 + a03a8ba commit dda62a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down

0 comments on commit dda62a5

Please sign in to comment.