@codingame/monaco-vscode-accessibility-service-override 7.1.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +5 -5
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +26 -26
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +9 -9
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-accessibility-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -36,13 +36,13 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
36
36
|
}));
|
|
37
37
|
}
|
|
38
38
|
showScreenReaderNotification() {
|
|
39
|
-
this.screenReaderNotification = this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
40
|
-
label: ( localize(
|
|
39
|
+
this.screenReaderNotification = this.notificationService.prompt(Severity$1.Info, ( localize(5573, "Are you using a screen reader to operate VS Code?")), [{
|
|
40
|
+
label: ( localize(5574, "Yes")),
|
|
41
41
|
run: () => {
|
|
42
42
|
this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(5575, "No")),
|
|
46
46
|
run: () => {
|
|
47
47
|
this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
|
|
48
48
|
}
|
|
@@ -55,9 +55,9 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
55
55
|
updateScreenReaderModeElement(visible) {
|
|
56
56
|
if (visible) {
|
|
57
57
|
if (!this.screenReaderModeElement.value) {
|
|
58
|
-
const text = ( localize(
|
|
58
|
+
const text = ( localize(5576, "Screen Reader Optimized"));
|
|
59
59
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
60
|
-
name: ( localize(
|
|
60
|
+
name: ( localize(5577, "Screen Reader Mode")),
|
|
61
61
|
text,
|
|
62
62
|
ariaLabel: text,
|
|
63
63
|
command: 'showEditorScreenReaderNotification',
|
|
@@ -347,8 +347,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
347
347
|
const quickPick = this._quickInputService.createQuickPick();
|
|
348
348
|
this._register(quickPick);
|
|
349
349
|
quickPick.items = items;
|
|
350
|
-
quickPick.title = ( localize(
|
|
351
|
-
quickPick.placeholder = ( localize(
|
|
350
|
+
quickPick.title = ( localize(1791, 'Configure keybindings'));
|
|
351
|
+
quickPick.placeholder = ( localize(1792, 'Select a command ID to configure a keybinding for it'));
|
|
352
352
|
quickPick.show();
|
|
353
353
|
quickPick.onDidAccept(async () => {
|
|
354
354
|
const item = quickPick.selectedItems[0];
|
|
@@ -388,7 +388,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
if (label) {
|
|
391
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
391
|
+
symbols.push({ markdownToParse: label, label: ( localize(1793, "({0}) {1}", token.type, label)), ariaLabel: ( localize(1794, "({0}) {1}", token.type, label)), firstListItem });
|
|
392
392
|
firstListItem = undefined;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
@@ -420,7 +420,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
420
420
|
}
|
|
421
421
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
422
422
|
alert(( localize(
|
|
423
|
-
|
|
423
|
+
1795,
|
|
424
424
|
'{0} accessibility verbosity is now disabled',
|
|
425
425
|
this._currentProvider.verbositySettingKey
|
|
426
426
|
)));
|
|
@@ -499,17 +499,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
499
499
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
500
500
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
501
501
|
actionsHint = provider.options.position ? ( localize(
|
|
502
|
-
|
|
502
|
+
1796,
|
|
503
503
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
504
|
-
)) : ( localize(
|
|
504
|
+
)) : ( localize(1797, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
505
505
|
}
|
|
506
|
-
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(
|
|
506
|
+
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(1798, "Accessibility Help")) : ( localize(1799, "Accessible View"));
|
|
507
507
|
this._title.textContent = ariaLabel;
|
|
508
508
|
if (actionsHint && provider.options.type === AccessibleViewType.View) {
|
|
509
|
-
ariaLabel = ( localize(
|
|
509
|
+
ariaLabel = ( localize(1800, "Accessible View, {0}", actionsHint));
|
|
510
510
|
}
|
|
511
511
|
else if (actionsHint) {
|
|
512
|
-
ariaLabel = ( localize(
|
|
512
|
+
ariaLabel = ( localize(1801, "Accessibility Help, {0}", actionsHint));
|
|
513
513
|
}
|
|
514
514
|
if (isWindows && widgetIsFocused) {
|
|
515
515
|
ariaLabel = '';
|
|
@@ -577,7 +577,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
577
577
|
return disposableStore;
|
|
578
578
|
}
|
|
579
579
|
_updateToolbar(providedActions, type) {
|
|
580
|
-
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(
|
|
580
|
+
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(1802, 'Accessibility Help')) : ( localize(1803, "Accessible View")));
|
|
581
581
|
const menuActions = [];
|
|
582
582
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
583
583
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -680,9 +680,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
680
680
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
681
681
|
const navigationHint = this._navigationHint();
|
|
682
682
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
683
|
-
const toolbarHint = ( localize(
|
|
683
|
+
const toolbarHint = ( localize(1804, "Navigate to the toolbar (Shift+Tab)."));
|
|
684
684
|
const chatHints = this._getChatHints();
|
|
685
|
-
let hint = ( localize(
|
|
685
|
+
let hint = ( localize(1805, "In the accessible view, you can:\n"));
|
|
686
686
|
if (navigationHint) {
|
|
687
687
|
hint += ' - ' + navigationHint + '\n';
|
|
688
688
|
}
|
|
@@ -702,24 +702,24 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
return [( localize(
|
|
705
|
-
|
|
705
|
+
1806,
|
|
706
706
|
" - Insert the code block at the cursor{0}.",
|
|
707
707
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
708
708
|
)),
|
|
709
709
|
( localize(
|
|
710
|
-
|
|
710
|
+
1807,
|
|
711
711
|
" - Insert the code block into a new file{0}.",
|
|
712
712
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
713
713
|
)),
|
|
714
714
|
( localize(
|
|
715
|
-
|
|
715
|
+
1808,
|
|
716
716
|
" - Run the code block in the terminal{0}.\n",
|
|
717
717
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
718
718
|
))].join('\n');
|
|
719
719
|
}
|
|
720
720
|
_navigationHint() {
|
|
721
721
|
return ( localize(
|
|
722
|
-
|
|
722
|
+
1809,
|
|
723
723
|
"Show the next item{0} or previous item{1}.",
|
|
724
724
|
`<keybinding:${AccessibilityCommandId.ShowNext}`,
|
|
725
725
|
`<keybinding:${AccessibilityCommandId.ShowPrevious}>`
|
|
@@ -728,7 +728,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
728
728
|
_disableVerbosityHint(provider) {
|
|
729
729
|
if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
|
|
730
730
|
return ( localize(
|
|
731
|
-
|
|
731
|
+
1810,
|
|
732
732
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
733
733
|
`<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
|
|
734
734
|
));
|
|
@@ -740,7 +740,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
742
|
return ( localize(
|
|
743
|
-
|
|
743
|
+
1811,
|
|
744
744
|
'Go to a symbol{0}.',
|
|
745
745
|
`<keybinding:${AccessibilityCommandId.GoToSymbol}>`
|
|
746
746
|
));
|
|
@@ -749,7 +749,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
749
749
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
|
|
750
750
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
751
751
|
return ( localize(
|
|
752
|
-
|
|
752
|
+
1812,
|
|
753
753
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
754
754
|
keybindingToConfigureQuickPick
|
|
755
755
|
));
|
|
@@ -758,7 +758,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
758
758
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
|
|
759
759
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
760
760
|
return ( localize(
|
|
761
|
-
|
|
761
|
+
1813,
|
|
762
762
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
763
763
|
keybindingToConfigureQuickPick
|
|
764
764
|
));
|
|
@@ -780,11 +780,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
780
780
|
return screenReaderModeHint;
|
|
781
781
|
}
|
|
782
782
|
_exitDialogHint(provider) {
|
|
783
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
783
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(1814, '\nExit this dialog (Escape).')) : '';
|
|
784
784
|
}
|
|
785
785
|
_readMoreHint(provider) {
|
|
786
786
|
return provider.options.readMoreUrl ? ( localize(
|
|
787
|
-
|
|
787
|
+
1815,
|
|
788
788
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
789
789
|
`<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
|
|
790
790
|
)) : '';
|
|
@@ -844,11 +844,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
844
844
|
const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
|
|
845
845
|
let hint = null;
|
|
846
846
|
if (keybinding) {
|
|
847
|
-
hint = ( localize(
|
|
847
|
+
hint = ( localize(1816, "Inspect this in the accessible view with {0}", keybinding));
|
|
848
848
|
}
|
|
849
849
|
else {
|
|
850
850
|
hint = ( localize(
|
|
851
|
-
|
|
851
|
+
1817,
|
|
852
852
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
853
853
|
));
|
|
854
854
|
}
|
|
@@ -893,8 +893,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
893
893
|
}
|
|
894
894
|
show(provider) {
|
|
895
895
|
const quickPick = this._quickInputService.createQuickPick();
|
|
896
|
-
quickPick.placeholder = ( localize(
|
|
897
|
-
quickPick.title = ( localize(
|
|
896
|
+
quickPick.placeholder = ( localize(1818, "Type to search symbols"));
|
|
897
|
+
quickPick.title = ( localize(1819, "Go to Symbol Accessible View"));
|
|
898
898
|
const symbols = this._accessibleView.getSymbols();
|
|
899
899
|
if (!symbols) {
|
|
900
900
|
return;
|
|
@@ -14,11 +14,11 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super({
|
|
16
16
|
id: ShowSignalSoundHelp.ID,
|
|
17
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(5579, "Help: List Signal Sounds")),
|
|
18
18
|
f1: true,
|
|
19
19
|
metadata: {
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
5580,
|
|
22
22
|
"List all accessibility sounds, noises, or audio cues and configure their settings"
|
|
23
23
|
))
|
|
24
24
|
}
|
|
@@ -36,7 +36,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
36
36
|
signal,
|
|
37
37
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
38
38
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
39
|
-
tooltip: ( localize(
|
|
39
|
+
tooltip: ( localize(5581, 'Configure Sound')),
|
|
40
40
|
alwaysVisible: true
|
|
41
41
|
}] : []
|
|
42
42
|
})))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -70,7 +70,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
70
70
|
qp.onDidChangeActive(() => {
|
|
71
71
|
accessibilitySignalService.playSound(qp.activeItems[0].signal.sound.getSound(true), true, AcknowledgeDocCommentsToken);
|
|
72
72
|
});
|
|
73
|
-
qp.placeholder = ( localize(
|
|
73
|
+
qp.placeholder = ( localize(5582, 'Select a sound to play and configure'));
|
|
74
74
|
qp.canSelectMany = true;
|
|
75
75
|
await qp.show();
|
|
76
76
|
}
|
|
@@ -83,11 +83,11 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: ShowAccessibilityAnnouncementHelp.ID,
|
|
86
|
-
title: ( localize2(
|
|
86
|
+
title: ( localize2(5583, "Help: List Signal Announcements")),
|
|
87
87
|
f1: true,
|
|
88
88
|
metadata: {
|
|
89
89
|
description: ( localize(
|
|
90
|
-
|
|
90
|
+
5584,
|
|
91
91
|
"List all accessibility announcements, alerts, braille messages, and configure their settings"
|
|
92
92
|
))
|
|
93
93
|
}
|
|
@@ -105,7 +105,7 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
105
105
|
signal,
|
|
106
106
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
107
107
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
108
|
-
tooltip: ( localize(
|
|
108
|
+
tooltip: ( localize(5585, 'Configure Announcement')),
|
|
109
109
|
alwaysVisible: true,
|
|
110
110
|
}] : []
|
|
111
111
|
})))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -136,8 +136,8 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
136
136
|
qp.onDidTriggerItemButton(e => {
|
|
137
137
|
preferencesService.openUserSettings({ jsonEditor: true, revealSetting: { key: e.item.signal.settingsKey, edit: true } });
|
|
138
138
|
});
|
|
139
|
-
qp.placeholder = screenReaderOptimized ? ( localize(
|
|
140
|
-
|
|
139
|
+
qp.placeholder = screenReaderOptimized ? ( localize(5586, 'Select an announcement to configure')) : ( localize(
|
|
140
|
+
5587,
|
|
141
141
|
'Screen reader is not active, announcements are disabled by default.'
|
|
142
142
|
));
|
|
143
143
|
qp.canSelectMany = true;
|
package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement.js
CHANGED
|
@@ -35,7 +35,7 @@ let DiffEditorActiveAnnouncementContribution = class DiffEditorActiveAnnouncemen
|
|
|
35
35
|
}
|
|
36
36
|
this._onDidActiveEditorChangeListener = this._register(this._editorService.onDidActiveEditorChange(() => {
|
|
37
37
|
if (isDiffEditor(this._editorService.activeTextEditorControl)) {
|
|
38
|
-
this._accessibilityService.alert(( localize(
|
|
38
|
+
this._accessibilityService.alert(( localize(5578, "Diff editor")));
|
|
39
39
|
}
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
@@ -14,10 +14,10 @@ class ToggleScreenReaderMode extends Action2 {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super({
|
|
16
16
|
id: 'editor.action.toggleScreenReaderAccessibilityMode',
|
|
17
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(1869, "Toggle Screen Reader Accessibility Mode")),
|
|
18
18
|
metadata: {
|
|
19
19
|
description: ( localize2(
|
|
20
|
-
|
|
20
|
+
1870,
|
|
21
21
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
22
22
|
)),
|
|
23
23
|
},
|