@codingame/monaco-vscode-accessibility-service-override 9.0.0 → 9.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-accessibility-service-override",
3
- "version": "9.0.0",
3
+ "version": "9.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@9.0.0",
29
+ "vscode": "npm:@codingame/monaco-vscode-api@9.0.2",
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(5497, "Are you using a screen reader to operate VS Code?")), [{
40
- label: ( localize(5498, "Yes")),
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(5499, "No")),
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(5500, "Screen Reader Optimized"));
58
+ const text = ( localize(5536, "Screen Reader Optimized"));
59
59
  this.screenReaderModeElement.value = this.statusbarService.addEntry({
60
- name: ( localize(5501, "Screen Reader Mode")),
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(1823, 'Configure keybindings'));
357
- quickPick.placeholder = ( localize(1824, 'Select a command ID to configure a keybinding for it'));
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(1825, "({0}) {1}", token.type, label)), ariaLabel: ( localize(1826, "({0}) {1}", token.type, label)), firstListItem });
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
- 1827,
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
- 1828,
508
+ 2261,
509
509
  'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
510
- )) : ( localize(1829, 'Explore actions such as disabling this hint (Shift+Tab).'));
510
+ )) : ( localize(2262, 'Explore actions such as disabling this hint (Shift+Tab).'));
511
511
  }
512
- let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(1830, "Accessibility Help")) : ( localize(1831, "Accessible View"));
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(1832, "Accessible View, {0}", actionsHint));
515
+ ariaLabel = ( localize(2265, "Accessible View, {0}", actionsHint));
516
516
  }
517
517
  else if (actionsHint) {
518
- ariaLabel = ( localize(1833, "Accessibility Help, {0}", actionsHint));
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(1834, 'Accessibility Help')) : ( localize(1835, "Accessible View")));
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(1836, "Navigate to the toolbar (Shift+Tab)."));
689
+ const toolbarHint = ( localize(2269, "Navigate to the toolbar (Shift+Tab)."));
690
690
  const chatHints = this._getChatHints();
691
- let hint = ( localize(1837, "In the accessible view, you can:\n"));
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
- 1838,
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
- 1839,
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
- 1840,
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
- 1841,
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
- 1842,
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
- 1843,
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
- 1844,
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
- 1845,
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(1846, '\nExit this dialog (Escape).')) : '';
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
- 1847,
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(1848, "Inspect this in the accessible view with {0}", keybinding));
853
+ hint = ( localize(2281, "Inspect this in the accessible view with {0}", keybinding));
854
854
  }
855
855
  else {
856
856
  hint = ( localize(
857
- 1849,
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(1850, "Type to search symbols"));
900
- quickPick.title = ( localize(1851, "Go to Symbol Accessible View"));
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(5503, "Help: List Signal Sounds")),
18
+ title: ( localize2(5539, "Help: List Signal Sounds")),
19
19
  f1: true,
20
20
  metadata: {
21
21
  description: ( localize(
22
- 5504,
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(5505, 'Configure Sound')),
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(5506, 'Select a sound to play and configure'));
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(5507, "Help: List Signal Announcements")),
89
+ title: ( localize2(5543, "Help: List Signal Announcements")),
90
90
  f1: true,
91
91
  metadata: {
92
92
  description: ( localize(
93
- 5508,
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(5509, 'Configure Announcement')),
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(5510, 'Select an announcement to configure')) : ( localize(
145
- 5511,
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;
@@ -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(5502, "Diff editor")));
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(1852, "Toggle Screen Reader Accessibility Mode")),
17
+ title: ( localize2(2334, "Toggle Screen Reader Accessibility Mode")),
18
18
  metadata: {
19
19
  description: ( localize2(
20
- 1853,
20
+ 2335,
21
21
  "Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
22
22
  )),
23
23
  },