@codingame/monaco-vscode-accessibility-service-override 10.1.2 → 10.1.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": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.4",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -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(
|
|
348
|
-
quickPick.placeholder = ( localize(
|
|
347
|
+
quickPick.title = ( localize(2311, 'Configure keybindings'));
|
|
348
|
+
quickPick.placeholder = ( localize(2312, '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(
|
|
388
|
+
symbols.push({ markdownToParse: label, label: ( localize(2313, "({0}) {1}", token.type, label)), ariaLabel: ( localize(2314, "({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
|
-
|
|
420
|
+
2315,
|
|
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
|
-
|
|
499
|
+
2316,
|
|
500
500
|
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
501
|
-
)) : ( localize(
|
|
501
|
+
)) : ( localize(2317, 'Explore actions such as disabling this hint (Shift+Tab).'));
|
|
502
502
|
}
|
|
503
|
-
let ariaLabel = provider.options.type === "help" ? ( localize(
|
|
503
|
+
let ariaLabel = provider.options.type === "help" ? ( localize(2318, "Accessibility Help")) : ( localize(2319, "Accessible View"));
|
|
504
504
|
this._title.textContent = ariaLabel;
|
|
505
505
|
if (actionsHint && provider.options.type === "view" ) {
|
|
506
|
-
ariaLabel = ( localize(
|
|
506
|
+
ariaLabel = ( localize(2320, "Accessible View, {0}", actionsHint));
|
|
507
507
|
}
|
|
508
508
|
else if (actionsHint) {
|
|
509
|
-
ariaLabel = ( localize(
|
|
509
|
+
ariaLabel = ( localize(2321, "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(
|
|
577
|
+
this._toolbar.setAriaLabel(type === "help" ? ( localize(2322, 'Accessibility Help')) : ( localize(2323, "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(
|
|
680
|
+
const toolbarHint = ( localize(2324, "Navigate to the toolbar (Shift+Tab)."));
|
|
681
681
|
const chatHints = this._getChatHints();
|
|
682
|
-
let hint = ( localize(
|
|
682
|
+
let hint = ( localize(2325, "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
|
-
|
|
702
|
+
2326,
|
|
703
703
|
" - Insert the code block at the cursor{0}.",
|
|
704
704
|
'<keybinding:workbench.action.chat.insertCodeBlock>'
|
|
705
705
|
)),
|
|
706
706
|
( localize(
|
|
707
|
-
|
|
707
|
+
2327,
|
|
708
708
|
" - Insert the code block into a new file{0}.",
|
|
709
709
|
'<keybinding:workbench.action.chat.insertIntoNewFile>'
|
|
710
710
|
)),
|
|
711
711
|
( localize(
|
|
712
|
-
|
|
712
|
+
2328,
|
|
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
|
-
|
|
719
|
+
2329,
|
|
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
|
-
|
|
728
|
+
2330,
|
|
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
|
-
|
|
740
|
+
2331,
|
|
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
|
-
|
|
749
|
+
2332,
|
|
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
|
-
|
|
758
|
+
2333,
|
|
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(
|
|
780
|
+
return this._verbosityEnabled() && !provider.options.position ? ( localize(2334, '\nExit this dialog (Escape).')) : '';
|
|
781
781
|
}
|
|
782
782
|
_readMoreHint(provider) {
|
|
783
783
|
return provider.options.readMoreUrl ? ( localize(
|
|
784
|
-
|
|
784
|
+
2335,
|
|
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(
|
|
844
|
+
hint = ( localize(2336, "Inspect this in the accessible view with {0}", keybinding));
|
|
845
845
|
}
|
|
846
846
|
else {
|
|
847
847
|
hint = ( localize(
|
|
848
|
-
|
|
848
|
+
2337,
|
|
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(
|
|
891
|
-
quickPick.title = ( localize(
|
|
890
|
+
quickPick.placeholder = ( localize(2338, "Type to search symbols"));
|
|
891
|
+
quickPick.title = ( localize(2339, "Go to Symbol Accessible View"));
|
|
892
892
|
const symbols = this._accessibleView.getSymbols();
|
|
893
893
|
if (!symbols) {
|
|
894
894
|
return;
|