We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97bfb45 commit 0d50120Copy full SHA for 0d50120
1 file changed
src/vs/workbench/api/node/extHostComments.ts
@@ -270,12 +270,12 @@ function convertToComment(provider: vscode.DocumentCommentProvider | vscode.Work
270
canDelete: canDelete,
271
command: vscodeComment.command ? commandsConverter.toInternal(vscodeComment.command) : null,
272
isDraft: vscodeComment.isDraft,
273
- commentReactions: vscodeComment.commentReactions.map(reaction => {
+ commentReactions: vscodeComment.commentReactions ? vscodeComment.commentReactions.map(reaction => {
274
return {
275
label: reaction.label,
276
hasReacted: reaction.hasReacted,
277
canEdit: (reaction.hasReacted && providerCanDeleteReaction) || (!reaction.hasReacted && providerCanAddReaction)
278
};
279
- })
+ }) : undefined
280
281
}
0 commit comments