Select command for Comment.

This commit is contained in:
Peng Lyu
2019-03-12 15:08:34 -07:00
parent 9f6d5c009e
commit 5c2d728a99
4 changed files with 11 additions and 3 deletions

View File

@@ -588,6 +588,7 @@ function convertToModeComment(vscodeComment: vscode.Comment, commandsConverter:
userName: vscodeComment.userName,
userIconPath: iconPath,
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,
label: vscodeComment.label
@@ -607,6 +608,7 @@ function convertToComment(provider: vscode.DocumentCommentProvider | vscode.Work
canEdit: canEdit,
canDelete: canDelete,
command: vscodeComment.command ? commandsConverter.toInternal(vscodeComment.command) : undefined,
selectCommand: vscodeComment.selectCommand ? commandsConverter.toInternal(vscodeComment.command) : undefined,
isDraft: vscodeComment.isDraft,
commentReactions: vscodeComment.commentReactions ? vscodeComment.commentReactions.map(reaction => convertToReaction(provider, reaction)) : undefined
};