@codingame/monaco-vscode-accessibility-service-override 9.0.0 → 9.0.3
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": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -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(5533, "Are you using a screen reader to operate VS Code?")), [{
|
|
40
|
+
label: ( localize(5534, "Yes")),
|
|
41
41
|
run: () => {
|
|
42
42
|
this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(5535, "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(5536, "Screen Reader Optimized"));
|
|
59
59
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
60
|
-
name: ( localize(
|
|
60
|
+
name: ( localize(5537, "Screen Reader Mode")),
|
|
61
61
|
text,
|
|
62
62
|
ariaLabel: text,
|
|
63
63
|
command: 'showEditorScreenReaderNotification',
|
|
@@ -353,8 +353,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
353
353
|
const disposables = this._register(( (new DisposableStore())));
|
|
354
354
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
355
355
|
quickPick.items = items;
|
|
356
|
-
quickPick.title = ( localize(
|
|
357
|
-
quickPick.placeholder = ( localize(
|
|
356
|
+
quickPick.title = ( localize(2256, 'Configure keybindings'));
|
|
357
|
+
quickPick.placeholder = ( localize(2257, 'Select a command ID to configure a keybinding for it'));
|
|
358
358
|
quickPick.show();
|
|
359
359
|
disposables.add(quickPick.onDidAccept(async () => {
|
|
360
360
|
const item = quickPick.selectedItems[0];
|
|
@@ -394,7 +394,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
if (label) {
|
|
397
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
397
|
+
symbols.push({ markdownToParse: label, label: ( localize(2258, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2259, "({0}) {1}", token.type, label)), firstListItem });
|
|
398
398
|
firstListItem = undefined;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -426,7 +426,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
426
426
|
}
|
|
427
427
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
428
428
|
alert(( localize(
|
|
429
|
-
|
|
429
|
+
2260,
|
|
430
430
|
'{0} accessibility verbosity is now disabled',
|
|
431
431
|
this._currentProvider.verbositySettingKey
|
|
432
432
|
)));
|
|
@@ -505,17 +505,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
505
505
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
506
506
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
507
507
|
actionsHint = provider.options.position ? ( localize(
|
|
508
|
-
|
|
508
|
+
2261,
|
|
509
509
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
510
|
-
)) : ( localize(
|
|
510
|
+
)) : ( localize(2262, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
511
511
|
}
|
|
512
|
-
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(
|
|
512
|
+
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(2263, "Accessibility Help")) : ( localize(2264, "Accessible View"));
|
|
513
513
|
this._title.textContent = ariaLabel;
|
|
514
514
|
if (actionsHint && provider.options.type === AccessibleViewType.View) {
|
|
515
|
-
ariaLabel = ( localize(
|
|
515
|
+
ariaLabel = ( localize(2265, "Accessible View, {0}", actionsHint));
|
|
516
516
|
}
|
|
517
517
|
else if (actionsHint) {
|
|
518
|
-
ariaLabel = ( localize(
|
|
518
|
+
ariaLabel = ( localize(2266, "Accessibility Help, {0}", actionsHint));
|
|
519
519
|
}
|
|
520
520
|
if (isWindows && widgetIsFocused) {
|
|
521
521
|
ariaLabel = '';
|
|
@@ -583,7 +583,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
583
583
|
return disposableStore;
|
|
584
584
|
}
|
|
585
585
|
_updateToolbar(providedActions, type) {
|
|
586
|
-
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(
|
|
586
|
+
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(2267, 'Accessibility Help')) : ( localize(2268, "Accessible View")));
|
|
587
587
|
const menuActions = [];
|
|
588
588
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
589
589
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -686,9 +686,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
686
686
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
687
687
|
const navigationHint = this._navigationHint();
|
|
688
688
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
689
|
-
const toolbarHint = ( localize(
|
|
689
|
+
const toolbarHint = ( localize(2269, "Navigate to the toolbar (Shift+Tab)."));
|
|
690
690
|
const chatHints = this._getChatHints();
|
|
691
|
-
let hint = ( localize(
|
|
691
|
+
let hint = ( localize(2270, "In the accessible view, you can:\n"));
|
|
692
692
|
if (navigationHint) {
|
|
693
693
|
hint += ' - ' + navigationHint + '\n';
|
|
694
694
|
}
|
|
@@ -708,24 +708,24 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
710
|
return [( localize(
|
|
711
|
-
|
|
711
|
+
2271,
|
|
712
712
|
" - Insert the code block at the cursor{0}.",
|
|
713
713
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
714
714
|
)),
|
|
715
715
|
( localize(
|
|
716
|
-
|
|
716
|
+
2272,
|
|
717
717
|
" - Insert the code block into a new file{0}.",
|
|
718
718
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
719
719
|
)),
|
|
720
720
|
( localize(
|
|
721
|
-
|
|
721
|
+
2273,
|
|
722
722
|
" - Run the code block in the terminal{0}.\n",
|
|
723
723
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
724
724
|
))].join('\n');
|
|
725
725
|
}
|
|
726
726
|
_navigationHint() {
|
|
727
727
|
return ( localize(
|
|
728
|
-
|
|
728
|
+
2274,
|
|
729
729
|
"Show the next item{0} or previous item{1}.",
|
|
730
730
|
`<keybinding:${AccessibilityCommandId.ShowNext}`,
|
|
731
731
|
`<keybinding:${AccessibilityCommandId.ShowPrevious}>`
|
|
@@ -734,7 +734,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
734
734
|
_disableVerbosityHint(provider) {
|
|
735
735
|
if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
|
|
736
736
|
return ( localize(
|
|
737
|
-
|
|
737
|
+
2275,
|
|
738
738
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
739
739
|
`<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
|
|
740
740
|
));
|
|
@@ -746,7 +746,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
748
|
return ( localize(
|
|
749
|
-
|
|
749
|
+
2276,
|
|
750
750
|
'Go to a symbol{0}.',
|
|
751
751
|
`<keybinding:${AccessibilityCommandId.GoToSymbol}>`
|
|
752
752
|
));
|
|
@@ -755,7 +755,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
755
755
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
|
|
756
756
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
757
757
|
return ( localize(
|
|
758
|
-
|
|
758
|
+
2277,
|
|
759
759
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
760
760
|
keybindingToConfigureQuickPick
|
|
761
761
|
));
|
|
@@ -764,7 +764,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
764
764
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
|
|
765
765
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
766
766
|
return ( localize(
|
|
767
|
-
|
|
767
|
+
2278,
|
|
768
768
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
769
769
|
keybindingToConfigureQuickPick
|
|
770
770
|
));
|
|
@@ -786,11 +786,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
786
786
|
return screenReaderModeHint;
|
|
787
787
|
}
|
|
788
788
|
_exitDialogHint(provider) {
|
|
789
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
789
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(2279, '\nExit this dialog (Escape).')) : '';
|
|
790
790
|
}
|
|
791
791
|
_readMoreHint(provider) {
|
|
792
792
|
return provider.options.readMoreUrl ? ( localize(
|
|
793
|
-
|
|
793
|
+
2280,
|
|
794
794
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
795
795
|
`<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
|
|
796
796
|
)) : '';
|
|
@@ -850,11 +850,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
850
850
|
const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
|
|
851
851
|
let hint = null;
|
|
852
852
|
if (keybinding) {
|
|
853
|
-
hint = ( localize(
|
|
853
|
+
hint = ( localize(2281, "Inspect this in the accessible view with {0}", keybinding));
|
|
854
854
|
}
|
|
855
855
|
else {
|
|
856
856
|
hint = ( localize(
|
|
857
|
-
|
|
857
|
+
2282,
|
|
858
858
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
859
859
|
));
|
|
860
860
|
}
|
|
@@ -896,8 +896,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
896
896
|
show(provider) {
|
|
897
897
|
const disposables = ( (new DisposableStore()));
|
|
898
898
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
899
|
-
quickPick.placeholder = ( localize(
|
|
900
|
-
quickPick.title = ( localize(
|
|
899
|
+
quickPick.placeholder = ( localize(2283, "Type to search symbols"));
|
|
900
|
+
quickPick.title = ( localize(2284, "Go to Symbol Accessible View"));
|
|
901
901
|
const symbols = this._accessibleView.getSymbols();
|
|
902
902
|
if (!symbols) {
|
|
903
903
|
return;
|
|
@@ -15,11 +15,11 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: ShowSignalSoundHelp.ID,
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(5539, "Help: List Signal Sounds")),
|
|
19
19
|
f1: true,
|
|
20
20
|
metadata: {
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
5540,
|
|
23
23
|
"List all accessibility sounds, noises, or audio cues and configure their settings"
|
|
24
24
|
))
|
|
25
25
|
}
|
|
@@ -37,7 +37,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
37
37
|
signal,
|
|
38
38
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
39
39
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
40
|
-
tooltip: ( localize(
|
|
40
|
+
tooltip: ( localize(5541, 'Configure Sound')),
|
|
41
41
|
alwaysVisible: true
|
|
42
42
|
}] : []
|
|
43
43
|
})))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -73,7 +73,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
73
73
|
accessibilitySignalService.playSound(qp.activeItems[0].signal.sound.getSound(true), true, AcknowledgeDocCommentsToken);
|
|
74
74
|
}));
|
|
75
75
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
76
|
-
qp.placeholder = ( localize(
|
|
76
|
+
qp.placeholder = ( localize(5542, 'Select a sound to play and configure'));
|
|
77
77
|
qp.canSelectMany = true;
|
|
78
78
|
await qp.show();
|
|
79
79
|
}
|
|
@@ -86,11 +86,11 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: ShowAccessibilityAnnouncementHelp.ID,
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(5543, "Help: List Signal Announcements")),
|
|
90
90
|
f1: true,
|
|
91
91
|
metadata: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
5544,
|
|
94
94
|
"List all accessibility announcements, alerts, braille messages, and configure their settings"
|
|
95
95
|
))
|
|
96
96
|
}
|
|
@@ -108,7 +108,7 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
108
108
|
signal,
|
|
109
109
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
110
110
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
111
|
-
tooltip: ( localize(
|
|
111
|
+
tooltip: ( localize(5545, 'Configure Announcement')),
|
|
112
112
|
alwaysVisible: true,
|
|
113
113
|
}] : []
|
|
114
114
|
})))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -141,8 +141,8 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
141
141
|
preferencesService.openUserSettings({ jsonEditor: true, revealSetting: { key: e.item.signal.settingsKey, edit: true } });
|
|
142
142
|
}));
|
|
143
143
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
144
|
-
qp.placeholder = screenReaderOptimized ? ( localize(
|
|
145
|
-
|
|
144
|
+
qp.placeholder = screenReaderOptimized ? ( localize(5546, 'Select an announcement to configure')) : ( localize(
|
|
145
|
+
5547,
|
|
146
146
|
'Screen reader is not active, announcements are disabled by default.'
|
|
147
147
|
));
|
|
148
148
|
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(5538, "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(2334, "Toggle Screen Reader Accessibility Mode")),
|
|
18
18
|
metadata: {
|
|
19
19
|
description: ( localize2(
|
|
20
|
-
|
|
20
|
+
2335,
|
|
21
21
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
22
22
|
)),
|
|
23
23
|
},
|