@codingame/monaco-vscode-accessibility-service-override 10.1.0 → 10.1.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": "10.1.0",
3
+ "version": "10.1.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@10.1.0",
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.1.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(5580, "Are you using a screen reader to operate VS Code?")), [{
38
- label: ( localize(5581, "Yes")),
37
+ this.screenReaderNotification = this.notificationService.prompt(Severity$1.Info, ( localize(5556, "Are you using a screen reader to operate VS Code?")), [{
38
+ label: ( localize(5557, "Yes")),
39
39
  run: () => {
40
40
  this.configurationService.updateValue('editor.accessibilitySupport', 'on', 2 );
41
41
  }
42
42
  }, {
43
- label: ( localize(5582, "No")),
43
+ label: ( localize(5558, "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(5583, "Screen Reader Optimized"));
56
+ const text = ( localize(5559, "Screen Reader Optimized"));
57
57
  this.screenReaderModeElement.value = this.statusbarService.addEntry({
58
- name: ( localize(5584, "Screen Reader Mode")),
58
+ name: ( localize(5560, "Screen Reader Mode")),
59
59
  text,
60
60
  ariaLabel: text,
61
61
  command: 'showEditorScreenReaderNotification',
@@ -344,8 +344,8 @@ let AccessibleView = class AccessibleView extends Disposable {
344
344
  const disposables = this._register(( (new DisposableStore())));
345
345
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
346
346
  quickPick.items = items;
347
- quickPick.title = ( localize(2265, 'Configure keybindings'));
348
- quickPick.placeholder = ( localize(2266, 'Select a command ID to configure a keybinding for it'));
347
+ quickPick.title = ( localize(2262, 'Configure keybindings'));
348
+ quickPick.placeholder = ( localize(2263, 'Select a command ID to configure a keybinding for it'));
349
349
  quickPick.show();
350
350
  disposables.add(quickPick.onDidAccept(async () => {
351
351
  const item = quickPick.selectedItems[0];
@@ -385,7 +385,7 @@ let AccessibleView = class AccessibleView extends Disposable {
385
385
  }
386
386
  }
387
387
  if (label) {
388
- symbols.push({ markdownToParse: label, label: ( localize(2267, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2268, "({0}) {1}", token.type, label)), firstListItem });
388
+ symbols.push({ markdownToParse: label, label: ( localize(2264, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2265, "({0}) {1}", token.type, label)), firstListItem });
389
389
  firstListItem = undefined;
390
390
  }
391
391
  }
@@ -417,7 +417,7 @@ let AccessibleView = class AccessibleView extends Disposable {
417
417
  }
418
418
  this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
419
419
  alert(( localize(
420
- 2269,
420
+ 2266,
421
421
  '{0} accessibility verbosity is now disabled',
422
422
  this._currentProvider.verbositySettingKey
423
423
  )));
@@ -496,17 +496,17 @@ let AccessibleView = class AccessibleView extends Disposable {
496
496
  const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
497
497
  if (verbose && !showAccessibleViewHelp && hasActions) {
498
498
  actionsHint = provider.options.position ? ( localize(
499
- 2270,
499
+ 2267,
500
500
  'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
501
- )) : ( localize(2271, 'Explore actions such as disabling this hint (Shift+Tab).'));
501
+ )) : ( localize(2268, 'Explore actions such as disabling this hint (Shift+Tab).'));
502
502
  }
503
- let ariaLabel = provider.options.type === "help" ? ( localize(2272, "Accessibility Help")) : ( localize(2273, "Accessible View"));
503
+ let ariaLabel = provider.options.type === "help" ? ( localize(2269, "Accessibility Help")) : ( localize(2270, "Accessible View"));
504
504
  this._title.textContent = ariaLabel;
505
505
  if (actionsHint && provider.options.type === "view" ) {
506
- ariaLabel = ( localize(2274, "Accessible View, {0}", actionsHint));
506
+ ariaLabel = ( localize(2271, "Accessible View, {0}", actionsHint));
507
507
  }
508
508
  else if (actionsHint) {
509
- ariaLabel = ( localize(2275, "Accessibility Help, {0}", actionsHint));
509
+ ariaLabel = ( localize(2272, "Accessibility Help, {0}", actionsHint));
510
510
  }
511
511
  if (isWindows && widgetIsFocused) {
512
512
  ariaLabel = '';
@@ -574,7 +574,7 @@ let AccessibleView = class AccessibleView extends Disposable {
574
574
  return disposableStore;
575
575
  }
576
576
  _updateToolbar(providedActions, type) {
577
- this._toolbar.setAriaLabel(type === "help" ? ( localize(2276, 'Accessibility Help')) : ( localize(2277, "Accessible View")));
577
+ this._toolbar.setAriaLabel(type === "help" ? ( localize(2273, 'Accessibility Help')) : ( localize(2274, "Accessible View")));
578
578
  const menuActions = [];
579
579
  const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
580
580
  createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
@@ -677,9 +677,9 @@ let AccessibleView = class AccessibleView extends Disposable {
677
677
  _accessibleViewHelpDialogContent(providerHasSymbols) {
678
678
  const navigationHint = this._navigationHint();
679
679
  const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
680
- const toolbarHint = ( localize(2278, "Navigate to the toolbar (Shift+Tab)."));
680
+ const toolbarHint = ( localize(2275, "Navigate to the toolbar (Shift+Tab)."));
681
681
  const chatHints = this._getChatHints();
682
- let hint = ( localize(2279, "In the accessible view, you can:\n"));
682
+ let hint = ( localize(2276, "In the accessible view, you can:\n"));
683
683
  if (navigationHint) {
684
684
  hint += ' - ' + navigationHint + '\n';
685
685
  }
@@ -699,24 +699,24 @@ let AccessibleView = class AccessibleView extends Disposable {
699
699
  return;
700
700
  }
701
701
  return [( localize(
702
- 2280,
702
+ 2277,
703
703
  " - Insert the code block at the cursor{0}.",
704
704
  '<keybinding:workbench.action.chat.insertCodeBlock>'
705
705
  )),
706
706
  ( localize(
707
- 2281,
707
+ 2278,
708
708
  " - Insert the code block into a new file{0}.",
709
709
  '<keybinding:workbench.action.chat.insertIntoNewFile>'
710
710
  )),
711
711
  ( localize(
712
- 2282,
712
+ 2279,
713
713
  " - Run the code block in the terminal{0}.\n",
714
714
  '<keybinding:workbench.action.chat.runInTerminal>'
715
715
  ))].join('\n');
716
716
  }
717
717
  _navigationHint() {
718
718
  return ( localize(
719
- 2283,
719
+ 2280,
720
720
  "Show the next item{0} or previous item{1}.",
721
721
  `<keybinding:${"editor.action.accessibleViewNext" }`,
722
722
  `<keybinding:${"editor.action.accessibleViewPrevious" }>`
@@ -725,7 +725,7 @@ let AccessibleView = class AccessibleView extends Disposable {
725
725
  _disableVerbosityHint(provider) {
726
726
  if (provider.options.type === "help" && this._verbosityEnabled()) {
727
727
  return ( localize(
728
- 2284,
728
+ 2281,
729
729
  "\nDisable accessibility verbosity for this feature{0}.",
730
730
  `<keybinding:${"editor.action.accessibleViewDisableHint" }>`
731
731
  ));
@@ -737,7 +737,7 @@ let AccessibleView = class AccessibleView extends Disposable {
737
737
  return;
738
738
  }
739
739
  return ( localize(
740
- 2285,
740
+ 2282,
741
741
  'Go to a symbol{0}.',
742
742
  `<keybinding:${"editor.action.accessibleViewGoToSymbol" }>`
743
743
  ));
@@ -746,7 +746,7 @@ let AccessibleView = class AccessibleView extends Disposable {
746
746
  const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureKeybindings" )?.getAriaLabel();
747
747
  const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
748
748
  return ( localize(
749
- 2286,
749
+ 2283,
750
750
  '\nConfigure keybindings for commands that lack them {0}.',
751
751
  keybindingToConfigureQuickPick
752
752
  ));
@@ -755,7 +755,7 @@ let AccessibleView = class AccessibleView extends Disposable {
755
755
  const configureKb = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelpConfigureAssignedKeybindings" )?.getAriaLabel();
756
756
  const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
757
757
  return ( localize(
758
- 2287,
758
+ 2284,
759
759
  '\nConfigure keybindings for commands that already have assignments {0}.',
760
760
  keybindingToConfigureQuickPick
761
761
  ));
@@ -777,11 +777,11 @@ let AccessibleView = class AccessibleView extends Disposable {
777
777
  return screenReaderModeHint;
778
778
  }
779
779
  _exitDialogHint(provider) {
780
- return this._verbosityEnabled() && !provider.options.position ? ( localize(2288, '\nExit this dialog (Escape).')) : '';
780
+ return this._verbosityEnabled() && !provider.options.position ? ( localize(2285, '\nExit this dialog (Escape).')) : '';
781
781
  }
782
782
  _readMoreHint(provider) {
783
783
  return provider.options.readMoreUrl ? ( localize(
784
- 2289,
784
+ 2286,
785
785
  "\nOpen a browser window with more information related to accessibility{0}.",
786
786
  `<keybinding:${"editor.action.accessibilityHelpOpenHelpLink" }>`
787
787
  )) : '';
@@ -841,11 +841,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
841
841
  const keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleView" )?.getAriaLabel();
842
842
  let hint = null;
843
843
  if (keybinding) {
844
- hint = ( localize(2290, "Inspect this in the accessible view with {0}", keybinding));
844
+ hint = ( localize(2287, "Inspect this in the accessible view with {0}", keybinding));
845
845
  }
846
846
  else {
847
847
  hint = ( localize(
848
- 2291,
848
+ 2288,
849
849
  "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
850
850
  ));
851
851
  }
@@ -887,8 +887,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
887
887
  show(provider) {
888
888
  const disposables = ( (new DisposableStore()));
889
889
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
890
- quickPick.placeholder = ( localize(2292, "Type to search symbols"));
891
- quickPick.title = ( localize(2293, "Go to Symbol Accessible View"));
890
+ quickPick.placeholder = ( localize(2289, "Type to search symbols"));
891
+ quickPick.title = ( localize(2290, "Go to Symbol Accessible View"));
892
892
  const symbols = this._accessibleView.getSymbols();
893
893
  if (!symbols) {
894
894
  return;
@@ -15,11 +15,11 @@ class ShowSignalSoundHelp extends Action2 {
15
15
  constructor() {
16
16
  super({
17
17
  id: ShowSignalSoundHelp.ID,
18
- title: ( localize2(5586, "Help: List Signal Sounds")),
18
+ title: ( localize2(5562, "Help: List Signal Sounds")),
19
19
  f1: true,
20
20
  metadata: {
21
21
  description: ( localize(
22
- 5587,
22
+ 5563,
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(5588, 'Configure Sound')),
40
+ tooltip: ( localize(5564, '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(5589, 'Select a sound to play and configure'));
76
+ qp.placeholder = ( localize(5565, '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(5590, "Help: List Signal Announcements")),
89
+ title: ( localize2(5566, "Help: List Signal Announcements")),
90
90
  f1: true,
91
91
  metadata: {
92
92
  description: ( localize(
93
- 5591,
93
+ 5567,
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(5592, 'Configure Announcement')),
111
+ tooltip: ( localize(5568, '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(5593, 'Select an announcement to configure')) : ( localize(
145
- 5594,
144
+ qp.placeholder = screenReaderOptimized ? ( localize(5569, 'Select an announcement to configure')) : ( localize(
145
+ 5570,
146
146
  'Screen reader is not active, announcements are disabled by default.'
147
147
  ));
148
148
  qp.canSelectMany = true;
@@ -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(5585, "Diff editor")));
37
+ this._accessibilityService.alert(( localize(5561, "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(2343, "Toggle Screen Reader Accessibility Mode")),
14
+ title: ( localize2(2340, "Toggle Screen Reader Accessibility Mode")),
15
15
  metadata: {
16
16
  description: ( localize2(
17
- 2344,
17
+ 2341,
18
18
  "Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
19
19
  )),
20
20
  },