@codingame/monaco-vscode-accessibility-service-override 8.0.3 → 8.0.4
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": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -347,8 +347,8 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
347
347
|
const quickPick = this._quickInputService.createQuickPick();
|
|
348
348
|
this._register(quickPick);
|
|
349
349
|
quickPick.items = items;
|
|
350
|
-
quickPick.title = ( localize(
|
|
351
|
-
quickPick.placeholder = ( localize(
|
|
350
|
+
quickPick.title = ( localize(2291, 'Configure keybindings'));
|
|
351
|
+
quickPick.placeholder = ( localize(2292, 'Select a command ID to configure a keybinding for it'));
|
|
352
352
|
quickPick.show();
|
|
353
353
|
quickPick.onDidAccept(async () => {
|
|
354
354
|
const item = quickPick.selectedItems[0];
|
|
@@ -388,7 +388,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
if (label) {
|
|
391
|
-
symbols.push({ markdownToParse: label, label: ( localize(
|
|
391
|
+
symbols.push({ markdownToParse: label, label: ( localize(2293, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2294, "({0}) {1}", token.type, label)), firstListItem });
|
|
392
392
|
firstListItem = undefined;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
@@ -420,7 +420,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
420
420
|
}
|
|
421
421
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
422
422
|
alert(( localize(
|
|
423
|
-
|
|
423
|
+
2295,
|
|
424
424
|
'{0} accessibility verbosity is now disabled',
|
|
425
425
|
this._currentProvider.verbositySettingKey
|
|
426
426
|
)));
|
|
@@ -499,17 +499,17 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
499
499
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || provider.actions?.length;
|
|
500
500
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
501
501
|
actionsHint = provider.options.position ? ( localize(
|
|
502
|
-
|
|
502
|
+
2296,
|
|
503
503
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
504
|
-
)) : ( localize(
|
|
504
|
+
)) : ( localize(2297, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
505
505
|
}
|
|
506
|
-
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(
|
|
506
|
+
let ariaLabel = provider.options.type === AccessibleViewType.Help ? ( localize(2298, "Accessibility Help")) : ( localize(2299, "Accessible View"));
|
|
507
507
|
this._title.textContent = ariaLabel;
|
|
508
508
|
if (actionsHint && provider.options.type === AccessibleViewType.View) {
|
|
509
|
-
ariaLabel = ( localize(
|
|
509
|
+
ariaLabel = ( localize(2300, "Accessible View, {0}", actionsHint));
|
|
510
510
|
}
|
|
511
511
|
else if (actionsHint) {
|
|
512
|
-
ariaLabel = ( localize(
|
|
512
|
+
ariaLabel = ( localize(2301, "Accessibility Help, {0}", actionsHint));
|
|
513
513
|
}
|
|
514
514
|
if (isWindows && widgetIsFocused) {
|
|
515
515
|
ariaLabel = '';
|
|
@@ -577,7 +577,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
577
577
|
return disposableStore;
|
|
578
578
|
}
|
|
579
579
|
_updateToolbar(providedActions, type) {
|
|
580
|
-
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(
|
|
580
|
+
this._toolbar.setAriaLabel(type === AccessibleViewType.Help ? ( localize(2302, 'Accessibility Help')) : ( localize(2303, "Accessible View")));
|
|
581
581
|
const menuActions = [];
|
|
582
582
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
583
583
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -680,9 +680,9 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
680
680
|
_accessibleViewHelpDialogContent(providerHasSymbols) {
|
|
681
681
|
const navigationHint = this._navigationHint();
|
|
682
682
|
const goToSymbolHint = this._goToSymbolHint(providerHasSymbols);
|
|
683
|
-
const toolbarHint = ( localize(
|
|
683
|
+
const toolbarHint = ( localize(2304, "Navigate to the toolbar (Shift+Tab)."));
|
|
684
684
|
const chatHints = this._getChatHints();
|
|
685
|
-
let hint = ( localize(
|
|
685
|
+
let hint = ( localize(2305, "In the accessible view, you can:\n"));
|
|
686
686
|
if (navigationHint) {
|
|
687
687
|
hint += ' - ' + navigationHint + '\n';
|
|
688
688
|
}
|
|
@@ -702,24 +702,24 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
return [( localize(
|
|
705
|
-
|
|
705
|
+
2306,
|
|
706
706
|
" - Insert the code block at the cursor{0}.",
|
|
707
707
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
708
708
|
)),
|
|
709
709
|
( localize(
|
|
710
|
-
|
|
710
|
+
2307,
|
|
711
711
|
" - Insert the code block into a new file{0}.",
|
|
712
712
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
713
713
|
)),
|
|
714
714
|
( localize(
|
|
715
|
-
|
|
715
|
+
2308,
|
|
716
716
|
" - Run the code block in the terminal{0}.\n",
|
|
717
717
|
'<keybinding:workbench.action.chat.runInTerminal>'
|
|
718
718
|
))].join('\n');
|
|
719
719
|
}
|
|
720
720
|
_navigationHint() {
|
|
721
721
|
return ( localize(
|
|
722
|
-
|
|
722
|
+
2309,
|
|
723
723
|
"Show the next item{0} or previous item{1}.",
|
|
724
724
|
`<keybinding:${AccessibilityCommandId.ShowNext}`,
|
|
725
725
|
`<keybinding:${AccessibilityCommandId.ShowPrevious}>`
|
|
@@ -728,7 +728,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
728
728
|
_disableVerbosityHint(provider) {
|
|
729
729
|
if (provider.options.type === AccessibleViewType.Help && this._verbosityEnabled()) {
|
|
730
730
|
return ( localize(
|
|
731
|
-
|
|
731
|
+
2310,
|
|
732
732
|
"\nDisable accessibility verbosity for this feature{0}.",
|
|
733
733
|
`<keybinding:${AccessibilityCommandId.DisableVerbosityHint}>`
|
|
734
734
|
));
|
|
@@ -740,7 +740,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
742
|
return ( localize(
|
|
743
|
-
|
|
743
|
+
2311,
|
|
744
744
|
'Go to a symbol{0}.',
|
|
745
745
|
`<keybinding:${AccessibilityCommandId.GoToSymbol}>`
|
|
746
746
|
));
|
|
@@ -749,7 +749,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
749
749
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureKeybindings)?.getAriaLabel();
|
|
750
750
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Unassigned Keybindings.';
|
|
751
751
|
return ( localize(
|
|
752
|
-
|
|
752
|
+
2312,
|
|
753
753
|
'\nConfigure keybindings for commands that lack them {0}.',
|
|
754
754
|
keybindingToConfigureQuickPick
|
|
755
755
|
));
|
|
@@ -758,7 +758,7 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
758
758
|
const configureKb = this._keybindingService.lookupKeybinding(AccessibilityCommandId.AccessibilityHelpConfigureAssignedKeybindings)?.getAriaLabel();
|
|
759
759
|
const keybindingToConfigureQuickPick = configureKb ? '(' + configureKb + ')' : 'by assigning a keybinding to the command Accessibility Help Configure Assigned Keybindings.';
|
|
760
760
|
return ( localize(
|
|
761
|
-
|
|
761
|
+
2313,
|
|
762
762
|
'\nConfigure keybindings for commands that already have assignments {0}.',
|
|
763
763
|
keybindingToConfigureQuickPick
|
|
764
764
|
));
|
|
@@ -780,11 +780,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
780
780
|
return screenReaderModeHint;
|
|
781
781
|
}
|
|
782
782
|
_exitDialogHint(provider) {
|
|
783
|
-
return this._verbosityEnabled() && !provider.options.position ? ( localize(
|
|
783
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(2314, '\nExit this dialog (Escape).')) : '';
|
|
784
784
|
}
|
|
785
785
|
_readMoreHint(provider) {
|
|
786
786
|
return provider.options.readMoreUrl ? ( localize(
|
|
787
|
-
|
|
787
|
+
2315,
|
|
788
788
|
"\nOpen a browser window with more information related to accessibility{0}.",
|
|
789
789
|
`<keybinding:${AccessibilityCommandId.AccessibilityHelpOpenHelpLink}>`
|
|
790
790
|
)) : '';
|
|
@@ -844,11 +844,11 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
844
844
|
const keybinding = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibleView)?.getAriaLabel();
|
|
845
845
|
let hint = null;
|
|
846
846
|
if (keybinding) {
|
|
847
|
-
hint = ( localize(
|
|
847
|
+
hint = ( localize(2316, "Inspect this in the accessible view with {0}", keybinding));
|
|
848
848
|
}
|
|
849
849
|
else {
|
|
850
850
|
hint = ( localize(
|
|
851
|
-
|
|
851
|
+
2317,
|
|
852
852
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
853
853
|
));
|
|
854
854
|
}
|
|
@@ -893,8 +893,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
893
893
|
}
|
|
894
894
|
show(provider) {
|
|
895
895
|
const quickPick = this._quickInputService.createQuickPick();
|
|
896
|
-
quickPick.placeholder = ( localize(
|
|
897
|
-
quickPick.title = ( localize(
|
|
896
|
+
quickPick.placeholder = ( localize(2318, "Type to search symbols"));
|
|
897
|
+
quickPick.title = ( localize(2319, "Go to Symbol Accessible View"));
|
|
898
898
|
const symbols = this._accessibleView.getSymbols();
|
|
899
899
|
if (!symbols) {
|
|
900
900
|
return;
|