@codingame/monaco-vscode-accessibility-service-override 13.0.0 → 13.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-accessibility-service-override",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - accessibility service-override",
6
6
  "keywords": [],
@@ -15,22 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "13.0.0",
18
+ "@codingame/monaco-vscode-api": "13.1.0",
19
+ "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "13.1.0",
19
20
  "marked": "14.0.0"
20
21
  },
21
- "peerDependencies": {
22
- "@codingame/monaco-vscode-api": "13.0.0",
23
- "@codingame/monaco-vscode-219d9a5f-b446-507b-a188-1178a0867c75-common": "13.0.0",
24
- "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "13.0.0"
25
- },
26
- "peerDependenciesMeta": {
27
- "@codingame/monaco-vscode-219d9a5f-b446-507b-a188-1178a0867c75-common": {
28
- "optional": true
29
- },
30
- "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": {
31
- "optional": true
32
- }
33
- },
34
22
  "main": "index.js",
35
23
  "module": "index.js",
36
24
  "types": "index.d.ts",
@@ -37,13 +37,13 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
37
37
  }));
38
38
  }
39
39
  showScreenReaderNotification() {
40
- this.screenReaderNotification = this.notificationService.prompt(Severity.Info, ( localize(4005, "Are you using a screen reader to operate VS Code?")), [{
41
- label: ( localize(4006, "Yes")),
40
+ this.screenReaderNotification = this.notificationService.prompt(Severity.Info, ( localize(4023, "Are you using a screen reader to operate VS Code?")), [{
41
+ label: ( localize(4024, "Yes")),
42
42
  run: () => {
43
43
  this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
44
44
  }
45
45
  }, {
46
- label: ( localize(4007, "No")),
46
+ label: ( localize(4025, "No")),
47
47
  run: () => {
48
48
  this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
49
49
  }
@@ -56,9 +56,9 @@ let AccessibilityStatus = class AccessibilityStatus extends Disposable {
56
56
  updateScreenReaderModeElement(visible) {
57
57
  if (visible) {
58
58
  if (!this.screenReaderModeElement.value) {
59
- const text = ( localize(4008, "Screen Reader Optimized"));
59
+ const text = ( localize(4026, "Screen Reader Optimized"));
60
60
  this.screenReaderModeElement.value = this.statusbarService.addEntry({
61
- name: ( localize(4009, "Screen Reader Mode")),
61
+ name: ( localize(4027, "Screen Reader Mode")),
62
62
  text,
63
63
  ariaLabel: text,
64
64
  command: 'showEditorScreenReaderNotification',
@@ -361,8 +361,8 @@ let AccessibleView = class AccessibleView extends Disposable {
361
361
  const disposables = this._register(( new DisposableStore()));
362
362
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
363
363
  quickPick.items = items;
364
- quickPick.title = ( localize(4010, 'Configure keybindings'));
365
- quickPick.placeholder = ( localize(4011, 'Select a command ID to configure a keybinding for it'));
364
+ quickPick.title = ( localize(4028, 'Configure keybindings'));
365
+ quickPick.placeholder = ( localize(4029, 'Select a command ID to configure a keybinding for it'));
366
366
  quickPick.show();
367
367
  disposables.add(quickPick.onDidAccept(async () => {
368
368
  const item = quickPick.selectedItems[0];
@@ -402,7 +402,7 @@ let AccessibleView = class AccessibleView extends Disposable {
402
402
  }
403
403
  }
404
404
  if (label) {
405
- symbols.push({ markdownToParse: label, label: ( localize(4012, "({0}) {1}", token.type, label)), ariaLabel: ( localize(4013, "({0}) {1}", token.type, label)), firstListItem });
405
+ symbols.push({ markdownToParse: label, label: ( localize(4030, "({0}) {1}", token.type, label)), ariaLabel: ( localize(4031, "({0}) {1}", token.type, label)), firstListItem });
406
406
  firstListItem = undefined;
407
407
  }
408
408
  }
@@ -434,7 +434,7 @@ let AccessibleView = class AccessibleView extends Disposable {
434
434
  }
435
435
  this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
436
436
  alert(( localize(
437
- 4014,
437
+ 4032,
438
438
  '{0} accessibility verbosity is now disabled',
439
439
  this._currentProvider.verbositySettingKey
440
440
  )));
@@ -513,17 +513,17 @@ let AccessibleView = class AccessibleView extends Disposable {
513
513
  const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
514
514
  if (verbose && !showAccessibleViewHelp && hasActions) {
515
515
  actionsHint = provider.options.position ? ( localize(
516
- 4015,
516
+ 4033,
517
517
  'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
518
- )) : ( localize(4016, 'Explore actions such as disabling this hint (Shift+Tab).'));
518
+ )) : ( localize(4034, 'Explore actions such as disabling this hint (Shift+Tab).'));
519
519
  }
520
- let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4017, "Accessibility Help")) : ( localize(4018, "Accessible View"));
520
+ let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4035, "Accessibility Help")) : ( localize(4036, "Accessible View"));
521
521
  this._title.textContent = ariaLabel;
522
522
  if (actionsHint && provider.options.type === AccessibleViewType.View) {
523
- ariaLabel = ( localize(4019, "Accessible View, {0}", actionsHint));
523
+ ariaLabel = ( localize(4037, "Accessible View, {0}", actionsHint));
524
524
  }
525
525
  else if (actionsHint) {
526
- ariaLabel = ( localize(4020, "Accessibility Help, {0}", actionsHint));
526
+ ariaLabel = ( localize(4038, "Accessibility Help, {0}", actionsHint));
527
527
  }
528
528
  if (isWindows && widgetIsFocused) {
529
529
  ariaLabel = '';
@@ -591,7 +591,7 @@ let AccessibleView = class AccessibleView extends Disposable {
591
591
  return disposableStore;
592
592
  }
593
593
  _updateToolbar(providedActions, type) {
594
- this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4021, 'Accessibility Help')) : ( localize(4022, "Accessible View")));
594
+ this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4039, 'Accessibility Help')) : ( localize(4040, "Accessible View")));
595
595
  const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
596
596
  const menuActions = getFlatActionBarActions(toolbarMenu.getActions({}));
597
597
  if (providedActions) {
@@ -693,9 +693,9 @@ let AccessibleView = class AccessibleView extends Disposable {
693
693
  _accessibleViewHelpDialogContent(providerHasSymbols) {
694
694
  const navigationHint = this._navigationHint();
695
695
  const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
696
- const toolbarHint = ( localize(4023, "Navigate to the toolbar (Shift+Tab)."));
696
+ const toolbarHint = ( localize(4041, "Navigate to the toolbar (Shift+Tab)."));
697
697
  const chatHints = this._getChatHints();
698
- let hint = ( localize(4024, "In the accessible view, you can:\n"));
698
+ let hint = ( localize(4042, "In the accessible view, you can:\n"));
699
699
  if (navigationHint) {
700
700
  hint += ' - ' + navigationHint + '\n';
701
701
  }
@@ -715,24 +715,24 @@ let AccessibleView = class AccessibleView extends Disposable {
715
715
  return;
716
716
  }
717
717
  return [( localize(
718
- 4025,
718
+ 4043,
719
719
  " - Insert the code block at the cursor{0}.",
720
720
  '<keybinding:workbench.action.chat.insertCodeBlock>'
721
721
  )),
722
722
  ( localize(
723
- 4026,
723
+ 4044,
724
724
  " - Insert the code block into a new file{0}.",
725
725
  '<keybinding:workbench.action.chat.insertIntoNewFile>'
726
726
  )),
727
727
  ( localize(
728
- 4027,
728
+ 4045,
729
729
  " - Run the code block in the terminal{0}.\n",
730
730
  '<keybinding:workbench.action.chat.runInTerminal>'
731
731
  ))].join('\n');
732
732
  }
733
733
  _navigationHint() {
734
734
  return localize(
735
- 4028,
735
+ 4046,
736
736
  "Show the next item{0} or previous item{1}.",
737
737
  `<keybinding:${AccessibilityCommandId.ShowNext}`,
738
738
  `<keybinding:${AccessibilityCommandId.ShowPrevious}>`
@@ -741,7 +741,7 @@ let AccessibleView = class AccessibleView extends Disposable {
741
741
  _disableVerbosityHint(provider) {
742
742
  if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
743
743
  return localize(
744
- 4029,
744
+ 4047,
745
745
  "\nDisable accessibility verbosity for this feature{0}.",
746
746
  `<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
747
747
  );
@@ -753,7 +753,7 @@ let AccessibleView = class AccessibleView extends Disposable {
753
753
  return;
754
754
  }
755
755
  return localize(
756
- 4030,
756
+ 4048,
757
757
  'Go to a symbol{0}.',
758
758
  `<keybinding:${AccessibilityCommandId.GoToSymbol}>`
759
759
  );
@@ -762,7 +762,7 @@ let AccessibleView = class AccessibleView extends Disposable {
762
762
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
763
763
  const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
764
764
  return localize(
765
- 4031,
765
+ 4049,
766
766
  '\nConfigure keybindings for commands that lack them {0}.',
767
767
  keybindingToConfigureQuickPick
768
768
  );
@@ -771,7 +771,7 @@ let AccessibleView = class AccessibleView extends Disposable {
771
771
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
772
772
  const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
773
773
  return localize(
774
- 4032,
774
+ 4050,
775
775
  '\nConfigure keybindings for commands that already have assignments {0}.',
776
776
  keybindingToConfigureQuickPick
777
777
  );
@@ -793,11 +793,11 @@ let AccessibleView = class AccessibleView extends Disposable {
793
793
  return screenReaderModeHint;
794
794
  }
795
795
  _exitDialogHint(provider) {
796
- return this._verbosityEnabled() && !provider.options.position ? ( localize(4033, '\nExit this dialog (Escape).')) : '';
796
+ return this._verbosityEnabled() && !provider.options.position ? ( localize(4051, '\nExit this dialog (Escape).')) : '';
797
797
  }
798
798
  _readMoreHint(provider) {
799
799
  return provider.options.readMoreUrl ? ( localize(
800
- 4034,
800
+ 4052,
801
801
  "\nOpen a browser window with more information related to accessibility{0}.",
802
802
  `<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
803
803
  )) : '';
@@ -858,11 +858,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
858
858
  const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
859
859
  let hint = null;
860
860
  if (keybinding) {
861
- hint = ( localize(4035, "Inspect this in the accessible view with {0}", keybinding));
861
+ hint = ( localize(4053, "Inspect this in the accessible view with {0}", keybinding));
862
862
  }
863
863
  else {
864
864
  hint = ( localize(
865
- 4036,
865
+ 4054,
866
866
  "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
867
867
  ));
868
868
  }
@@ -904,8 +904,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
904
904
  show(provider) {
905
905
  const disposables = ( new DisposableStore());
906
906
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
907
- quickPick.placeholder = ( localize(4037, "Type to search symbols"));
908
- quickPick.title = ( localize(4038, "Go to Symbol Accessible View"));
907
+ quickPick.placeholder = ( localize(4055, "Type to search symbols"));
908
+ quickPick.title = ( localize(4056, "Go to Symbol Accessible View"));
909
909
  const symbols = this._accessibleView.getSymbols();
910
910
  if (!symbols) {
911
911
  return;
@@ -16,11 +16,11 @@ class ShowSignalSoundHelp extends Action2 {
16
16
  constructor() {
17
17
  super({
18
18
  id: ShowSignalSoundHelp.ID,
19
- title: ( localize2(4051, "Help: List Signal Sounds")),
19
+ title: ( localize2(4069, "Help: List Signal Sounds")),
20
20
  f1: true,
21
21
  metadata: {
22
22
  description: ( localize(
23
- 4052,
23
+ 4070,
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(4053, 'Configure Sound')),
41
+ tooltip: ( localize(4071, '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(4054, 'Select a sound to play and configure'));
77
+ qp.placeholder = ( localize(4072, '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(4055, "Help: List Signal Announcements")),
90
+ title: ( localize2(4073, "Help: List Signal Announcements")),
91
91
  f1: true,
92
92
  metadata: {
93
93
  description: ( localize(
94
- 4056,
94
+ 4074,
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(4057, 'Configure Announcement')),
112
+ tooltip: ( localize(4075, '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(4058, 'Select an announcement to configure')) : ( localize(
146
- 4059,
145
+ qp.placeholder = screenReaderOptimized ? ( localize(4076, 'Select an announcement to configure')) : ( localize(
146
+ 4077,
147
147
  'Screen reader is not active, announcements are disabled by default.'
148
148
  ));
149
149
  qp.canSelectMany = true;
@@ -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(4060, "Diff editor")));
39
+ this._accessibilityService.alert(( localize(4078, "Diff editor")));
40
40
  }
41
41
  }));
42
42
  }
@@ -15,10 +15,10 @@ class ToggleScreenReaderMode extends Action2 {
15
15
  constructor() {
16
16
  super({
17
17
  id: 'editor.action.toggleScreenReaderAccessibilityMode',
18
- title: ( localize2(4654, "Toggle Screen Reader Accessibility Mode")),
18
+ title: ( localize2(4672, "Toggle Screen Reader Accessibility Mode")),
19
19
  metadata: {
20
20
  description: ( localize2(
21
- 4655,
21
+ 4673,
22
22
  "Toggles an optimized mode for usage with screen readers, braille devices, and other assistive technologies."
23
23
  )),
24
24
  },