save pr status to git config

This commit is contained in:
Peng Lyu
2018-05-01 18:09:59 -07:00
parent d567fbe358
commit b7a2c2cea1
14 changed files with 585 additions and 76 deletions

View File

@@ -107,7 +107,7 @@ function convertCommentInfo(owner: number, vscodeCommentInfo: vscode.CommentInfo
owner: owner,
threads: vscodeCommentInfo.threads.map(x => convertCommentThread(x, commandsConverter)),
commentingRanges: vscodeCommentInfo.commentingRanges ? vscodeCommentInfo.commentingRanges.map(range => extHostTypeConverter.fromRange(range)) : [],
reply: vscodeCommentInfo.reply ? commandsConverter.toInternal(vscodeCommentInfo.reply) : null
reply: vscodeCommentInfo.postReviewComment ? commandsConverter.toInternal(vscodeCommentInfo.postReviewComment) : null
};
}
@@ -118,7 +118,7 @@ function convertCommentThread(vscodeCommentThread: vscode.CommentThread, command
range: extHostTypeConverter.fromRange(vscodeCommentThread.range),
comments: vscodeCommentThread.comments.map(convertComment),
collapsibleState: vscodeCommentThread.collapsibleState,
reply: vscodeCommentThread.reply ? commandsConverter.toInternal(vscodeCommentThread.reply) : null
reply: vscodeCommentThread.postReviewComment ? commandsConverter.toInternal(vscodeCommentThread.postReviewComment) : null
};
}