mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Merge pull request #81 from spahnke/deprecated-hover-fix
Build tag text correctly for all tags
This commit is contained in:
commit
dda62a58b7
1 changed files with 2 additions and 0 deletions
|
|
@ -575,6 +575,8 @@ function tagToString(tag: ts.JSDocTagInfo): string {
|
||||||
const [paramName, ...rest] = tag.text;
|
const [paramName, ...rest] = tag.text;
|
||||||
tagLabel += `\`${paramName.text}\``;
|
tagLabel += `\`${paramName.text}\``;
|
||||||
if (rest.length > 0) tagLabel += ` — ${rest.map(r => r.text).join(' ')}`;
|
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) {
|
} else if (tag.text) {
|
||||||
tagLabel += ` — ${tag.text}`;
|
tagLabel += ` — ${tag.text}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue