提交 d638b29a 编写于 作者: P Peng Lyu

No review overlay when there is no comment.

上级 ec3c967a
......@@ -501,6 +501,10 @@ export class ReviewController implements IEditorContribution {
setComments(commentThreads: modes.CommentThread[]): void {
this._commentThreads = commentThreads;
if (this._commentThreads.length === 0) {
return;
}
if (!this._reviewSwitch) {
this._reviewSwitch = new ReviewSwitchWidget(this._reviewModel);
this.editor.addOverlayWidget(this._reviewSwitch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册