@codingame/monaco-vscode-accessibility-service-override 37.0.0 → 37.2.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": "37.0.0",
3
+ "version": "37.2.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": "37.0.0",
18
+ "@codingame/monaco-vscode-api": "37.2.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
- 5010,
56
+ 5056,
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(5011, "Yes")),
60
+ label: ( localize(5057, "Yes")),
61
61
  run: () => {
62
62
  this.configurationService.updateValue("editor.accessibilitySupport", "on", ConfigurationTarget.USER);
63
63
  }
64
64
  }, {
65
- label: ( localize(5012, "No")),
65
+ label: ( localize(5058, "No")),
66
66
  run: () => {
67
67
  this.configurationService.updateValue("editor.accessibilitySupport", "off", ConfigurationTarget.USER);
68
68
  }
69
69
  }, {
70
- label: ( localize(5013, "Learn More")),
70
+ label: ( localize(5059, "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(5014, "Screen Reader Optimized"));
83
+ const text = ( localize(5060, "Screen Reader Optimized"));
84
84
  this.screenReaderModeElement.value = this.statusbarService.addEntry({
85
- name: ( localize(5015, "Screen Reader Mode")),
85
+ name: ( localize(5061, "Screen Reader Mode")),
86
86
  text,
87
87
  ariaLabel: text,
88
88
  command: "showEditorScreenReaderNotification",
@@ -474,8 +474,8 @@ let AccessibleView = class AccessibleView extends Disposable {
474
474
  const disposables = this._register(( new DisposableStore()));
475
475
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
476
476
  quickPick.items = items;
477
- quickPick.title = ( localize(5016, "Configure keybindings"));
478
- quickPick.placeholder = ( localize(5017, "Select a command ID to configure a keybinding for it"));
477
+ quickPick.title = ( localize(5062, "Configure keybindings"));
478
+ quickPick.placeholder = ( localize(5063, "Select a command ID to configure a keybinding for it"));
479
479
  quickPick.show();
480
480
  disposables.add(quickPick.onDidAccept(async () => {
481
481
  const item = quickPick.selectedItems[0];
@@ -518,8 +518,8 @@ let AccessibleView = class AccessibleView extends Disposable {
518
518
  if (label) {
519
519
  symbols.push({
520
520
  markdownToParse: label,
521
- label: ( localize(5018, "({0}) {1}", token.type, label)),
522
- ariaLabel: ( localize(5019, "({0}) {1}", token.type, label)),
521
+ label: ( localize(5064, "({0}) {1}", token.type, label)),
522
+ ariaLabel: ( localize(5065, "({0}) {1}", token.type, label)),
523
523
  firstListItem
524
524
  });
525
525
  firstListItem = undefined;
@@ -559,7 +559,7 @@ let AccessibleView = class AccessibleView extends Disposable {
559
559
  }
560
560
  this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
561
561
  alert(( localize(
562
- 5020,
562
+ 5066,
563
563
  "{0} accessibility verbosity is now disabled",
564
564
  this._currentProvider.verbositySettingKey
565
565
  )));
@@ -654,16 +654,16 @@ let AccessibleView = class AccessibleView extends Disposable {
654
654
  const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
655
655
  if (verbose && !showAccessibleViewHelp && hasActions) {
656
656
  actionsHint = provider.options.position ? ( localize(
657
- 5021,
657
+ 5067,
658
658
  "Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog."
659
- )) : ( localize(5022, "Explore actions such as disabling this hint (Shift+Tab)."));
659
+ )) : ( localize(5068, "Explore actions such as disabling this hint (Shift+Tab)."));
660
660
  }
661
- let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(5023, "Accessibility Help")) : ( localize(5024, "Accessible View"));
661
+ let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(5069, "Accessibility Help")) : ( localize(5070, "Accessible View"));
662
662
  this._title.textContent = ariaLabel;
663
663
  if (actionsHint && provider.options.type === AccessibleViewType.View) {
664
- ariaLabel = ( localize(5025, "Accessible View, {0}", actionsHint));
664
+ ariaLabel = ( localize(5071, "Accessible View, {0}", actionsHint));
665
665
  } else if (actionsHint) {
666
- ariaLabel = ( localize(5026, "Accessibility Help, {0}", actionsHint));
666
+ ariaLabel = ( localize(5072, "Accessibility Help, {0}", actionsHint));
667
667
  }
668
668
  if (isWindows && widgetIsFocused) {
669
669
  ariaLabel = "";
@@ -767,7 +767,7 @@ let AccessibleView = class AccessibleView extends Disposable {
767
767
  return disposableStore;
768
768
  }
769
769
  _updateToolbar(providedActions, type) {
770
- this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(5027, "Accessibility Help")) : ( localize(5028, "Accessible View")));
770
+ this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(5073, "Accessibility Help")) : ( localize(5074, "Accessible View")));
771
771
  const toolbarMenu = this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService);
772
772
  this._toolbarMenu.value = toolbarMenu;
773
773
  const menuActions = getFlatActionBarActions(toolbarMenu.getActions({}));
@@ -864,9 +864,9 @@ let AccessibleView = class AccessibleView extends Disposable {
864
864
  _accessibleViewHelpDialogContent(providerHasSymbols) {
865
865
  const navigationHint = this._navigationHint();
866
866
  const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
867
- const toolbarHint = ( localize(5029, "Navigate to the toolbar (Shift+Tab)."));
867
+ const toolbarHint = ( localize(5075, "Navigate to the toolbar (Shift+Tab)."));
868
868
  const chatHints = this._getChatHints();
869
- let hint = ( localize(5030, "In the accessible view, you can:\n"));
869
+ let hint = ( localize(5076, "In the accessible view, you can:\n"));
870
870
  if (navigationHint) {
871
871
  hint += " - " + navigationHint + "\n";
872
872
  }
@@ -886,22 +886,22 @@ let AccessibleView = class AccessibleView extends Disposable {
886
886
  return;
887
887
  }
888
888
  return [( localize(
889
- 5031,
889
+ 5077,
890
890
  " - Insert the code block at the cursor{0}.",
891
891
  "<keybinding:workbench.action.chat.insertCodeBlock>"
892
892
  )), ( localize(
893
- 5032,
893
+ 5078,
894
894
  " - Insert the code block into a new file{0}.",
895
895
  "<keybinding:workbench.action.chat.insertIntoNewFile>"
896
896
  )), ( localize(
897
- 5033,
897
+ 5079,
898
898
  " - Run the code block in the terminal{0}.\n",
899
899
  "<keybinding:workbench.action.chat.runInTerminal>"
900
900
  ))].join("\n");
901
901
  }
902
902
  _navigationHint() {
903
903
  return localize(
904
- 5034,
904
+ 5080,
905
905
  "Show the next item{0} or previous item{1}.",
906
906
  `<keybinding:${AccessibilityCommandId.ShowNext}>`,
907
907
  `<keybinding:${AccessibilityCommandId.ShowPrevious}>`
@@ -910,7 +910,7 @@ let AccessibleView = class AccessibleView extends Disposable {
910
910
  _disableVerbosityHint(provider) {
911
911
  if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
912
912
  return localize(
913
- 5035,
913
+ 5081,
914
914
  "\nDisable accessibility verbosity for this feature{0}.",
915
915
  `<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
916
916
  );
@@ -922,7 +922,7 @@ let AccessibleView = class AccessibleView extends Disposable {
922
922
  return;
923
923
  }
924
924
  return localize(
925
- 5036,
925
+ 5082,
926
926
  "Go to a symbol{0}.",
927
927
  `<keybinding:${AccessibilityCommandId.GoToSymbol}>`
928
928
  );
@@ -931,7 +931,7 @@ let AccessibleView = class AccessibleView extends Disposable {
931
931
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
932
932
  const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.";
933
933
  return localize(
934
- 5037,
934
+ 5083,
935
935
  "\nConfigure keybindings for commands that lack them {0}.",
936
936
  keybindingToConfigureQuickPick
937
937
  );
@@ -940,7 +940,7 @@ let AccessibleView = class AccessibleView extends Disposable {
940
940
  const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
941
941
  const keybindingToConfigureQuickPick = configureKb ? "(" + configureKb + ")" : "by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.";
942
942
  return localize(
943
- 5038,
943
+ 5084,
944
944
  "\nConfigure keybindings for commands that already have assignments {0}.",
945
945
  keybindingToConfigureQuickPick
946
946
  );
@@ -959,11 +959,11 @@ let AccessibleView = class AccessibleView extends Disposable {
959
959
  return screenReaderModeHint;
960
960
  }
961
961
  _exitDialogHint(provider) {
962
- return this._verbosityEnabled() && !provider.options.position ? ( localize(5039, "\nExit this dialog (Escape).")) : "";
962
+ return this._verbosityEnabled() && !provider.options.position ? ( localize(5085, "\nExit this dialog (Escape).")) : "";
963
963
  }
964
964
  _readMoreHint(provider) {
965
965
  return provider.options.readMoreUrl ? ( localize(
966
- 5040,
966
+ 5086,
967
967
  "\nOpen a browser window with more information related to accessibility{0}.",
968
968
  `<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
969
969
  )) : "";
@@ -1008,10 +1008,10 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
1008
1008
  const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
1009
1009
  let hint = null;
1010
1010
  if (keybinding) {
1011
- hint = ( localize(5041, "Inspect this in the accessible view with {0}", keybinding));
1011
+ hint = ( localize(5087, "Inspect this in the accessible view with {0}", keybinding));
1012
1012
  } else {
1013
1013
  hint = ( localize(
1014
- 5042,
1014
+ 5088,
1015
1015
  "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
1016
1016
  ));
1017
1017
  }
@@ -1049,8 +1049,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
1049
1049
  show(provider) {
1050
1050
  const disposables = ( new DisposableStore());
1051
1051
  const quickPick = disposables.add(this._quickInputService.createQuickPick());
1052
- quickPick.placeholder = ( localize(5043, "Type to search symbols"));
1053
- quickPick.title = ( localize(5044, "Go to Symbol Accessible View"));
1052
+ quickPick.placeholder = ( localize(5089, "Type to search symbols"));
1053
+ quickPick.title = ( localize(5090, "Go to Symbol Accessible View"));
1054
1054
  const picks = [];
1055
1055
  const symbols = this._accessibleView.getSymbols();
1056
1056
  if (!symbols) {
@@ -18,11 +18,11 @@ class ShowSignalSoundHelp extends Action2 {
18
18
  constructor() {
19
19
  super({
20
20
  id: ShowSignalSoundHelp.ID,
21
- title: ( localize2(5057, "Help: List Signal Sounds")),
21
+ title: ( localize2(5103, "Help: List Signal Sounds")),
22
22
  f1: true,
23
23
  metadata: {
24
24
  description: ( localize(
25
- 5058,
25
+ 5104,
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(5059, "Configure Sound")),
43
+ tooltip: ( localize(5105, "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(5060, "Select a sound to play and configure"));
106
+ qp.placeholder = ( localize(5106, "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(5061, "Help: List Signal Announcements")),
121
+ title: ( localize2(5107, "Help: List Signal Announcements")),
122
122
  f1: true,
123
123
  metadata: {
124
124
  description: ( localize(
125
- 5062,
125
+ 5108,
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(5063, "Configure Announcement")),
143
+ tooltip: ( localize(5109, "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(5064, "Select an announcement to configure")) : ( localize(
198
- 5065,
197
+ qp.placeholder = screenReaderOptimized ? ( localize(5110, "Select an announcement to configure")) : ( localize(
198
+ 5111,
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(5066, "Diff editor")));
44
+ this._accessibilityService.alert(( localize(5112, "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(10781, "Toggle Screen Reader Accessibility Mode")),
25
+ title: ( localize2(10976, "Toggle Screen Reader Accessibility Mode")),
26
26
  metadata: {
27
27
  description: ( localize2(
28
- 10782,
28
+ 10977,
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(10783, "Announce Cursor Position")),
65
+ title: ( localize2(10978, "Announce Cursor Position")),
66
66
  f1: true,
67
67
  metadata: {
68
68
  description: ( localize2(
69
- 10784,
69
+ 10979,
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(10785, "Line {0}, Column {1}", position.lineNumber, visibleColumn)));
94
+ alert(( localize(10980, "Line {0}, Column {1}", position.lineNumber, visibleColumn)));
95
95
  }
96
96
  }
97
97
  registerAction2(AnnounceCursorPosition);