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

Re Microsoft/vscode-pull-request-github#135. Do not dipose newCommentWidget when collapsed.

上级 7badcf50
......@@ -582,7 +582,9 @@ export class ReviewZoneWidget extends ZoneWidget {
this.show({ lineNumber: lineNumber, column: 1 }, 2);
} else {
this.hide();
this._onDidClose.fire();
if (this._commentThread === null) {
this.dispose();
}
}
}
}
......
......@@ -396,7 +396,6 @@ export class ReviewController implements IEditorContribution {
}, {});
this._newCommentWidget.onDidClose(e => {
this._newCommentWidget.dispose();
this._newCommentWidget = null;
});
this._newCommentWidget.display(lineNumber, this._commentingRangeDecorator.commentsOptions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册