提交 300ea16a 编写于 作者: R Rachel Macfarlane

Refresh comments panel when it comes into view again, fixes...

Refresh comments panel when it comes into view again, fixes https://github.com/Microsoft/vscode-pull-request-github/issues/334
上级 8e373c4c
......@@ -242,6 +242,18 @@ export class CommentsPanel extends Panel {
return true;
}
public setVisible(visible: boolean): TPromise<void> {
const wasVisible = this.isVisible();
return super.setVisible(visible)
.then(() => {
if (this.isVisible()) {
if (!wasVisible) {
this.refresh();
}
}
});
}
private refresh(): void {
if (this.isVisible()) {
this.collapseAllAction.enabled = this.commentsModel.hasCommentThreads();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册