@codingame/monaco-vscode-accessibility-service-override 11.0.0 → 11.0.2
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": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
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@11.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -34,13 +34,13 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
34
34
|
}));
|
|
35
35
|
}
|
|
36
36
|
showScreenReaderNotification() {
|
|
37
|
-
this.screenReaderNotification = this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
38
|
-
label: ( localize(
|
|
37
|
+
this.screenReaderNotification = this.notificationService.prompt(Severity$1.Info, ( localize(5590, "Are you using a screen reader to operate VS Code?")), [{
|
|
38
|
+
label: ( localize(5591, "Yes")),
|
|
39
39
|
run: () => {
|
|
40
40
|
this.configurationService.updateValue('editor.accessibilitySupport', 'on', 2 );
|
|
41
41
|
}
|
|
42
42
|
}, {
|
|
43
|
-
label: ( localize(
|
|
43
|
+
label: ( localize(5592, "No")),
|
|
44
44
|
run: () => {
|
|
45
45
|
this.configurationService.updateValue('editor.accessibilitySupport', 'off', 2 );
|
|
46
46
|
}
|
|
@@ -53,9 +53,9 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
53
53
|
updateScreenReaderModeElement(visible) {
|
|
54
54
|
if (visible) {
|
|
55
55
|
if (!this.screenReaderModeElement.value) {
|
|
56
|
-
const text = ( localize(
|
|
56
|
+
const text = ( localize(5593, "Screen Reader Optimized"));
|
|
57
57
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
58
|
-
name: ( localize(
|
|
58
|
+
name: ( localize(5594, "Screen Reader Mode")),
|
|
59
59
|
text,
|
|
60
60
|
ariaLabel: text,
|
|
61
61
|
command: 'showEditorScreenReaderNotification',
|
|
@@ -351,8 +351,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
351
351
|
const disposables = this._register(( (new DisposableStore())));
|
|
352
352
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
353
353
|
quickPick.items = items;
|
|
354
|
-
quickPick.title = ( localize(
|
|
355
|
-
quickPick.placeholder = ( localize(
|
|
354
|
+
quickPick.title = ( localize(2308, 'Configure keybindings'));
|
|
355
|
+
quickPick.placeholder = ( localize(2309, 'Select a command ID to configure a keybinding for it'));
|
|
356
356
|
quickPick.show();
|
|
357
357
|
disposables.add(quickPick.onDidAccept(async () => {
|
|
358
358
|
const item = quickPick.selectedItems[0];
|
|
@@ -392,7 +392,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
if (label) {
|
|
395
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
395
|
+
symbols.push({ markdownToParse: label, label: ( localize(2310, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2311, "({0}) {1}", token.type, label)), firstListItem });
|
|
396
396
|
firstListItem = undefined;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -424,7 +424,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
424
424
|
}
|
|
425
425
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
426
426
|
alert(( localize(
|
|
427
|
-
|
|
427
|
+
2312,
|
|
428
428
|
'{0} accessibility verbosity is now disabled',
|
|
429
429
|
this._currentProvider.verbositySettingKey
|
|
430
430
|
)));
|
|
@@ -503,17 +503,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
503
503
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
504
504
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
505
505
|
actionsHint = provider.options.position ? ( localize(
|
|
506
|
-
|
|
506
|
+
2313,
|
|
507
507
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
508
|
-
)) : ( localize(
|
|
508
|
+
)) : ( localize(2314, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
509
509
|
}
|
|
510
|
-
let ariaLabel = provider.options.type === "help" ? ( localize(
|
|
510
|
+
let ariaLabel = provider.options.type === "help" ? ( localize(2315, "Accessibility Help")) : ( localize(2316, "Accessible View"));
|
|
511
511
|
this._title.textContent = ariaLabel;
|
|
512
512
|
if (actionsHint && provider.options.type === "view" ) {
|
|
513
|
-
ariaLabel = ( localize(
|
|
513
|
+
ariaLabel = ( localize(2317, "Accessible View, {0}", actionsHint));
|
|
514
514
|
}
|
|
515
515
|
else if (actionsHint) {
|
|
516
|
-
ariaLabel = ( localize(
|
|
516
|
+
ariaLabel = ( localize(2318, "Accessibility Help, {0}", actionsHint));
|
|
517
517
|
}
|
|
518
518
|
if (isWindows && widgetIsFocused) {
|
|
519
519
|
ariaLabel = '';
|
|
@@ -581,7 +581,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
581
581
|
return disposableStore;
|
|
582
582
|
}
|
|
583
583
|
_updateToolbar(providedActions, type) {
|
|
584
|
-
this._toolbar.setAriaLabel(type === "help" ? ( localize(
|
|
584
|
+
this._toolbar.setAriaLabel(type === "help" ? ( localize(2319, 'Accessibility Help')) : ( localize(2320, "Accessible View")));
|
|
585
585
|
const menuActions = [];
|
|
586
586
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
587
587
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -684,9 +684,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
684
684
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
685
685
|
const navigationHint = this._navigationHint();
|
|
686
686
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
687
|
-
const toolbarHint = ( localize(
|
|
687
|
+
const toolbarHint = ( localize(2321, "Navigate to the toolbar (Shift+Tab)."));
|
|
688
688
|
const chatHints = this._getChatHints();
|
|
689
|
-
let hint = ( localize(
|
|
689
|
+
let hint = ( localize(2322, "In the accessible view, you can:\n"));
|
|
690
690
|
if (navigationHint) {
|
|
691
691
|
hint += ' - ' + navigationHint + '\n';
|
|
692
692
|
}
|
|
@@ -706,24 +706,24 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
708
|
return [( localize(
|
|
709
|
-
|
|
709
|
+
2323,
|
|
710
710
|
" - Insert the code block at the cursor{0}.",
|
|
711
711
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
712
712
|
)),
|
|
713
713
|
( localize(
|
|
714
|
-
|
|
714
|
+
2324,
|
|
715
715
|
" - Insert the code block into a new file{0}.",
|
|
716
716
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
717
717
|
)),
|
|
718
718
|
( localize(
|
|
719
|
-
|
|
719
|
+
2325,
|
|
720
720
|
" - Run the code block in the terminal{0}.\n",
|
|
721
721
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
722
722
|
))].join('\n');
|
|
723
723
|
}
|
|
724
724
|
_navigationHint() {
|
|
725
725
|
return ( localize(
|
|
726
|
-
|
|
726
|
+
2326,
|
|
727
727
|
"Show the next item{0} or previous item{1}.",
|
|
728
728
|
`<keybinding:${"editor.action.accessibleViewNext" }`,
|
|
729
729
|
`<keybinding:${"editor.action.accessibleViewPrevious" }>`
|
|
@@ -732,7 +732,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
732
732
|
_disableVerbosityHint(provider) {
|
|
733
733
|
if (provider.options.type === "help" && this._verbosityEnabled()) {
|
|
734
734
|
return ( localize(
|
|
735
|
-
|
|
735
|
+
2327,
|
|
736
736
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
737
737
|
`<keybinding:${"editor.action.accessibleViewDisableHint" }>`
|
|
738
738
|
));
|
|
@@ -744,7 +744,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
744
744
|
return;
|
|
745
745
|
}
|
|
746
746
|
return ( localize(
|
|
747
|
-
|
|
747
|
+
2328,
|
|
748
748
|
'Go to a symbol{0}.',
|
|
749
749
|
`<keybinding:${"editor.action.accessibleViewGoToSymbol" }>`
|
|
750
750
|
));
|
|
@@ -753,7 +753,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
753
753
|
const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureKeybindings" )?.getAriaLabel();
|
|
754
754
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
755
755
|
return ( localize(
|
|
756
|
-
|
|
756
|
+
2329,
|
|
757
757
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
758
758
|
keybindingToConfigureQuickPick
|
|
759
759
|
));
|
|
@@ -762,7 +762,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
762
762
|
const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureAssignedKeybindings" )?.getAriaLabel();
|
|
763
763
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
764
764
|
return ( localize(
|
|
765
|
-
|
|
765
|
+
2330,
|
|
766
766
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
767
767
|
keybindingToConfigureQuickPick
|
|
768
768
|
));
|
|
@@ -784,11 +784,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
784
784
|
return screenReaderModeHint;
|
|
785
785
|
}
|
|
786
786
|
_exitDialogHint(provider) {
|
|
787
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
787
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(2331, '\nExit this dialog (Escape).')) : '';
|
|
788
788
|
}
|
|
789
789
|
_readMoreHint(provider) {
|
|
790
790
|
return provider.options.readMoreUrl ? ( localize(
|
|
791
|
-
|
|
791
|
+
2332,
|
|
792
792
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
793
793
|
`<keybinding:${"editor.action.accessibilityHelpOpenHelpLink" }>`
|
|
794
794
|
)) : '';
|
|
@@ -849,11 +849,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
849
849
|
const keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleView" )?.getAriaLabel();
|
|
850
850
|
let hint = null;
|
|
851
851
|
if (keybinding) {
|
|
852
|
-
hint = ( localize(
|
|
852
|
+
hint = ( localize(2333, "Inspect this in the accessible view with {0}", keybinding));
|
|
853
853
|
}
|
|
854
854
|
else {
|
|
855
855
|
hint = ( localize(
|
|
856
|
-
|
|
856
|
+
2334,
|
|
857
857
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
858
858
|
));
|
|
859
859
|
}
|
|
@@ -895,8 +895,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
895
895
|
show(provider) {
|
|
896
896
|
const disposables = ( (new DisposableStore()));
|
|
897
897
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
898
|
-
quickPick.placeholder = ( localize(
|
|
899
|
-
quickPick.title = ( localize(
|
|
898
|
+
quickPick.placeholder = ( localize(2335, "Type to search symbols"));
|
|
899
|
+
quickPick.title = ( localize(2336, "Go to Symbol Accessible View"));
|
|
900
900
|
const symbols = this._accessibleView.getSymbols();
|
|
901
901
|
if (!symbols) {
|
|
902
902
|
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(5596, "Help: List Signal Sounds")),
|
|
19
19
|
f1: true,
|
|
20
20
|
metadata: {
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
5597,
|
|
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(5598, '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(5599, '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(5600, "Help: List Signal Announcements")),
|
|
90
90
|
f1: true,
|
|
91
91
|
metadata: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
5601,
|
|
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(5602, '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(5603, 'Select an announcement to configure')) : ( localize(
|
|
145
|
+
5604,
|
|
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
|
@@ -34,7 +34,7 @@ let DiffEditorActiveAnnouncementContribution = class DiffEditorActiveAnnouncemen
|
|
|
34
34
|
}
|
|
35
35
|
this._onDidActiveEditorChangeListener = this._register(this._editorService.onDidActiveEditorChange(() => {
|
|
36
36
|
if (isDiffEditor(this._editorService.activeTextEditorControl)) {
|
|
37
|
-
this._accessibilityService.alert(( localize(
|
|
37
|
+
this._accessibilityService.alert(( localize(5595, "Diff editor")));
|
|
38
38
|
}
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
@@ -11,10 +11,10 @@ class ToggleScreenReaderMode extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.toggleScreenReaderAccessibilityMode',
|
|
14
|
-
title: ( localize2(
|
|
14
|
+
title: ( localize2(2337, "Toggle Screen Reader Accessibility Mode")),
|
|
15
15
|
metadata: {
|
|
16
16
|
description: ( localize2(
|
|
17
|
-
|
|
17
|
+
2338,
|
|
18
18
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
19
19
|
)),
|
|
20
20
|
},
|