File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,11 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
319319 this . _commentThread . collapsibleState = languages . CommentThreadCollapsibleState . Collapsed ;
320320 }
321321
322- public expand ( ) {
322+ public expand ( setActive ?: boolean ) {
323323 this . _commentThread . collapsibleState = languages . CommentThreadCollapsibleState . Expanded ;
324+ if ( setActive ) {
325+ this . commentService . setActiveCommentAndThread ( this . uniqueOwner , { thread : this . _commentThread } ) ;
326+ }
324327 }
325328
326329 public getGlyphPosition ( ) : number {
Original file line number Diff line number Diff line change @@ -1098,7 +1098,7 @@ export class CommentController implements IEditorContribution {
10981098 const existingCommentsAtLine = this . _commentWidgets . filter ( widget => widget . getGlyphPosition ( ) === ( commentRange ? commentRange . endLineNumber : 0 ) ) ;
10991099 if ( existingCommentsAtLine . length ) {
11001100 const allExpanded = existingCommentsAtLine . every ( widget => widget . expanded ) ;
1101- existingCommentsAtLine . forEach ( allExpanded ? widget => widget . collapse ( ) : widget => widget . expand ( ) ) ;
1101+ existingCommentsAtLine . forEach ( allExpanded ? widget => widget . collapse ( ) : widget => widget . expand ( true ) ) ;
11021102 this . processNextThreadToAdd ( ) ;
11031103 return ;
11041104 } else {
You can’t perform that action at this time.
0 commit comments