Fix string comment body displayed as markdown

Fixes #140967
This commit is contained in:
Alex Ross
2022-01-21 14:13:47 +01:00
parent 23664355e6
commit 454dce4c53
6 changed files with 55 additions and 34 deletions

View File

@@ -634,7 +634,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
mode: vscodeComment.mode,
contextValue: vscodeComment.contextValue,
uniqueIdInThread: commentUniqueId,
body: extHostTypeConverter.MarkdownString.from(vscodeComment.body),
body: (typeof vscodeComment.body === 'string') ? vscodeComment.body : extHostTypeConverter.MarkdownString.from(vscodeComment.body),
userName: vscodeComment.author.name,
userIconPath: iconPath,
label: vscodeComment.label,