@codingame/monaco-vscode-accessibility-service-override 29.1.1 → 30.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-accessibility-service-override",
3
- "version": "29.1.1",
3
+ "version": "30.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": "29.1.1",
18
+ "@codingame/monaco-vscode-api": "30.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
- 4488,
56
+ 4487,
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(4489, "Yes")),
60
+ label: ( localize(4488, "Yes")),
61
61
  run: () => {
62
62
  this.configurationService.updateValue("editor.accessibilitySupport", "on", ConfigurationTarget.USER);
63
63
  }
64
64
  }, {
65
- label: ( localize(4490, "No")),
65
+ label: ( localize(4489, "No")),
66
66
  run: () => {
67
67
  this.configurationService.updateValue("editor.accessibilitySupport", "off", ConfigurationTarget.USER);
68
68
  }
69
69
  }, {
70
- label: ( localize(4491, "Learn More")),
70
+ label: ( localize(4490, "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(4492, "Screen Reader Optimized"));
83
+ const text = ( localize(4491, "Screen Reader Optimized"));
84
84
  this.screenReaderModeElement.value = this.statusbarService.addEntry({
85
- name: ( localize(4493, "Screen Reader Mode")),
85
+ name: ( localize(4492, "Screen Reader Mode")),
86
86
  text,
87
87
  ariaLabel: text,
88
88
  command: "showEditorScreenReaderNotification",
@@ -465,8 +465,8 @@ let AccessibleView = class AccessibleView extends Disposable {
465
465
  const disposables = this._register(( new DisposableStore()));
466
466
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
467
467
  quickPick.items = items;
468
- quickPick.title = ( localize(4494, "Configure keybindings"));
469
- quickPick.placeholder = ( localize(4495, "Select a command ID to configure a keybinding for it"));
468
+ quickPick.title = ( localize(4493, "Configure keybindings"));
469
+ quickPick.placeholder = ( localize(4494, "Select a command ID to configure a keybinding for it"));
470
470
  quickPick.show();
471
471
  disposables.add(quickPick.onDidAccept(async () => {
472
472
  const item = quickPick.selectedItems[0];
@@ -509,8 +509,8 @@ let AccessibleView = class AccessibleView extends Disposable {
509
509
  if (label) {
510
510
  symbols.push({
511
511
  markdownToParse: label,
512
- label: ( localize(4496, "({0}) {1}", token.type, label)),
513
- ariaLabel: ( localize(4497, "({0}) {1}", token.type, label)),
512
+ label: ( localize(4495, "({0}) {1}", token.type, label)),
513
+ ariaLabel: ( localize(4496, "({0}) {1}", token.type, label)),
514
514
  firstListItem
515
515
  });
516
516
  firstListItem = undefined;
@@ -550,7 +550,7 @@ let AccessibleView = class AccessibleView extends Disposable {
550
550
  }
551
551
  this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
552
552
  alert(( localize(
553
- 4498,
553
+ 4497,
554
554
  "{0} accessibility verbosity is now disabled",
555
555
  this._currentProvider.verbositySettingKey
556
556
  )));
@@ -644,16 +644,16 @@ let AccessibleView = class AccessibleView extends Disposable {
644
644
  const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
645
645
  if (verbose && !showAccessibleViewHelp && hasActions) {
646
646
  actionsHint = provider.options.position ? ( localize(
647
- 4499,
647
+ 4498,
648
648
  "Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog."
649
- )) : ( localize(4500, "Explore actions such as disabling this hint (Shift+Tab)."));
649
+ )) : ( localize(4499, "Explore actions such as disabling this hint (Shift+Tab)."));
650
650
  }
651
- let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4501, "Accessibility Help")) : ( localize(4502, "Accessible View"));
651
+ let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(4500, "Accessibility Help")) : ( localize(4501, "Accessible View"));
652
652
  this._title.textContent = ariaLabel;
653
653
  if (actionsHint && provider.options.type === AccessibleViewType.View) {
654
- ariaLabel = ( localize(4503, "Accessible View, {0}", actionsHint));
654
+ ariaLabel = ( localize(4502, "Accessible View, {0}", actionsHint));
655
655
  } else if (actionsHint) {
656
- ariaLabel = ( localize(4504, "Accessibility Help, {0}", actionsHint));
656
+ ariaLabel = ( localize(4503, "Accessibility Help, {0}", actionsHint));
657
657
  }
658
658
  if (isWindows && widgetIsFocused) {
659
659
  ariaLabel = "";
@@ -747,7 +747,7 @@ let AccessibleView = class AccessibleView extends Disposable {
747
747
  return disposableStore;
748
748
  }
749
749
  _updateToolbar(providedActions, type) {
750
- this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4505, "Accessibility Help")) : ( localize(4506, "Accessible View")));
750
+ this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(4504, "Accessibility Help")) : ( localize(4505, "Accessible View")));
751
751
  const toolbarMenu = this._register(
752
752
  this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService)
753
753
  );
@@ -845,9 +845,9 @@ let AccessibleView = class AccessibleView extends Disposable {
845
845
  _accessibleViewHelpDialogContent(providerHasSymbols) {
846
846
  const navigationHint = this._navigationHint();
847
847
  const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
848
- const toolbarHint = ( localize(4507, "Navigate to the toolbar (Shift+Tab)."));
848
+ const toolbarHint = ( localize(4506, "Navigate to the toolbar (Shift+Tab)."));
849
849
  const chatHints = this._getChatHints();
850
- let hint = ( localize(4508, "In the accessible view, you can:\n"));
850
+ let hint = ( localize(4507, "In the accessible view, you can:\n"));
851
851
  if (navigationHint) {
852
852
  hint += " - " + navigationHint + "\n";
853
853
  }
@@ -867,22 +867,22 @@ let AccessibleView = class AccessibleView extends Disposable {
867
867
  return;
868
868
  }
869
869
  return [( localize(
870
- 4509,
870
+ 4508,
871
871
  " - Insert the code block at the cursor{0}.",
872
872
  "<keybinding:workbench.action.chat.insertCodeBlock>"
873
873
  )), ( localize(
874
- 4510,
874
+ 4509,
875
875
  " - Insert the code block into a new file{0}.",
876
876
  "<keybinding:workbench.action.chat.insertIntoNewFile>"
877
877
  )), ( localize(
878
- 4511,
878
+ 4510,
879
879
  " - Run the code block in the terminal{0}.\n",
880
880
  "<keybinding:workbench.action.chat.runInTerminal>"
881
881
  ))].join("\n");
882
882
  }
883
883
  _navigationHint() {
884
884
  return localize(
885
- 4512,
885
+ 4511,
886
886
  "Show the next item{0} or previous item{1}.",
887
887
  `<keybinding:${AccessibilityCommandId.ShowNext}>`,
888
888
  `<keybinding:${AccessibilityCommandId.ShowPrevious}>`
@@ -891,7 +891,7 @@ let AccessibleView = class AccessibleView extends Disposable {
891
891
  _disableVerbosityHint(provider) {
892
892
  if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
893
893
  return localize(
894
- 4513,
894
+ 4512,
895
895
  "\nDisable accessibility verbosity for this feature{0}.",
896
896
  `<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
897
897
  );
@@ -903,7 +903,7 @@ let AccessibleView = class AccessibleView extends Disposable {
903
903
  return;
904
904
  }
905
905
  return localize(
906
- 4514,
906
+ 4513,
907
907
  "Go to a symbol{0}.",
908
908
  `<keybinding:${AccessibilityCommandId.GoToSymbol}>`
909
909
  );
@@ -912,7 +912,7 @@ let AccessibleView = class AccessibleView extends Disposable {
912
912
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
913
913
  const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.";
914
914
  return localize(
915
- 4515,
915
+ 4514,
916
916
  "\nConfigure keybindings for commands that lack them {0}.",
917
917
  keybindingToConfigureQuickPick
918
918
  );
@@ -921,7 +921,7 @@ let AccessibleView = class AccessibleView extends Disposable {
921
921
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
922
922
  const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.";
923
923
  return localize(
924
- 4516,
924
+ 4515,
925
925
  "\nConfigure keybindings for commands that already have assignments {0}.",
926
926
  keybindingToConfigureQuickPick
927
927
  );
@@ -940,11 +940,11 @@ let AccessibleView = class AccessibleView extends Disposable {
940
940
  return screenReaderModeHint;
941
941
  }
942
942
  _exitDialogHint(provider) {
943
- return this._verbosityEnabled() && !provider.options.position ? ( localize(4517, "\nExit this dialog (Escape).")) : "";
943
+ return this._verbosityEnabled() && !provider.options.position ? ( localize(4516, "\nExit this dialog (Escape).")) : "";
944
944
  }
945
945
  _readMoreHint(provider) {
946
946
  return provider.options.readMoreUrl ? ( localize(
947
- 4518,
947
+ 4517,
948
948
  "\nOpen a browser window with more information related to accessibility{0}.",
949
949
  `<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
950
950
  )) : "";
@@ -989,10 +989,10 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
989
989
  const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
990
990
  let hint = null;
991
991
  if (keybinding) {
992
- hint = ( localize(4519, "Inspect this in the accessible view with {0}", keybinding));
992
+ hint = ( localize(4518, "Inspect this in the accessible view with {0}", keybinding));
993
993
  } else {
994
994
  hint = ( localize(
995
- 4520,
995
+ 4519,
996
996
  "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
997
997
  ));
998
998
  }
@@ -1030,8 +1030,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
1030
1030
  show(provider) {
1031
1031
  const disposables = ( new DisposableStore());
1032
1032
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
1033
- quickPick.placeholder = ( localize(4521, "Type to search symbols"));
1034
- quickPick.title = ( localize(4522, "Go to Symbol Accessible View"));
1033
+ quickPick.placeholder = ( localize(4520, "Type to search symbols"));
1034
+ quickPick.title = ( localize(4521, "Go to Symbol Accessible View"));
1035
1035
  const picks = [];
1036
1036
  const symbols = this._accessibleView.getSymbols();
1037
1037
  if (!symbols) {
@@ -18,11 +18,11 @@ class ShowSignalSoundHelp extends Action2 {
18
18
  constructor() {
19
19
  super({
20
20
  id: ShowSignalSoundHelp.ID,
21
- title: ( localize2(4535, "Help: List Signal Sounds")),
21
+ title: ( localize2(4534, "Help: List Signal Sounds")),
22
22
  f1: true,
23
23
  metadata: {
24
24
  description: ( localize(
25
- 4536,
25
+ 4535,
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(4537, "Configure Sound")),
43
+ tooltip: ( localize(4536, "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(4538, "Select a sound to play and configure"));
106
+ qp.placeholder = ( localize(4537, "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(4539, "Help: List Signal Announcements")),
121
+ title: ( localize2(4538, "Help: List Signal Announcements")),
122
122
  f1: true,
123
123
  metadata: {
124
124
  description: ( localize(
125
- 4540,
125
+ 4539,
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(4541, "Configure Announcement")),
143
+ tooltip: ( localize(4540, "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(4542, "Select an announcement to configure")) : ( localize(
198
- 4543,
197
+ qp.placeholder = screenReaderOptimized ? ( localize(4541, "Select an announcement to configure")) : ( localize(
198
+ 4542,
199
199
  "Screen reader is not active, announcements are disabled by default."
200
200
  ));
201
201
  qp.canSelectMany = true;
@@ -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(4544, "Diff editor")));
44
+ this._accessibilityService.alert(( localize(4543, "Diff editor")));
45
45
  }
46
46
  }));
47
47
  }
@@ -22,10 +22,10 @@ class ToggleScreenReaderMode extends Action2 {
22
22
  constructor() {
23
23
  super({
24
24
  id: "editor.action.toggleScreenReaderAccessibilityMode",
25
- title: ( localize2(7661, "Toggle Screen Reader Accessibility Mode")),
25
+ title: ( localize2(7726, "Toggle Screen Reader Accessibility Mode")),
26
26
  metadata: {
27
27
  description: ( localize2(
28
- 7662,
28
+ 7727,
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(7663, "Announce Cursor Position")),
65
+ title: ( localize2(7728, "Announce Cursor Position")),
66
66
  f1: true,
67
67
  metadata: {
68
68
  description: ( localize2(
69
- 7664,
69
+ 7729,
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(7665, "Line {0}, Column {1}", position.lineNumber, visibleColumn)));
94
+ alert(( localize(7730, "Line {0}, Column {1}", position.lineNumber, visibleColumn)));
95
95
  }
96
96
  }
97
97
  registerAction2(AnnounceCursorPosition);