Skip to content

Commit cd4d04a

Browse files
authored
Use appendText for hovers that are strings (microsoft#105844)
1 parent 94fdadb commit cd4d04a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/hover/browser/hoverWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class HoverWidget extends Widget {
7979

8080
const rowElement = $('div.hover-row.markdown-hover');
8181
const contentsElement = $('div.hover-contents');
82-
const markdown = typeof options.text === 'string' ? new MarkdownString(options.text) : options.text;
82+
const markdown = typeof options.text === 'string' ? new MarkdownString().appendText(options.text) : options.text;
8383
const markdownElement = renderMarkdown(markdown, {
8484
actionHandler: {
8585
callback: (content) => this._linkHandler(content),

0 commit comments

Comments
 (0)