@codingame/monaco-vscode-accessibility-service-override 10.1.3 → 11.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 +40 -32
- 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": "11.0.0",
|
|
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@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.0",
|
|
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(5554, "Are you using a screen reader to operate VS Code?")), [{
|
|
38
|
+
label: ( localize(5555, "Yes")),
|
|
39
39
|
run: () => {
|
|
40
40
|
this.configurationService.updateValue('editor.accessibilitySupport', 'on', 2 );
|
|
41
41
|
}
|
|
42
42
|
}, {
|
|
43
|
-
label: ( localize(
|
|
43
|
+
label: ( localize(5556, "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(5557, "Screen Reader Optimized"));
|
|
57
57
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
58
|
-
name: ( localize(
|
|
58
|
+
name: ( localize(5558, "Screen Reader Mode")),
|
|
59
59
|
text,
|
|
60
60
|
ariaLabel: text,
|
|
61
61
|
command: 'showEditorScreenReaderNotification',
|
|
@@ -36,10 +36,12 @@ import { accessibilityHelpIsShown, accessibleViewIsShown, accessibleViewSupports
|
|
|
36
36
|
import { resolveContentAndKeybindingItems } from './accessibleViewKeybindingResolver.js';
|
|
37
37
|
import { IChatCodeBlockContextProviderService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
38
38
|
import { getSimpleEditorOptions } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions';
|
|
39
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
40
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
39
41
|
|
|
40
42
|
let AccessibleView = class AccessibleView extends Disposable {
|
|
41
43
|
get editorWidget() { return this._editorWidget; }
|
|
42
|
-
constructor(_openerService, _instantiationService, _configurationService, _modelService, _contextViewService, _contextKeyService, _accessibilityService, _keybindingService, _layoutService, _menuService, _commandService, _codeBlockContextProviderService, _storageService, _quickInputService) {
|
|
44
|
+
constructor(_openerService, _instantiationService, _configurationService, _modelService, _contextViewService, _contextKeyService, _accessibilityService, _keybindingService, _layoutService, _menuService, _commandService, _codeBlockContextProviderService, _storageService, textModelResolverService, _quickInputService) {
|
|
43
45
|
super();
|
|
44
46
|
this._openerService = _openerService;
|
|
45
47
|
this._instantiationService = _instantiationService;
|
|
@@ -54,6 +56,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
54
56
|
this._commandService = _commandService;
|
|
55
57
|
this._codeBlockContextProviderService = _codeBlockContextProviderService;
|
|
56
58
|
this._storageService = _storageService;
|
|
59
|
+
this.textModelResolverService = textModelResolverService;
|
|
57
60
|
this._quickInputService = _quickInputService;
|
|
58
61
|
this._inQuickPick = false;
|
|
59
62
|
this._accessiblityHelpIsShown = accessibilityHelpIsShown.bindTo(this._contextKeyService);
|
|
@@ -103,6 +106,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
103
106
|
readOnly: true,
|
|
104
107
|
fontFamily: 'var(--monaco-monospace-font)'
|
|
105
108
|
};
|
|
109
|
+
this.textModelResolverService.registerTextModelContentProvider(Schemas.accessibleView, this);
|
|
106
110
|
this._editorWidget = this._register(this._instantiationService.createInstance(CodeEditorWidget, this._container, editorOptions, codeEditorWidgetOptions));
|
|
107
111
|
this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(() => {
|
|
108
112
|
if (this._currentProvider && this._accessiblityHelpIsShown.get()) {
|
|
@@ -133,6 +137,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
133
137
|
}
|
|
134
138
|
}));
|
|
135
139
|
}
|
|
140
|
+
provideTextContent(resource) {
|
|
141
|
+
return this._getTextModel(resource);
|
|
142
|
+
}
|
|
136
143
|
_resetContextKeys() {
|
|
137
144
|
this._accessiblityHelpIsShown.reset();
|
|
138
145
|
this._accessibleViewIsShown.reset();
|
|
@@ -239,7 +246,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
239
246
|
if (provider.options.id) {
|
|
240
247
|
this._lastProvider = provider;
|
|
241
248
|
}
|
|
242
|
-
if (provider.id === "panelChat" ) {
|
|
249
|
+
if (provider.id === "panelChat" || provider.id === "quickChat" ) {
|
|
243
250
|
this._register(this._codeBlockContextProviderService.registerProvider({ getCodeBlockContext: () => this.getCodeBlockContext() }, 'accessibleView'));
|
|
244
251
|
}
|
|
245
252
|
if (provider instanceof ExtensionContentProvider) {
|
|
@@ -283,7 +290,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
283
290
|
if (!markdown) {
|
|
284
291
|
return;
|
|
285
292
|
}
|
|
286
|
-
if (this._currentProvider?.id !== "panelChat" ) {
|
|
293
|
+
if (this._currentProvider?.id !== "panelChat" && this._currentProvider?.id !== "quickChat" ) {
|
|
287
294
|
return;
|
|
288
295
|
}
|
|
289
296
|
if (this._currentProvider.options.language && this._currentProvider.options.language !== 'markdown') {
|
|
@@ -344,8 +351,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
344
351
|
const disposables = this._register(( (new DisposableStore())));
|
|
345
352
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
346
353
|
quickPick.items = items;
|
|
347
|
-
quickPick.title = ( localize(
|
|
348
|
-
quickPick.placeholder = ( localize(
|
|
354
|
+
quickPick.title = ( localize(1777, 'Configure keybindings'));
|
|
355
|
+
quickPick.placeholder = ( localize(1778, 'Select a command ID to configure a keybinding for it'));
|
|
349
356
|
quickPick.show();
|
|
350
357
|
disposables.add(quickPick.onDidAccept(async () => {
|
|
351
358
|
const item = quickPick.selectedItems[0];
|
|
@@ -385,7 +392,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
385
392
|
}
|
|
386
393
|
}
|
|
387
394
|
if (label) {
|
|
388
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
395
|
+
symbols.push({ markdownToParse: label, label: ( localize(1779, "({0}) {1}", token.type, label)), ariaLabel: ( localize(1780, "({0}) {1}", token.type, label)), firstListItem });
|
|
389
396
|
firstListItem = undefined;
|
|
390
397
|
}
|
|
391
398
|
}
|
|
@@ -417,7 +424,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
417
424
|
}
|
|
418
425
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
419
426
|
alert(( localize(
|
|
420
|
-
|
|
427
|
+
1781,
|
|
421
428
|
'{0} accessibility verbosity is now disabled',
|
|
422
429
|
this._currentProvider.verbositySettingKey
|
|
423
430
|
)));
|
|
@@ -480,7 +487,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
480
487
|
this._updateContextKeys(provider, true);
|
|
481
488
|
const widgetIsFocused = this._editorWidget.hasTextFocus() || this._editorWidget.hasWidgetFocus();
|
|
482
489
|
this._getTextModel(( (URI.from(
|
|
483
|
-
{ path: `accessible-view-${provider.id}`, scheme:
|
|
490
|
+
{ path: `accessible-view-${provider.id}`, scheme: Schemas.accessibleView, fragment: this._currentContent }
|
|
484
491
|
)))).then((model) => {
|
|
485
492
|
if (!model) {
|
|
486
493
|
return;
|
|
@@ -496,17 +503,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
496
503
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
497
504
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
498
505
|
actionsHint = provider.options.position ? ( localize(
|
|
499
|
-
|
|
506
|
+
1782,
|
|
500
507
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
501
|
-
)) : ( localize(
|
|
508
|
+
)) : ( localize(1783, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
502
509
|
}
|
|
503
|
-
let ariaLabel = provider.options.type === "help" ? ( localize(
|
|
510
|
+
let ariaLabel = provider.options.type === "help" ? ( localize(1784, "Accessibility Help")) : ( localize(1785, "Accessible View"));
|
|
504
511
|
this._title.textContent = ariaLabel;
|
|
505
512
|
if (actionsHint && provider.options.type === "view" ) {
|
|
506
|
-
ariaLabel = ( localize(
|
|
513
|
+
ariaLabel = ( localize(1786, "Accessible View, {0}", actionsHint));
|
|
507
514
|
}
|
|
508
515
|
else if (actionsHint) {
|
|
509
|
-
ariaLabel = ( localize(
|
|
516
|
+
ariaLabel = ( localize(1787, "Accessibility Help, {0}", actionsHint));
|
|
510
517
|
}
|
|
511
518
|
if (isWindows && widgetIsFocused) {
|
|
512
519
|
ariaLabel = '';
|
|
@@ -574,7 +581,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
574
581
|
return disposableStore;
|
|
575
582
|
}
|
|
576
583
|
_updateToolbar(providedActions, type) {
|
|
577
|
-
this._toolbar.setAriaLabel(type === "help" ? ( localize(
|
|
584
|
+
this._toolbar.setAriaLabel(type === "help" ? ( localize(1788, 'Accessibility Help')) : ( localize(1789, "Accessible View")));
|
|
578
585
|
const menuActions = [];
|
|
579
586
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
580
587
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -677,9 +684,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
677
684
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
678
685
|
const navigationHint = this._navigationHint();
|
|
679
686
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
680
|
-
const toolbarHint = ( localize(
|
|
687
|
+
const toolbarHint = ( localize(1790, "Navigate to the toolbar (Shift+Tab)."));
|
|
681
688
|
const chatHints = this._getChatHints();
|
|
682
|
-
let hint = ( localize(
|
|
689
|
+
let hint = ( localize(1791, "In the accessible view, you can:\n"));
|
|
683
690
|
if (navigationHint) {
|
|
684
691
|
hint += ' - ' + navigationHint + '\n';
|
|
685
692
|
}
|
|
@@ -695,28 +702,28 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
695
702
|
return hint;
|
|
696
703
|
}
|
|
697
704
|
_getChatHints() {
|
|
698
|
-
if (this._currentProvider?.id !== "panelChat" ) {
|
|
705
|
+
if (this._currentProvider?.id !== "panelChat" && this._currentProvider?.id !== "quickChat" ) {
|
|
699
706
|
return;
|
|
700
707
|
}
|
|
701
708
|
return [( localize(
|
|
702
|
-
|
|
709
|
+
1792,
|
|
703
710
|
" - Insert the code block at the cursor{0}.",
|
|
704
711
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
705
712
|
)),
|
|
706
713
|
( localize(
|
|
707
|
-
|
|
714
|
+
1793,
|
|
708
715
|
" - Insert the code block into a new file{0}.",
|
|
709
716
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
710
717
|
)),
|
|
711
718
|
( localize(
|
|
712
|
-
|
|
719
|
+
1794,
|
|
713
720
|
" - Run the code block in the terminal{0}.\n",
|
|
714
721
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
715
722
|
))].join('\n');
|
|
716
723
|
}
|
|
717
724
|
_navigationHint() {
|
|
718
725
|
return ( localize(
|
|
719
|
-
|
|
726
|
+
1795,
|
|
720
727
|
"Show the next item{0} or previous item{1}.",
|
|
721
728
|
`<keybinding:${"editor.action.accessibleViewNext" }`,
|
|
722
729
|
`<keybinding:${"editor.action.accessibleViewPrevious" }>`
|
|
@@ -725,7 +732,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
725
732
|
_disableVerbosityHint(provider) {
|
|
726
733
|
if (provider.options.type === "help" && this._verbosityEnabled()) {
|
|
727
734
|
return ( localize(
|
|
728
|
-
|
|
735
|
+
1796,
|
|
729
736
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
730
737
|
`<keybinding:${"editor.action.accessibleViewDisableHint" }>`
|
|
731
738
|
));
|
|
@@ -737,7 +744,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
737
744
|
return;
|
|
738
745
|
}
|
|
739
746
|
return ( localize(
|
|
740
|
-
|
|
747
|
+
1797,
|
|
741
748
|
'Go to a symbol{0}.',
|
|
742
749
|
`<keybinding:${"editor.action.accessibleViewGoToSymbol" }>`
|
|
743
750
|
));
|
|
@@ -746,7 +753,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
746
753
|
const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureKeybindings" )?.getAriaLabel();
|
|
747
754
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
748
755
|
return ( localize(
|
|
749
|
-
|
|
756
|
+
1798,
|
|
750
757
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
751
758
|
keybindingToConfigureQuickPick
|
|
752
759
|
));
|
|
@@ -755,7 +762,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
755
762
|
const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureAssignedKeybindings" )?.getAriaLabel();
|
|
756
763
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
757
764
|
return ( localize(
|
|
758
|
-
|
|
765
|
+
1799,
|
|
759
766
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
760
767
|
keybindingToConfigureQuickPick
|
|
761
768
|
));
|
|
@@ -777,11 +784,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
777
784
|
return screenReaderModeHint;
|
|
778
785
|
}
|
|
779
786
|
_exitDialogHint(provider) {
|
|
780
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
787
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(1800, '\nExit this dialog (Escape).')) : '';
|
|
781
788
|
}
|
|
782
789
|
_readMoreHint(provider) {
|
|
783
790
|
return provider.options.readMoreUrl ? ( localize(
|
|
784
|
-
|
|
791
|
+
1801,
|
|
785
792
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
786
793
|
`<keybinding:${"editor.action.accessibilityHelpOpenHelpLink" }>`
|
|
787
794
|
)) : '';
|
|
@@ -801,7 +808,8 @@ AccessibleView = ( (__decorate([
|
|
|
801
808
|
( (__param(10, ICommandService))),
|
|
802
809
|
( (__param(11, IChatCodeBlockContextProviderService))),
|
|
803
810
|
( (__param(12, IStorageService))),
|
|
804
|
-
( (__param(13,
|
|
811
|
+
( (__param(13, ITextModelService))),
|
|
812
|
+
( (__param(14, IQuickInputService)))
|
|
805
813
|
], AccessibleView)));
|
|
806
814
|
let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
807
815
|
constructor(_instantiationService, _configurationService, _keybindingService) {
|
|
@@ -841,11 +849,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
841
849
|
const keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleView" )?.getAriaLabel();
|
|
842
850
|
let hint = null;
|
|
843
851
|
if (keybinding) {
|
|
844
|
-
hint = ( localize(
|
|
852
|
+
hint = ( localize(1802, "Inspect this in the accessible view with {0}", keybinding));
|
|
845
853
|
}
|
|
846
854
|
else {
|
|
847
855
|
hint = ( localize(
|
|
848
|
-
|
|
856
|
+
1803,
|
|
849
857
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
850
858
|
));
|
|
851
859
|
}
|
|
@@ -887,8 +895,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
887
895
|
show(provider) {
|
|
888
896
|
const disposables = ( (new DisposableStore()));
|
|
889
897
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
890
|
-
quickPick.placeholder = ( localize(
|
|
891
|
-
quickPick.title = ( localize(
|
|
898
|
+
quickPick.placeholder = ( localize(1804, "Type to search symbols"));
|
|
899
|
+
quickPick.title = ( localize(1805, "Go to Symbol Accessible View"));
|
|
892
900
|
const symbols = this._accessibleView.getSymbols();
|
|
893
901
|
if (!symbols) {
|
|
894
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(5560, "Help: List Signal Sounds")),
|
|
19
19
|
f1: true,
|
|
20
20
|
metadata: {
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
5561,
|
|
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(5562, '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(5563, '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(5564, "Help: List Signal Announcements")),
|
|
90
90
|
f1: true,
|
|
91
91
|
metadata: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
5565,
|
|
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(5566, '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(5567, 'Select an announcement to configure')) : ( localize(
|
|
145
|
+
5568,
|
|
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(5559, "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(1855, "Toggle Screen Reader Accessibility Mode")),
|
|
15
15
|
metadata: {
|
|
16
16
|
description: ( localize2(
|
|
17
|
-
|
|
17
|
+
1856,
|
|
18
18
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
19
19
|
)),
|
|
20
20
|
},
|