@codingame/monaco-vscode-accessibility-service-override 26.2.2 → 28.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 +6 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +49 -28
- 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.css +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-accessibility-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - accessibility service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.0.0",
|
|
19
19
|
"marked": "14.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
@@ -53,21 +53,21 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
53
53
|
}
|
|
54
54
|
showScreenReaderNotification() {
|
|
55
55
|
this.screenReaderNotification = this.notificationService.prompt(Severity.Info, ( localize(
|
|
56
|
-
|
|
56
|
+
4478,
|
|
57
57
|
"Screen reader usage detected. Do you want to enable {0} to optimize the editor for screen reader usage?",
|
|
58
58
|
"editor.accessibilitySupport"
|
|
59
59
|
)), [{
|
|
60
|
-
label: ( localize(
|
|
60
|
+
label: ( localize(4479, "Yes")),
|
|
61
61
|
run: () => {
|
|
62
62
|
this.configurationService.updateValue("editor.accessibilitySupport", "on", ConfigurationTarget.USER);
|
|
63
63
|
}
|
|
64
64
|
}, {
|
|
65
|
-
label: ( localize(
|
|
65
|
+
label: ( localize(4480, "No")),
|
|
66
66
|
run: () => {
|
|
67
67
|
this.configurationService.updateValue("editor.accessibilitySupport", "off", ConfigurationTarget.USER);
|
|
68
68
|
}
|
|
69
69
|
}, {
|
|
70
|
-
label: ( localize(
|
|
70
|
+
label: ( localize(4481, "Learn More")),
|
|
71
71
|
run: () => {
|
|
72
72
|
this.openerService.open("https://code.visualstudio.com/docs/editor/accessibility#_screen-readers");
|
|
73
73
|
}
|
|
@@ -80,9 +80,9 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
|
|
|
80
80
|
updateScreenReaderModeElement(visible) {
|
|
81
81
|
if (visible) {
|
|
82
82
|
if (!this.screenReaderModeElement.value) {
|
|
83
|
-
const text = ( localize(
|
|
83
|
+
const text = ( localize(4482, "Screen Reader Optimized"));
|
|
84
84
|
this.screenReaderModeElement.value = this.statusbarService.addEntry({
|
|
85
|
-
name: ( localize(
|
|
85
|
+
name: ( localize(4483, "Screen Reader Mode")),
|
|
86
86
|
text,
|
|
87
87
|
ariaLabel: text,
|
|
88
88
|
command: "showEditorScreenReaderNotification",
|
|
@@ -58,6 +58,7 @@ export declare class AccessibleView extends Disposable {
|
|
|
58
58
|
private _currentProvider;
|
|
59
59
|
private _currentContent;
|
|
60
60
|
private _lastProvider;
|
|
61
|
+
private _lastProviderPosition;
|
|
61
62
|
private _viewContainer;
|
|
62
63
|
constructor(_openerService: IOpenerService, _instantiationService: IInstantiationService, _configurationService: IConfigurationService, _modelService: IModelService, _contextViewService: IContextViewService, _contextKeyService: IContextKeyService, _accessibilityService: IAccessibilityService, _keybindingService: IKeybindingService, _layoutService: ILayoutService, _menuService: IMenuService, _commandService: ICommandService, _codeBlockContextProviderService: IChatCodeBlockContextProviderService, _storageService: IStorageService, _quickInputService: IQuickInputService, _accessibilitySignalService: IAccessibilitySignalService);
|
|
63
64
|
private _playDiffSignals;
|
|
@@ -90,6 +90,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
90
90
|
this._quickInputService = _quickInputService;
|
|
91
91
|
this._accessibilitySignalService = _accessibilitySignalService;
|
|
92
92
|
this._isInQuickPick = false;
|
|
93
|
+
this._lastProviderPosition = ( new Map());
|
|
93
94
|
this._accessiblityHelpIsShown = accessibilityHelpIsShown.bindTo(this._contextKeyService);
|
|
94
95
|
this._accessibleViewIsShown = accessibleViewIsShown.bindTo(this._contextKeyService);
|
|
95
96
|
this._accessibleViewSupportsNavigation = accessibleViewSupportsNavigation.bindTo(this._contextKeyService);
|
|
@@ -302,6 +303,12 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
302
303
|
onHide: () => {
|
|
303
304
|
if (!showAccessibleViewHelp) {
|
|
304
305
|
this._updateLastProvider();
|
|
306
|
+
if (this._currentProvider) {
|
|
307
|
+
const currentPosition = this._editorWidget.getPosition();
|
|
308
|
+
if (currentPosition) {
|
|
309
|
+
this._lastProviderPosition.set(this._currentProvider.id, currentPosition);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
305
312
|
this._currentProvider?.dispose();
|
|
306
313
|
this._currentProvider = undefined;
|
|
307
314
|
this._resetContextKeys();
|
|
@@ -328,6 +335,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
328
335
|
if (this._lastProvider?.options.id === id) {
|
|
329
336
|
this._lastProvider = undefined;
|
|
330
337
|
}
|
|
338
|
+
this._lastProviderPosition.delete(id);
|
|
331
339
|
}));
|
|
332
340
|
}
|
|
333
341
|
if (provider.options.id) {
|
|
@@ -455,8 +463,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
455
463
|
const disposables = this._register(( new DisposableStore()));
|
|
456
464
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
457
465
|
quickPick.items = items;
|
|
458
|
-
quickPick.title = ( localize(
|
|
459
|
-
quickPick.placeholder = ( localize(
|
|
466
|
+
quickPick.title = ( localize(4484, "Configure keybindings"));
|
|
467
|
+
quickPick.placeholder = ( localize(4485, "Select a command ID to configure a keybinding for it"));
|
|
460
468
|
quickPick.show();
|
|
461
469
|
disposables.add(quickPick.onDidAccept(async () => {
|
|
462
470
|
const item = quickPick.selectedItems[0];
|
|
@@ -499,8 +507,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
499
507
|
if (label) {
|
|
500
508
|
symbols.push({
|
|
501
509
|
markdownToParse: label,
|
|
502
|
-
label: ( localize(
|
|
503
|
-
ariaLabel: ( localize(
|
|
510
|
+
label: ( localize(4486, "({0}) {1}", token.type, label)),
|
|
511
|
+
ariaLabel: ( localize(4487, "({0}) {1}", token.type, label)),
|
|
504
512
|
firstListItem
|
|
505
513
|
});
|
|
506
514
|
firstListItem = undefined;
|
|
@@ -540,7 +548,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
540
548
|
}
|
|
541
549
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
542
550
|
alert(( localize(
|
|
543
|
-
|
|
551
|
+
4488,
|
|
544
552
|
"{0} accessibility verbosity is now disabled",
|
|
545
553
|
this._currentProvider.verbositySettingKey
|
|
546
554
|
)));
|
|
@@ -634,16 +642,16 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
634
642
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
635
643
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
636
644
|
actionsHint = provider.options.position ? ( localize(
|
|
637
|
-
|
|
645
|
+
4489,
|
|
638
646
|
"Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog."
|
|
639
|
-
)) : ( localize(
|
|
647
|
+
)) : ( localize(4490, "Explore actions such as disabling this hint (Shift+Tab)."));
|
|
640
648
|
}
|
|
641
|
-
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(
|
|
649
|
+
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4491, "Accessibility Help")) : ( localize(4492, "Accessible View"));
|
|
642
650
|
this._title.textContent = ariaLabel;
|
|
643
651
|
if (actionsHint && provider.options.type === AccessibleViewType.View) {
|
|
644
|
-
ariaLabel = ( localize(
|
|
652
|
+
ariaLabel = ( localize(4493, "Accessible View, {0}", actionsHint));
|
|
645
653
|
} else if (actionsHint) {
|
|
646
|
-
ariaLabel = ( localize(
|
|
654
|
+
ariaLabel = ( localize(4494, "Accessibility Help, {0}", actionsHint));
|
|
647
655
|
}
|
|
648
656
|
if (isWindows && widgetIsFocused) {
|
|
649
657
|
ariaLabel = "";
|
|
@@ -665,6 +673,15 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
665
673
|
}
|
|
666
674
|
} else if (previousPosition) {
|
|
667
675
|
this._editorWidget.setPosition(previousPosition);
|
|
676
|
+
} else {
|
|
677
|
+
const savedPosition = this._lastProviderPosition.get(provider.id);
|
|
678
|
+
if (savedPosition) {
|
|
679
|
+
const lineCount = this._editorWidget.getModel()?.getLineCount() ?? 0;
|
|
680
|
+
if (savedPosition.lineNumber <= lineCount) {
|
|
681
|
+
this._editorWidget.setPosition(savedPosition);
|
|
682
|
+
this._editorWidget.revealPosition(savedPosition);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
668
685
|
}
|
|
669
686
|
});
|
|
670
687
|
this._updateToolbar(this._currentProvider.actions, provider.options.type);
|
|
@@ -684,6 +701,10 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
684
701
|
return;
|
|
685
702
|
}
|
|
686
703
|
this._updateContextKeys(provider, false);
|
|
704
|
+
const currentPosition = this._editorWidget.getPosition();
|
|
705
|
+
if (currentPosition) {
|
|
706
|
+
this._lastProviderPosition.set(provider.id, currentPosition);
|
|
707
|
+
}
|
|
687
708
|
this._lastProvider = undefined;
|
|
688
709
|
this._currentContent = undefined;
|
|
689
710
|
this._currentProvider?.dispose();
|
|
@@ -724,7 +745,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
724
745
|
return disposableStore;
|
|
725
746
|
}
|
|
726
747
|
_updateToolbar(providedActions, type) {
|
|
727
|
-
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(
|
|
748
|
+
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4495, "Accessibility Help")) : ( localize(4496, "Accessible View")));
|
|
728
749
|
const toolbarMenu = this._register(
|
|
729
750
|
this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService)
|
|
730
751
|
);
|
|
@@ -822,9 +843,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
822
843
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
823
844
|
const navigationHint = this._navigationHint();
|
|
824
845
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
825
|
-
const toolbarHint = ( localize(
|
|
846
|
+
const toolbarHint = ( localize(4497, "Navigate to the toolbar (Shift+Tab)."));
|
|
826
847
|
const chatHints = this._getChatHints();
|
|
827
|
-
let hint = ( localize(
|
|
848
|
+
let hint = ( localize(4498, "In the accessible view, you can:\n"));
|
|
828
849
|
if (navigationHint) {
|
|
829
850
|
hint += " - " + navigationHint + "\n";
|
|
830
851
|
}
|
|
@@ -844,31 +865,31 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
844
865
|
return;
|
|
845
866
|
}
|
|
846
867
|
return [( localize(
|
|
847
|
-
|
|
868
|
+
4499,
|
|
848
869
|
" - Insert the code block at the cursor{0}.",
|
|
849
870
|
"<keybinding:workbench.action.chat.insertCodeBlock>"
|
|
850
871
|
)), ( localize(
|
|
851
|
-
|
|
872
|
+
4500,
|
|
852
873
|
" - Insert the code block into a new file{0}.",
|
|
853
874
|
"<keybinding:workbench.action.chat.insertIntoNewFile>"
|
|
854
875
|
)), ( localize(
|
|
855
|
-
|
|
876
|
+
4501,
|
|
856
877
|
" - Run the code block in the terminal{0}.\n",
|
|
857
878
|
"<keybinding:workbench.action.chat.runInTerminal>"
|
|
858
879
|
))].join("\n");
|
|
859
880
|
}
|
|
860
881
|
_navigationHint() {
|
|
861
882
|
return localize(
|
|
862
|
-
|
|
883
|
+
4502,
|
|
863
884
|
"Show the next item{0} or previous item{1}.",
|
|
864
|
-
`<keybinding:${AccessibilityCommandId.ShowNext}
|
|
885
|
+
`<keybinding:${AccessibilityCommandId.ShowNext}>`,
|
|
865
886
|
`<keybinding:${AccessibilityCommandId.ShowPrevious}>`
|
|
866
887
|
);
|
|
867
888
|
}
|
|
868
889
|
_disableVerbosityHint(provider) {
|
|
869
890
|
if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
|
|
870
891
|
return localize(
|
|
871
|
-
|
|
892
|
+
4503,
|
|
872
893
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
873
894
|
`<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
|
|
874
895
|
);
|
|
@@ -880,7 +901,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
880
901
|
return;
|
|
881
902
|
}
|
|
882
903
|
return localize(
|
|
883
|
-
|
|
904
|
+
4504,
|
|
884
905
|
"Go to a symbol{0}.",
|
|
885
906
|
`<keybinding:${AccessibilityCommandId.GoToSymbol}>`
|
|
886
907
|
);
|
|
@@ -889,7 +910,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
889
910
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
|
|
890
911
|
const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.";
|
|
891
912
|
return localize(
|
|
892
|
-
|
|
913
|
+
4505,
|
|
893
914
|
"\nConfigure keybindings for commands that lack them {0}.",
|
|
894
915
|
keybindingToConfigureQuickPick
|
|
895
916
|
);
|
|
@@ -898,7 +919,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
898
919
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
|
|
899
920
|
const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.";
|
|
900
921
|
return localize(
|
|
901
|
-
|
|
922
|
+
4506,
|
|
902
923
|
"\nConfigure keybindings for commands that already have assignments {0}.",
|
|
903
924
|
keybindingToConfigureQuickPick
|
|
904
925
|
);
|
|
@@ -917,11 +938,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
917
938
|
return screenReaderModeHint;
|
|
918
939
|
}
|
|
919
940
|
_exitDialogHint(provider) {
|
|
920
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
941
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(4507, "\nExit this dialog (Escape).")) : "";
|
|
921
942
|
}
|
|
922
943
|
_readMoreHint(provider) {
|
|
923
944
|
return provider.options.readMoreUrl ? ( localize(
|
|
924
|
-
|
|
945
|
+
4508,
|
|
925
946
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
926
947
|
`<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
|
|
927
948
|
)) : "";
|
|
@@ -966,10 +987,10 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
966
987
|
const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
|
|
967
988
|
let hint = null;
|
|
968
989
|
if (keybinding) {
|
|
969
|
-
hint = ( localize(
|
|
990
|
+
hint = ( localize(4509, "Inspect this in the accessible view with {0}", keybinding));
|
|
970
991
|
} else {
|
|
971
992
|
hint = ( localize(
|
|
972
|
-
|
|
993
|
+
4510,
|
|
973
994
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
974
995
|
));
|
|
975
996
|
}
|
|
@@ -1007,8 +1028,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
1007
1028
|
show(provider) {
|
|
1008
1029
|
const disposables = ( new DisposableStore());
|
|
1009
1030
|
const quickPick = disposables.add(this._quickInputService.createQuickPick());
|
|
1010
|
-
quickPick.placeholder = ( localize(
|
|
1011
|
-
quickPick.title = ( localize(
|
|
1031
|
+
quickPick.placeholder = ( localize(4511, "Type to search symbols"));
|
|
1032
|
+
quickPick.title = ( localize(4512, "Go to Symbol Accessible View"));
|
|
1012
1033
|
const picks = [];
|
|
1013
1034
|
const symbols = this._accessibleView.getSymbols();
|
|
1014
1035
|
if (!symbols) {
|
|
@@ -18,11 +18,11 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: ShowSignalSoundHelp.ID,
|
|
21
|
-
title: ( localize2(
|
|
21
|
+
title: ( localize2(4525, "Help: List Signal Sounds")),
|
|
22
22
|
f1: true,
|
|
23
23
|
metadata: {
|
|
24
24
|
description: ( localize(
|
|
25
|
-
|
|
25
|
+
4526,
|
|
26
26
|
"List all accessibility sounds, noises, or audio cues and configure their settings"
|
|
27
27
|
))
|
|
28
28
|
}
|
|
@@ -40,7 +40,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
40
40
|
signal,
|
|
41
41
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
42
42
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
43
|
-
tooltip: ( localize(
|
|
43
|
+
tooltip: ( localize(4527, "Configure Sound")),
|
|
44
44
|
alwaysVisible: true
|
|
45
45
|
}] : []
|
|
46
46
|
}))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -103,7 +103,7 @@ class ShowSignalSoundHelp extends Action2 {
|
|
|
103
103
|
);
|
|
104
104
|
}));
|
|
105
105
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
106
|
-
qp.placeholder = ( localize(
|
|
106
|
+
qp.placeholder = ( localize(4528, "Select a sound to play and configure"));
|
|
107
107
|
qp.canSelectMany = true;
|
|
108
108
|
await qp.show();
|
|
109
109
|
}
|
|
@@ -118,11 +118,11 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super({
|
|
120
120
|
id: ShowAccessibilityAnnouncementHelp.ID,
|
|
121
|
-
title: ( localize2(
|
|
121
|
+
title: ( localize2(4529, "Help: List Signal Announcements")),
|
|
122
122
|
f1: true,
|
|
123
123
|
metadata: {
|
|
124
124
|
description: ( localize(
|
|
125
|
-
|
|
125
|
+
4530,
|
|
126
126
|
"List all accessibility announcements, alerts, braille messages, and configure their settings"
|
|
127
127
|
))
|
|
128
128
|
}
|
|
@@ -140,7 +140,7 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
140
140
|
signal,
|
|
141
141
|
buttons: userGestureSignals.includes(signal) ? [{
|
|
142
142
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
143
|
-
tooltip: ( localize(
|
|
143
|
+
tooltip: ( localize(4531, "Configure Announcement")),
|
|
144
144
|
alwaysVisible: true
|
|
145
145
|
}] : []
|
|
146
146
|
}))).sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -194,8 +194,8 @@ class ShowAccessibilityAnnouncementHelp extends Action2 {
|
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
196
|
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
197
|
-
qp.placeholder = screenReaderOptimized ? ( localize(
|
|
198
|
-
|
|
197
|
+
qp.placeholder = screenReaderOptimized ? ( localize(4532, "Select an announcement to configure")) : ( localize(
|
|
198
|
+
4533,
|
|
199
199
|
"Screen reader is not active, announcements are disabled by default."
|
|
200
200
|
));
|
|
201
201
|
qp.canSelectMany = true;
|
package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement.js
CHANGED
|
@@ -41,7 +41,7 @@ let DiffEditorActiveAnnouncementContribution = class DiffEditorActiveAnnouncemen
|
|
|
41
41
|
}
|
|
42
42
|
this._onDidActiveEditorChangeListener = this._register(this._editorService.onDidActiveEditorChange(() => {
|
|
43
43
|
if (isDiffEditor(this._editorService.activeTextEditorControl)) {
|
|
44
|
-
this._accessibilityService.alert(( localize(
|
|
44
|
+
this._accessibilityService.alert(( localize(4534, "Diff editor")));
|
|
45
45
|
}
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
position: absolute;
|
|
8
8
|
background-color: var(--vscode-editorWidget-background);
|
|
9
9
|
color: var(--vscode-editorWidget-foreground);
|
|
10
|
-
box-shadow:
|
|
10
|
+
box-shadow: var(--vscode-shadow-lg);
|
|
11
11
|
border: 2px solid var(--vscode-focusBorder);
|
|
12
12
|
border-radius: 6px;
|
|
13
13
|
margin-top: -1px;
|
|
@@ -22,10 +22,10 @@ class ToggleScreenReaderMode extends Action2 {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: "editor.action.toggleScreenReaderAccessibilityMode",
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(7435, "Toggle Screen Reader Accessibility Mode")),
|
|
26
26
|
metadata: {
|
|
27
27
|
description: ( localize2(
|
|
28
|
-
|
|
28
|
+
7436,
|
|
29
29
|
"Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
|
|
30
30
|
))
|
|
31
31
|
},
|
|
@@ -62,11 +62,11 @@ class AnnounceCursorPosition extends Action2 {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super({
|
|
64
64
|
id: "editor.action.announceCursorPosition",
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(7437, "Announce Cursor Position")),
|
|
66
66
|
f1: true,
|
|
67
67
|
metadata: {
|
|
68
68
|
description: ( localize2(
|
|
69
|
-
|
|
69
|
+
7438,
|
|
70
70
|
"Announce the current cursor position (line and column) via screen reader."
|
|
71
71
|
))
|
|
72
72
|
},
|
|
@@ -91,7 +91,7 @@ class AnnounceCursorPosition extends Action2 {
|
|
|
91
91
|
const tabSize = model.getOptions().tabSize;
|
|
92
92
|
const lineContent = model.getLineContent(position.lineNumber);
|
|
93
93
|
const visibleColumn = CursorColumns.visibleColumnFromColumn(lineContent, position.column, tabSize) + 1;
|
|
94
|
-
alert(( localize(
|
|
94
|
+
alert(( localize(7439, "Line {0}, Column {1}", position.lineNumber, visibleColumn)));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
registerAction2(AnnounceCursorPosition);
|