@codingame/monaco-vscode-accessibility-service-override 21.6.0 → 22.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 +3 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +6 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +36 -28
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewKeybindingResolver.d.ts +1 -1
- 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": "22.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - accessibility service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "22.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "22.0.0",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
22
22
|
"main": "index.js",
|
|
@@ -40,22 +40,22 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
40
40
|
}
|
|
41
41
|
showScreenReaderNotification() {
|
|
42
42
|
this.screenReaderNotification = this.notificationService.prompt(Severity.Info, ( localize(
|
|
43
|
-
|
|
43
|
+
4288,
|
|
44
44
|
"Screen reader usage detected. Do you want to enable {0} to optimize the editor for screen reader usage?",
|
|
45
45
|
'editor.accessibilitySupport'
|
|
46
46
|
)), [{
|
|
47
|
-
label: ( localize(
|
|
47
|
+
label: ( localize(4289, "Yes")),
|
|
48
48
|
run: () => {
|
|
49
49
|
this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
|
|
50
50
|
}
|
|
51
51
|
}, {
|
|
52
|
-
label: ( localize(
|
|
52
|
+
label: ( localize(4290, "No")),
|
|
53
53
|
run: () => {
|
|
54
54
|
this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
label: ( localize(
|
|
58
|
+
label: ( localize(4291, "Learn More")),
|
|
59
59
|
run: () => {
|
|
60
60
|
this.openerService.open('https://code.visualstudio.com/docs/editor/accessibility#_screen-readers');
|
|
61
61
|
}
|
|
@@ -68,9 +68,9 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
68
68
|
updateScreenReaderModeElement(visible) {
|
|
69
69
|
if (visible) {
|
|
70
70
|
if (!this.screenReaderModeElement.value) {
|
|
71
|
-
const text = ( localize(
|
|
71
|
+
const text = ( localize(4292, "Screen Reader Optimized"));
|
|
72
72
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
73
|
-
name: ( localize(
|
|
73
|
+
name: ( localize(4293, "Screen Reader Mode")),
|
|
74
74
|
text,
|
|
75
75
|
ariaLabel: text,
|
|
76
76
|
command: 'showEditorScreenReaderNotification',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { createElement, getActiveWindow, addDisposableListener, EventType, isActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { createElement, getActiveWindow, getWindow, addDisposableListener, EventType, isActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
5
5
|
import { ActionsOrientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
6
6
|
import { alert } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
@@ -19,6 +19,7 @@ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/com
|
|
|
19
19
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
20
20
|
import { AccessibilityHelpNLS } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/standaloneStrings';
|
|
21
21
|
import { CodeActionController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/codeAction/browser/codeActionController';
|
|
22
|
+
import { FloatingEditorToolbar } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/floatingMenu/browser/floatingMenu';
|
|
22
23
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
23
24
|
import { isIAccessibleViewContentProvider, AccessibleContentProvider, AccessibleViewProviderId, ExtensionContentProvider, AccessibleViewType } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
24
25
|
import { ACCESSIBLE_VIEW_SHOWN_STORAGE_PREFIX } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility';
|
|
@@ -90,7 +91,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
90
91
|
this._container.classList.add('hide');
|
|
91
92
|
}
|
|
92
93
|
const codeEditorWidgetOptions = {
|
|
93
|
-
contributions: EditorExtensionsRegistry.getEditorContributions()
|
|
94
|
+
contributions: EditorExtensionsRegistry.getEditorContributions()
|
|
95
|
+
.filter(c => c.id !== CodeActionController.ID && c.id !== FloatingEditorClickMenu.ID && c.id !== FloatingEditorToolbar.ID)
|
|
94
96
|
};
|
|
95
97
|
const titleBar = createElement('div');
|
|
96
98
|
titleBar.classList.add('accessible-view-title-bar');
|
|
@@ -379,8 +381,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
379
381
|
const disposables = this._register(( new DisposableStore()));
|
|
380
382
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
381
383
|
quickPick.items = items;
|
|
382
|
-
quickPick.title = ( localize(
|
|
383
|
-
quickPick.placeholder = ( localize(
|
|
384
|
+
quickPick.title = ( localize(4294, 'Configure keybindings'));
|
|
385
|
+
quickPick.placeholder = ( localize(4295, 'Select a command ID to configure a keybinding for it'));
|
|
384
386
|
quickPick.show();
|
|
385
387
|
disposables.add(quickPick.onDidAccept(async () => {
|
|
386
388
|
const item = quickPick.selectedItems[0];
|
|
@@ -420,7 +422,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
420
422
|
}
|
|
421
423
|
}
|
|
422
424
|
if (label) {
|
|
423
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
425
|
+
symbols.push({ markdownToParse: label, label: ( localize(4296, "({0}) {1}", token.type, label)), ariaLabel: ( localize(4297, "({0}) {1}", token.type, label)), firstListItem });
|
|
424
426
|
firstListItem = undefined;
|
|
425
427
|
}
|
|
426
428
|
}
|
|
@@ -453,7 +455,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
453
455
|
}
|
|
454
456
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
455
457
|
alert(( localize(
|
|
456
|
-
|
|
458
|
+
4298,
|
|
457
459
|
'{0} accessibility verbosity is now disabled',
|
|
458
460
|
this._currentProvider.verbositySettingKey
|
|
459
461
|
)));
|
|
@@ -532,17 +534,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
532
534
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
533
535
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
534
536
|
actionsHint = provider.options.position ? ( localize(
|
|
535
|
-
|
|
537
|
+
4299,
|
|
536
538
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
537
|
-
)) : ( localize(
|
|
539
|
+
)) : ( localize(4300, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
538
540
|
}
|
|
539
|
-
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(
|
|
541
|
+
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4301, "Accessibility Help")) : ( localize(4302, "Accessible View"));
|
|
540
542
|
this._title.textContent = ariaLabel;
|
|
541
543
|
if (actionsHint && provider.options.type === AccessibleViewType.View) {
|
|
542
|
-
ariaLabel = ( localize(
|
|
544
|
+
ariaLabel = ( localize(4303, "Accessible View, {0}", actionsHint));
|
|
543
545
|
}
|
|
544
546
|
else if (actionsHint) {
|
|
545
|
-
ariaLabel = ( localize(
|
|
547
|
+
ariaLabel = ( localize(4304, "Accessibility Help, {0}", actionsHint));
|
|
546
548
|
}
|
|
547
549
|
if (isWindows && widgetIsFocused) {
|
|
548
550
|
ariaLabel = '';
|
|
@@ -564,6 +566,12 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
564
566
|
});
|
|
565
567
|
this._updateToolbar(this._currentProvider.actions, provider.options.type);
|
|
566
568
|
const hide = (e) => {
|
|
569
|
+
const thisWindowIsFocused = getWindow(this._editorWidget.getDomNode()).document.hasFocus();
|
|
570
|
+
if (!thisWindowIsFocused) {
|
|
571
|
+
e?.preventDefault();
|
|
572
|
+
e?.stopPropagation();
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
567
575
|
if (!this._isInQuickPick) {
|
|
568
576
|
provider.onClose();
|
|
569
577
|
}
|
|
@@ -613,7 +621,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
613
621
|
return disposableStore;
|
|
614
622
|
}
|
|
615
623
|
_updateToolbar(providedActions, type) {
|
|
616
|
-
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(
|
|
624
|
+
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4305, 'Accessibility Help')) : ( localize(4306, "Accessible View")));
|
|
617
625
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
618
626
|
const menuActions = getFlatActionBarActions(toolbarMenu.getActions({}));
|
|
619
627
|
if (providedActions) {
|
|
@@ -715,9 +723,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
715
723
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
716
724
|
const navigationHint = this._navigationHint();
|
|
717
725
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
718
|
-
const toolbarHint = ( localize(
|
|
726
|
+
const toolbarHint = ( localize(4307, "Navigate to the toolbar (Shift+Tab)."));
|
|
719
727
|
const chatHints = this._getChatHints();
|
|
720
|
-
let hint = ( localize(
|
|
728
|
+
let hint = ( localize(4308, "In the accessible view, you can:\n"));
|
|
721
729
|
if (navigationHint) {
|
|
722
730
|
hint += ' - ' + navigationHint + '\n';
|
|
723
731
|
}
|
|
@@ -737,24 +745,24 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
737
745
|
return;
|
|
738
746
|
}
|
|
739
747
|
return [( localize(
|
|
740
|
-
|
|
748
|
+
4309,
|
|
741
749
|
" - Insert the code block at the cursor{0}.",
|
|
742
750
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
743
751
|
)),
|
|
744
752
|
( localize(
|
|
745
|
-
|
|
753
|
+
4310,
|
|
746
754
|
" - Insert the code block into a new file{0}.",
|
|
747
755
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
748
756
|
)),
|
|
749
757
|
( localize(
|
|
750
|
-
|
|
758
|
+
4311,
|
|
751
759
|
" - Run the code block in the terminal{0}.\n",
|
|
752
760
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
753
761
|
))].join('\n');
|
|
754
762
|
}
|
|
755
763
|
_navigationHint() {
|
|
756
764
|
return localize(
|
|
757
|
-
|
|
765
|
+
4312,
|
|
758
766
|
"Show the next item{0} or previous item{1}.",
|
|
759
767
|
`<keybinding:${AccessibilityCommandId.ShowNext}`,
|
|
760
768
|
`<keybinding:${AccessibilityCommandId.ShowPrevious}>`
|
|
@@ -763,7 +771,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
763
771
|
_disableVerbosityHint(provider) {
|
|
764
772
|
if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
|
|
765
773
|
return localize(
|
|
766
|
-
|
|
774
|
+
4313,
|
|
767
775
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
768
776
|
`<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
|
|
769
777
|
);
|
|
@@ -775,7 +783,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
775
783
|
return;
|
|
776
784
|
}
|
|
777
785
|
return localize(
|
|
778
|
-
|
|
786
|
+
4314,
|
|
779
787
|
'Go to a symbol{0}.',
|
|
780
788
|
`<keybinding:${AccessibilityCommandId.GoToSymbol}>`
|
|
781
789
|
);
|
|
@@ -784,7 +792,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
784
792
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
|
|
785
793
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
786
794
|
return localize(
|
|
787
|
-
|
|
795
|
+
4315,
|
|
788
796
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
789
797
|
keybindingToConfigureQuickPick
|
|
790
798
|
);
|
|
@@ -793,7 +801,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
793
801
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
|
|
794
802
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
795
803
|
return localize(
|
|
796
|
-
|
|
804
|
+
4316,
|
|
797
805
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
798
806
|
keybindingToConfigureQuickPick
|
|
799
807
|
);
|
|
@@ -815,11 +823,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
815
823
|
return screenReaderModeHint;
|
|
816
824
|
}
|
|
817
825
|
_exitDialogHint(provider) {
|
|
818
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
826
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(4317, '\nExit this dialog (Escape).')) : '';
|
|
819
827
|
}
|
|
820
828
|
_readMoreHint(provider) {
|
|
821
829
|
return provider.options.readMoreUrl ? ( localize(
|
|
822
|
-
|
|
830
|
+
4318,
|
|
823
831
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
824
832
|
`<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
|
|
825
833
|
)) : '';
|
|
@@ -881,11 +889,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
881
889
|
const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
|
|
882
890
|
let hint = null;
|
|
883
891
|
if (keybinding) {
|
|
884
|
-
hint = ( localize(
|
|
892
|
+
hint = ( localize(4319, "Inspect this in the accessible view with {0}", keybinding));
|
|
885
893
|
}
|
|
886
894
|
else {
|
|
887
895
|
hint = ( localize(
|
|
888
|
-
|
|
896
|
+
4320,
|
|
889
897
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
890
898
|
));
|
|
891
899
|
}
|
|
@@ -927,8 +935,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
927
935
|
show(provider) {
|
|
928
936
|
const disposables = ( new DisposableStore());
|
|
929
937
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
930
|
-
quickPick.placeholder = ( localize(
|
|
931
|
-
quickPick.title = ( localize(
|
|
938
|
+
quickPick.placeholder = ( localize(4321, "Type to search symbols"));
|
|
939
|
+
quickPick.title = ( localize(4322, "Go to Symbol Accessible View"));
|
|
932
940
|
const picks = [];
|
|
933
941
|
const symbols = this._accessibleView.getSymbols();
|
|
934
942
|
if (!symbols) {
|
package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewKeybindingResolver.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
2
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
3
|
-
import { IPickerQuickAccessItem } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IPickerQuickAccessItem } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
4
4
|
export declare function resolveContentAndKeybindingItems(keybindingService: IKeybindingService, value?: string): {
|
|
5
5
|
content: MarkdownString;
|
|
6
6
|
configureKeybindingItems: IPickerQuickAccessItem[] | undefined;
|
|
@@ -16,11 +16,11 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: ShowSignalSoundHelp.ID,
|
|
19
|
-
title: ( localize2(
|
|
19
|
+
title: ( localize2(4335, "Help: List Signal Sounds")),
|
|
20
20
|
f1: true,
|
|
21
21
|
metadata: {
|
|
22
22
|
description: ( localize(
|
|
23
|
-
|
|
23
|
+
4336,
|
|
24
24
|
"List all accessibility sounds, noises, or audio cues and configure their settings"
|
|
25
25
|
))
|
|
26
26
|
}
|
|
@@ -38,7 +38,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
38
38
|
signal,
|
|
39
39
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
40
40
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
41
|
-
tooltip: ( localize(
|
|
41
|
+
tooltip: ( localize(4337, 'Configure Sound')),
|
|
42
42
|
alwaysVisible: true
|
|
43
43
|
}] : []
|
|
44
44
|
}))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -74,7 +74,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
74
74
|
accessibilitySignalService.playSound(qp.activeItems[0].signal.sound.getSound(true), true, AcknowledgeDocCommentsToken);
|
|
75
75
|
}));
|
|
76
76
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
77
|
-
qp.placeholder = ( localize(
|
|
77
|
+
qp.placeholder = ( localize(4338, 'Select a sound to play and configure'));
|
|
78
78
|
qp.canSelectMany = true;
|
|
79
79
|
await qp.show();
|
|
80
80
|
}
|
|
@@ -87,11 +87,11 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: ShowAccessibilityAnnouncementHelp.ID,
|
|
90
|
-
title: ( localize2(
|
|
90
|
+
title: ( localize2(4339, "Help: List Signal Announcements")),
|
|
91
91
|
f1: true,
|
|
92
92
|
metadata: {
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
4340,
|
|
95
95
|
"List all accessibility announcements, alerts, braille messages, and configure their settings"
|
|
96
96
|
))
|
|
97
97
|
}
|
|
@@ -109,7 +109,7 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
109
109
|
signal,
|
|
110
110
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
111
111
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
112
|
-
tooltip: ( localize(
|
|
112
|
+
tooltip: ( localize(4341, 'Configure Announcement')),
|
|
113
113
|
alwaysVisible: true,
|
|
114
114
|
}] : []
|
|
115
115
|
}))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -142,8 +142,8 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
142
142
|
preferencesService.openUserSettings({ jsonEditor: true, revealSetting: { key: e.item.signal.settingsKey, edit: true } });
|
|
143
143
|
}));
|
|
144
144
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
145
|
-
qp.placeholder = screenReaderOptimized ? ( localize(
|
|
146
|
-
|
|
145
|
+
qp.placeholder = screenReaderOptimized ? ( localize(4342, 'Select an announcement to configure')) : ( localize(
|
|
146
|
+
4343,
|
|
147
147
|
'Screen reader is not active, announcements are disabled by default.'
|
|
148
148
|
));
|
|
149
149
|
qp.canSelectMany = true;
|
package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement.js
CHANGED
|
@@ -36,7 +36,7 @@ let DiffEditorActiveAnnouncementContribution = class DiffEditorActiveAnnouncemen
|
|
|
36
36
|
}
|
|
37
37
|
this._onDidActiveEditorChangeListener = this._register(this._editorService.onDidActiveEditorChange(() => {
|
|
38
38
|
if (isDiffEditor(this._editorService.activeTextEditorControl)) {
|
|
39
|
-
this._accessibilityService.alert(( localize(
|
|
39
|
+
this._accessibilityService.alert(( localize(4344, "Diff editor")));
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
42
|
}
|
|
@@ -17,10 +17,10 @@ class ToggleScreenReaderMode extends Action2 {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: 'editor.action.toggleScreenReaderAccessibilityMode',
|
|
20
|
-
title: ( localize2(
|
|
20
|
+
title: ( localize2(5735, "Toggle Screen Reader Accessibility Mode")),
|
|
21
21
|
metadata: {
|
|
22
22
|
description: ( localize2(
|
|
23
|
-
|
|
23
|
+
5736,
|
|
24
24
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
25
25
|
)),
|
|
26
26
|
},
|