mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
a11y view is blank after running focus comment on line (#235807)
Fixes #229857
This commit is contained in:
@@ -188,7 +188,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
|
||||
|
||||
public reveal(commentUniqueId?: number, focus: CommentWidgetFocus = CommentWidgetFocus.None) {
|
||||
this.makeVisible(commentUniqueId, focus);
|
||||
const comment = this._commentThread.comments?.find(comment => comment.uniqueIdInThread === commentUniqueId);
|
||||
const comment = this._commentThread.comments?.find(comment => comment.uniqueIdInThread === commentUniqueId) ?? this._commentThread.comments?.[0];
|
||||
this.commentService.setActiveCommentAndThread(this.uniqueOwner, { thread: this._commentThread, comment });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user