mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
606c7e23cf
commit
07eca286b3
|
@ -150,7 +150,6 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
|
|||
|
||||
this._initialCollapsibleState = _pendingComment ? languages.CommentThreadCollapsibleState.Expanded : _commentThread.initialCollapsibleState;
|
||||
_commentThread.initialCollapsibleState = this._initialCollapsibleState;
|
||||
this._isExpanded = this._initialCollapsibleState === languages.CommentThreadCollapsibleState.Expanded;
|
||||
this._commentThreadDisposables = [];
|
||||
this.create();
|
||||
|
||||
|
@ -439,7 +438,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
|
|||
}
|
||||
|
||||
_refresh(dimensions: dom.Dimension) {
|
||||
if (dimensions.height === 0 && dimensions.width === 0) {
|
||||
if ((this._isExpanded === undefined) && (dimensions.height === 0) && (dimensions.width === 0)) {
|
||||
this.commentThread.collapsibleState = languages.CommentThreadCollapsibleState.Collapsed;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue