mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Fix hovers use of MarkedString to IMarkdownString
The conversion code for hovers ignored MarkedString's `language` property which caused the content to be rendered incorrectly. The code has been corrected to honour the property and now creates the code block correctly. Signed-off-by: Remy Suen <remy.suen@gmail.com>
This commit is contained in:
parent
75cf77eb64
commit
b622773393
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ function toMarkdownString(entry: ls.MarkupContent | ls.MarkedString): monaco.IMa
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return { value: '```' + entry.value + '\n' + entry.value + '\n```\n' };
|
return { value: '```' + entry.language + '\n' + entry.value + '\n```\n' };
|
||||||
}
|
}
|
||||||
|
|
||||||
function toMarkedStringArray(contents: ls.MarkupContent | ls.MarkedString | ls.MarkedString[]): monaco.IMarkdownString[] {
|
function toMarkedStringArray(contents: ls.MarkupContent | ls.MarkedString | ls.MarkedString[]): monaco.IMarkdownString[] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue