Handle file uri in CommentAuthorInformation.iconPath (fix #174690) (#175361)

This commit is contained in:
John Murray
2023-03-20 16:01:12 +00:00
committed by GitHub
parent 6eed11f5f3
commit 14e7b2427e
4 changed files with 5 additions and 6 deletions

View File

@@ -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()