Skip to content

Commit f36826b

Browse files
authored
Fix comment not expanding (#213998)
Fixes #213974
1 parent b08d5c6 commit f36826b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)