Skip to content

Commit a86e955

Browse files
authored
comments accessible view follow up polish (microsoft#210398)
1 parent 0991535 commit a86e955

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/vs/workbench/contrib/accessibility/browser/accessibleViewContributions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class CommentAccessibleViewContribution extends Disposable {
251251
return false;
252252
}
253253

254-
const commentNode = commentsView?.focusedCommentNode;
254+
const commentNode = commentsView.focusedCommentNode;
255255
const content = commentsView.focusedCommentInfo?.toString();
256256
if (!commentNode || !content) {
257257
return false;

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ export class CommentsPanel extends FilterViewPane implements ICommentsView {
7979
}
8080

8181
get focusedCommentInfo(): string | undefined {
82-
const focused = this.focusedCommentNode;
83-
if (!focused) {
82+
if (!this.focusedCommentNode) {
8483
return;
8584
}
86-
return this.getScreenReaderInfoForNode(focused, 'accessibleViewContent');
85+
return this.getScreenReaderInfoForNode(this.focusedCommentNode, 'accessibleViewContent');
8786
}
8887

8988
focusNextNode(): void {

0 commit comments

Comments
 (0)