Skip to content

Commit d719f3e

Browse files
authored
add accessibility help dialog for issues/PR views (#5934)
1 parent 548afd7 commit d719f3e

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"shareProvider",
3030
"tabInputTextMerge",
3131
"tokenInformation",
32-
"treeViewMarkdownMessage"
32+
"treeViewMarkdownMessage",
33+
"contribAccessibilityHelpContent"
3334
],
3435
"version": "0.86.0",
3536
"publisher": "GitHub",
@@ -662,13 +663,15 @@
662663
"id": "pr:github",
663664
"name": "%view.pr.github.name%",
664665
"when": "ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts",
665-
"icon": "$(git-pull-request)"
666+
"icon": "$(git-pull-request)",
667+
"accessibilityHelpContent": "Helpful commands include: \n-Refresh PR List (keybinding:pr.refreshList)\n-GitHub Pull Requests: Focus on Issues View (keybinding:issue.refresh) \n-GitHub Pull Requests: Focus on Pull Requests View (keybinding:pr:github.focus)\n-GitHub Issues: Copy GitHub Permalink (keybinding:issue.copyGithubPermalink)\n-GitHub Issues: Create an Issue (keybinding:issue.createIssue)\n-GitHub Pull Requests: Create Pull Request (keybinding:command:pr.create)\n-GitHub Pull Requests: Start Review (keybinding:pr.startReview)\n-GitHub Pull Requests: Mark Pull Request Ready For Review (keybinding:pr.readyForReview)\n-GitHub Pull Requests: Approve (keybinding:review.approve)"
666668
},
667669
{
668670
"id": "issues:github",
669671
"name": "%view.issues.github.name%",
670672
"when": "ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts",
671-
"icon": "$(issues)"
673+
"icon": "$(issues)",
674+
"accessibilityHelpContent": "Helpful commands include: \n-[Refresh issues](command:issue.refresh)(keybinding:issue.refresh)\n-[GitHub Pull Requests: Focus on Issues View](command:issues:github.focus)(keybinding:issue.refresh) \n-[GitHub Pull Requests: Focus on Pull Requests View](command:pr:github.focus)(keybinding:pr:github.focus)\n-[GitHub Issues: Copy GitHub Permalink](command:issue.copyGithubPermalink)(keybinding:issue.copyGithubPermalink)\n-[GitHub Issues: Create an Issue](command:issue.createIssue)(keybinding:issue.createIssue)\n-[GitHub Pull Requests: Create Pull Request](command:pr.create)(keybinding:command:pr.create)\n-[GitHub Pull Requests: Start Review](command:pr.startReview)(keybinding:pr.startReview)\n-[GitHub Pull Requests: Mark Pull Request Ready For Review](command:pr.readyForReview)(keybinding:pr.readyForReview)\n-[GitHub Pull Requests: Approve](command:review.approve)(keybinding:review.approve)"
672675
},
673676
{
674677
"id": "github:conflictResolution",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
// empty placeholder declaration for the `accessibilityHelpContent`-property of the `views`-contribution
7+
8+
// https://github.com/microsoft/vscode/issues/209855 @meganrogge
9+
10+
/**
11+
* View contributions can include an `accessibilityHelpContent` property that provides help content for screen readers
12+
* when the accessibility help dialog is invoked by the user with focus in the view.
13+
*
14+
* The content is provided as a markdown string and can contain commands that will be resolved along with their keybindings.
15+
*/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
// empty placeholder declaration for the `editor/content` menu

0 commit comments

Comments
 (0)