(reply: vscode.CommentReply)
| 131 | })); |
| 132 | |
| 133 | function replyNote(reply: vscode.CommentReply) { |
| 134 | const thread = reply.thread; |
| 135 | const newComment = new NoteComment(reply.text, vscode.CommentMode.Preview, { name: 'vscode' }, thread, thread.comments.length ? 'canDelete' : undefined); |
| 136 | if (thread.contextValue === 'draft') { |
| 137 | newComment.label = 'pending'; |
| 138 | } |
| 139 | |
| 140 | thread.comments = [...thread.comments, newComment]; |
| 141 | } |
| 142 | } |