File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
150
150
151
151
this . _initialCollapsibleState = _pendingComment ? languages . CommentThreadCollapsibleState . Expanded : _commentThread . initialCollapsibleState ;
152
152
_commentThread . initialCollapsibleState = this . _initialCollapsibleState ;
153
- this . _isExpanded = this . _initialCollapsibleState === languages . CommentThreadCollapsibleState . Expanded ;
154
153
this . _commentThreadDisposables = [ ] ;
155
154
this . create ( ) ;
156
155
@@ -439,7 +438,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
439
438
}
440
439
441
440
_refresh ( dimensions : dom . Dimension ) {
442
- if ( dimensions . height === 0 && dimensions . width === 0 ) {
441
+ if ( ( this . _isExpanded === undefined ) && ( dimensions . height === 0 ) && ( dimensions . width === 0 ) ) {
443
442
this . commentThread . collapsibleState = languages . CommentThreadCollapsibleState . Collapsed ;
444
443
return ;
445
444
}
You can’t perform that action at this time.
0 commit comments