Fixes #71241, Adding a deletecommand to a comment alone does not reflect in the UI

This commit is contained in:
Rachel Macfarlane
2019-03-26 16:56:05 -07:00
parent f4e870fe86
commit 9f8de1f442

View File

@@ -651,7 +651,7 @@ function convertToModeComment(commentController: ExtHostCommentController, vscod
isDraft: vscodeComment.isDraft,
selectCommand: vscodeComment.selectCommand ? commandsConverter.toInternal(vscodeComment.selectCommand) : undefined,
editCommand: vscodeComment.editCommand ? commandsConverter.toInternal(vscodeComment.editCommand) : undefined,
deleteCommand: vscodeComment.editCommand ? commandsConverter.toInternal(vscodeComment.deleteCommand) : undefined,
deleteCommand: vscodeComment.deleteCommand ? commandsConverter.toInternal(vscodeComment.deleteCommand) : undefined,
label: vscodeComment.label,
commentReactions: vscodeComment.commentReactions ? vscodeComment.commentReactions.map(reaction => convertToReaction2(commentController.reactionProvider, reaction)) : undefined
};