Return a types.MarkdownString instace to extensions (#107415)

Fixes #107414
This commit is contained in:
Matt Bierner
2020-09-25 11:11:28 -07:00
committed by GitHub
parent d026ae2a79
commit 0f56339398

View File

@@ -338,7 +338,9 @@ export namespace MarkdownString {
}
export function to(value: htmlContent.IMarkdownString): vscode.MarkdownString {
return new htmlContent.MarkdownString(value.value, { isTrusted: value.isTrusted, supportThemeIcons: value.supportThemeIcons });
const result = new types.MarkdownString(value.value, value.supportThemeIcons);
result.isTrusted = value.isTrusted;
return result;
}
export function fromStrict(value: string | types.MarkdownString): undefined | string | htmlContent.IMarkdownString {