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
150150
151151 this . _initialCollapsibleState = _pendingComment ? languages . CommentThreadCollapsibleState . Expanded : _commentThread . initialCollapsibleState ;
152152 _commentThread . initialCollapsibleState = this . _initialCollapsibleState ;
153- this . _isExpanded = this . _initialCollapsibleState === languages . CommentThreadCollapsibleState . Expanded ;
154153 this . _commentThreadDisposables = [ ] ;
155154 this . create ( ) ;
156155
@@ -439,7 +438,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
439438 }
440439
441440 _refresh ( dimensions : dom . Dimension ) {
442- if ( dimensions . height === 0 && dimensions . width === 0 ) {
441+ if ( ( this . _isExpanded === undefined ) && ( dimensions . height === 0 ) && ( dimensions . width === 0 ) ) {
443442 this . commentThread . collapsibleState = languages . CommentThreadCollapsibleState . Collapsed ;
444443 return ;
445444 }
You can’t perform that action at this time.
0 commit comments