Skip to content

Commit 1b8ac1d

Browse files
authored
Fix 2 clicks to show collapsed comments (microsoft#154365)
Fixes microsoft#153924
1 parent 4dc2727 commit 1b8ac1d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ export class CommentController implements IEditorContribution {
382382
this._commentingRangeDecorator.update(this.editor, []);
383383
this._commentThreadRangeDecorator.update(this.editor, []);
384384
dispose(this._commentWidgets);
385+
this._commentWidgets = [];
385386
}
386387
}));
387388

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class CommentsPanel extends ViewPane {
234234
const commentToReveal = element instanceof ResourceWithCommentThreads ? element.commentThreads[0].comment.uniqueIdInThread : element.comment.uniqueIdInThread;
235235
if (threadToReveal && isCodeEditor(editor)) {
236236
const controller = CommentController.get(editor);
237-
controller?.revealCommentThread(threadToReveal, commentToReveal, false);
237+
controller?.revealCommentThread(threadToReveal, commentToReveal, true);
238238
}
239239

240240
return true;

0 commit comments

Comments
 (0)