mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
This commit is contained in:
@@ -648,15 +648,13 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
commentsMap.set(vscodeComment, commentUniqueId);
|
||||
}
|
||||
|
||||
const iconPath = vscodeComment.author && vscodeComment.author.iconPath ? vscodeComment.author.iconPath.toString() : undefined;
|
||||
|
||||
return {
|
||||
mode: vscodeComment.mode,
|
||||
contextValue: vscodeComment.contextValue,
|
||||
uniqueIdInThread: commentUniqueId,
|
||||
body: (typeof vscodeComment.body === 'string') ? vscodeComment.body : extHostTypeConverter.MarkdownString.from(vscodeComment.body),
|
||||
userName: vscodeComment.author.name,
|
||||
userIconPath: iconPath,
|
||||
userIconPath: vscodeComment.author.iconPath,
|
||||
label: vscodeComment.label,
|
||||
commentReactions: vscodeComment.reactions ? vscodeComment.reactions.map(reaction => convertToReaction(reaction)) : undefined,
|
||||
timestamp: vscodeComment.timestamp?.toJSON()
|
||||
|
||||
Reference in New Issue
Block a user