@codingame/monaco-vscode-api 1.83.5 → 1.83.7
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/assets.js +3 -14
- package/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +26330 -3867
- package/monaco.js +4 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -8,7 +8,7 @@ import { flatten } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
|
8
8
|
import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
9
9
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
10
10
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
11
|
-
const defaultViewIcon = registerIcon('default-view-icon', Codicon.window, localizeWithPath('vs/workbench/common/views', 'defaultViewIcon', 'Default view icon.'));
|
|
11
|
+
const defaultViewIcon = registerIcon('default-view-icon', Codicon.window, ( localizeWithPath('vs/workbench/common/views', 'defaultViewIcon', 'Default view icon.')));
|
|
12
12
|
var Extensions;
|
|
13
13
|
( (function(Extensions) {
|
|
14
14
|
Extensions.ViewContainersRegistry = 'workbench.registry.view.containers';
|
|
@@ -51,7 +51,7 @@ class ViewContainersRegistryImpl extends Disposable {
|
|
|
51
51
|
const viewContainers = getOrSet(this.viewContainers, viewContainerLocation, []);
|
|
52
52
|
viewContainers.push(viewContainer);
|
|
53
53
|
if (options?.isDefault) {
|
|
54
|
-
this.defaultViewContainers.
|
|
54
|
+
this.defaultViewContainers.unshift(viewContainer);
|
|
55
55
|
}
|
|
56
56
|
this._onDidRegister.fire({ viewContainer, viewContainerLocation });
|
|
57
57
|
return viewContainer;
|
|
@@ -285,7 +285,12 @@ class ResolvableTreeItem {
|
|
|
285
285
|
}
|
|
286
286
|
class NoTreeViewError extends Error {
|
|
287
287
|
constructor(treeViewId) {
|
|
288
|
-
super(localizeWithPath(
|
|
288
|
+
super(( localizeWithPath(
|
|
289
|
+
'vs/workbench/common/views',
|
|
290
|
+
'treeView.notRegistered',
|
|
291
|
+
'No tree view with id \'{0}\' registered.',
|
|
292
|
+
treeViewId
|
|
293
|
+
)));
|
|
289
294
|
this.name = 'NoTreeViewError';
|
|
290
295
|
}
|
|
291
296
|
static is(err) {
|
|
@@ -17,51 +17,99 @@ const baseProperty = {
|
|
|
17
17
|
};
|
|
18
18
|
const configuration = {
|
|
19
19
|
id: 'accessibility',
|
|
20
|
-
title: localizeWithPath(
|
|
20
|
+
title: ( localizeWithPath(
|
|
21
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
22
|
+
'accessibilityConfigurationTitle',
|
|
23
|
+
"Accessibility"
|
|
24
|
+
)),
|
|
21
25
|
type: 'object',
|
|
22
26
|
properties: {
|
|
23
27
|
["accessibility.verbosity.terminal" ]: {
|
|
24
|
-
description: localizeWithPath(
|
|
28
|
+
description: ( localizeWithPath(
|
|
29
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
30
|
+
'verbosity.terminal.description',
|
|
31
|
+
'Provide information about how to access the terminal accessibility help menu when the terminal is focused'
|
|
32
|
+
)),
|
|
25
33
|
...baseProperty
|
|
26
34
|
},
|
|
27
35
|
["accessibility.verbosity.diffEditor" ]: {
|
|
28
|
-
description: localizeWithPath(
|
|
36
|
+
description: ( localizeWithPath(
|
|
37
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
38
|
+
'verbosity.diffEditor.description',
|
|
39
|
+
'Provide information about how to navigate changes in the diff editor when it is focused'
|
|
40
|
+
)),
|
|
29
41
|
...baseProperty
|
|
30
42
|
},
|
|
31
43
|
["accessibility.verbosity.panelChat" ]: {
|
|
32
|
-
description: localizeWithPath(
|
|
44
|
+
description: ( localizeWithPath(
|
|
45
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
46
|
+
'verbosity.chat.description',
|
|
47
|
+
'Provide information about how to access the chat help menu when the chat input is focused'
|
|
48
|
+
)),
|
|
33
49
|
...baseProperty
|
|
34
50
|
},
|
|
35
51
|
["accessibility.verbosity.inlineChat" ]: {
|
|
36
|
-
description: localizeWithPath(
|
|
52
|
+
description: ( localizeWithPath(
|
|
53
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
54
|
+
'verbosity.interactiveEditor.description',
|
|
55
|
+
'Provide information about how to access the inline editor chat accessibility help menu and alert with hints which describe how to use the feature when the input is focused'
|
|
56
|
+
)),
|
|
37
57
|
...baseProperty
|
|
38
58
|
},
|
|
39
59
|
["accessibility.verbosity.inlineCompletions" ]: {
|
|
40
|
-
description: localizeWithPath(
|
|
60
|
+
description: ( localizeWithPath(
|
|
61
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
62
|
+
'verbosity.inlineCompletions.description',
|
|
63
|
+
'Provide information about how to access the inline completions hover and accessible view'
|
|
64
|
+
)),
|
|
41
65
|
...baseProperty
|
|
42
66
|
},
|
|
43
67
|
["accessibility.verbosity.keybindingsEditor" ]: {
|
|
44
|
-
description: localizeWithPath(
|
|
68
|
+
description: ( localizeWithPath(
|
|
69
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
70
|
+
'verbosity.keybindingsEditor.description',
|
|
71
|
+
'Provide information about how to change a keybinding in the keybindings editor when a row is focused'
|
|
72
|
+
)),
|
|
45
73
|
...baseProperty
|
|
46
74
|
},
|
|
47
75
|
["accessibility.verbosity.notebook" ]: {
|
|
48
|
-
description: localizeWithPath(
|
|
76
|
+
description: ( localizeWithPath(
|
|
77
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
78
|
+
'verbosity.notebook',
|
|
79
|
+
'Provide information about how to focus the cell container or inner editor when a notebook cell is focused.'
|
|
80
|
+
)),
|
|
49
81
|
...baseProperty
|
|
50
82
|
},
|
|
51
83
|
["accessibility.verbosity.hover" ]: {
|
|
52
|
-
description: localizeWithPath(
|
|
84
|
+
description: ( localizeWithPath(
|
|
85
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
86
|
+
'verbosity.hover',
|
|
87
|
+
'Provide information about how to open the hover in an accessible view.'
|
|
88
|
+
)),
|
|
53
89
|
...baseProperty
|
|
54
90
|
},
|
|
55
91
|
["accessibility.verbosity.notification" ]: {
|
|
56
|
-
description: localizeWithPath(
|
|
92
|
+
description: ( localizeWithPath(
|
|
93
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
94
|
+
'verbosity.notification',
|
|
95
|
+
'Provide information about how to open the notification in an accessible view.'
|
|
96
|
+
)),
|
|
57
97
|
...baseProperty
|
|
58
98
|
},
|
|
59
99
|
["accessibility.verbosity.emptyEditorHint" ]: {
|
|
60
|
-
description: localizeWithPath(
|
|
100
|
+
description: ( localizeWithPath(
|
|
101
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
102
|
+
'verbosity.emptyEditorHint',
|
|
103
|
+
'Provide information about relevant actions in an empty text editor.'
|
|
104
|
+
)),
|
|
61
105
|
...baseProperty
|
|
62
106
|
},
|
|
63
107
|
["accessibility.verbosity.comments" ]: {
|
|
64
|
-
description: localizeWithPath(
|
|
108
|
+
description: ( localizeWithPath(
|
|
109
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
110
|
+
'verbosity.comments',
|
|
111
|
+
'Provide information about actions that can be taken in the comment widget or in a file which contains comments.'
|
|
112
|
+
)),
|
|
65
113
|
...baseProperty
|
|
66
114
|
}
|
|
67
115
|
}
|
|
@@ -73,14 +121,23 @@ function registerAccessibilityConfiguration() {
|
|
|
73
121
|
...workbenchConfigurationNodeBase,
|
|
74
122
|
properties: {
|
|
75
123
|
["accessibility.dimUnfocused.enabled" ]: {
|
|
76
|
-
description: localizeWithPath(
|
|
124
|
+
description: ( localizeWithPath(
|
|
125
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
126
|
+
'dimUnfocusedEnabled',
|
|
127
|
+
'Whether to dim unfocused editors and terminals, which makes it more clear where typed input will go to. This works with the majority of editors with the notable exceptions of those that utilize iframes like notebooks and extension webview editors.'
|
|
128
|
+
)),
|
|
77
129
|
type: 'boolean',
|
|
78
130
|
default: false,
|
|
79
131
|
tags: ['accessibility'],
|
|
80
132
|
scope: 1 ,
|
|
81
133
|
},
|
|
82
134
|
["accessibility.dimUnfocused.opacity" ]: {
|
|
83
|
-
markdownDescription:
|
|
135
|
+
markdownDescription: ( localizeWithPath(
|
|
136
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
137
|
+
'dimUnfocusedOpacity',
|
|
138
|
+
'The opacity fraction (0.2 to 1.0) to use for unfocused editors and terminals. This will only take effect when {0} is enabled.',
|
|
139
|
+
`\`#${"accessibility.dimUnfocused.enabled" }#\``
|
|
140
|
+
)),
|
|
84
141
|
type: 'number',
|
|
85
142
|
minimum: 0.2 ,
|
|
86
143
|
maximum: 1 ,
|
|
@@ -202,7 +202,18 @@ class NotificationAccessibleViewContribution extends Disposable {
|
|
|
202
202
|
notification.onDidClose(() => accessibleViewService.next());
|
|
203
203
|
accessibleViewService.show({
|
|
204
204
|
provideContent: () => {
|
|
205
|
-
return notification.source ?
|
|
205
|
+
return notification.source ? ( localizeWithPath(
|
|
206
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
207
|
+
'notification.accessibleViewSrc',
|
|
208
|
+
'{0} Source: {1}',
|
|
209
|
+
message,
|
|
210
|
+
notification.source
|
|
211
|
+
)) : ( localizeWithPath(
|
|
212
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
213
|
+
'notification.accessibleView',
|
|
214
|
+
'{0}',
|
|
215
|
+
message
|
|
216
|
+
));
|
|
206
217
|
},
|
|
207
218
|
onClose() {
|
|
208
219
|
focusList();
|
|
@@ -261,7 +272,15 @@ function getActionsFromNotification(notification) {
|
|
|
261
272
|
manageExtension.class = ThemeIcon.asClassName(Codicon.gear);
|
|
262
273
|
}
|
|
263
274
|
if (actions) {
|
|
264
|
-
actions.push({ id: 'clearNotification', label:
|
|
275
|
+
actions.push({ id: 'clearNotification', label: ( localizeWithPath(
|
|
276
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
277
|
+
'clearNotification',
|
|
278
|
+
"Clear Notification"
|
|
279
|
+
)), tooltip: ( localizeWithPath(
|
|
280
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
281
|
+
'clearNotification',
|
|
282
|
+
"Clear Notification"
|
|
283
|
+
)), run: () => notification.close(), enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll) });
|
|
265
284
|
}
|
|
266
285
|
return actions;
|
|
267
286
|
}
|
|
@@ -199,7 +199,19 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
if (label) {
|
|
202
|
-
symbols.push({ markdownToParse: label, label:
|
|
202
|
+
symbols.push({ markdownToParse: label, label: ( localizeWithPath(
|
|
203
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
204
|
+
'symbolLabel',
|
|
205
|
+
"({0}) {1}",
|
|
206
|
+
token.type,
|
|
207
|
+
label
|
|
208
|
+
)), ariaLabel: ( localizeWithPath(
|
|
209
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
210
|
+
'symbolLabelAria',
|
|
211
|
+
"({0}) {1}",
|
|
212
|
+
token.type,
|
|
213
|
+
label
|
|
214
|
+
)), firstListItem });
|
|
203
215
|
firstListItem = undefined;
|
|
204
216
|
}
|
|
205
217
|
}
|
|
@@ -230,7 +242,12 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
230
242
|
return;
|
|
231
243
|
}
|
|
232
244
|
this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
|
|
233
|
-
alert(localizeWithPath(
|
|
245
|
+
alert(( localizeWithPath(
|
|
246
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
247
|
+
'disableAccessibilityHelp',
|
|
248
|
+
'{0} accessibility verbosity is now disabled',
|
|
249
|
+
this._currentProvider.verbositySettingKey
|
|
250
|
+
)));
|
|
234
251
|
}
|
|
235
252
|
_updateContextKeys(provider, shown) {
|
|
236
253
|
if (provider.options.type === "help" ) {
|
|
@@ -257,7 +274,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
257
274
|
this._accessibleViewCurrentProviderId.set(provider.verbositySettingKey.replaceAll('accessibility.verbosity.', ''));
|
|
258
275
|
}
|
|
259
276
|
const value = this._configurationService.getValue(provider.verbositySettingKey);
|
|
260
|
-
const readMoreLink = provider.options.readMoreUrl ?
|
|
277
|
+
const readMoreLink = provider.options.readMoreUrl ? ( localizeWithPath(
|
|
278
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
279
|
+
"openDoc",
|
|
280
|
+
"\n\nOpen a browser window with more information related to accessibility (H)."
|
|
281
|
+
)) : '';
|
|
261
282
|
let disableHelpHint = '';
|
|
262
283
|
if (provider.options.type === "help" && !!value) {
|
|
263
284
|
disableHelpHint = this._getDisableVerbosityHint(provider.verbositySettingKey);
|
|
@@ -278,7 +299,11 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
278
299
|
}
|
|
279
300
|
}
|
|
280
301
|
const verbose = this._configurationService.getValue(provider.verbositySettingKey);
|
|
281
|
-
const exitThisDialogHint = verbose && !provider.options.positionBottom ?
|
|
302
|
+
const exitThisDialogHint = verbose && !provider.options.positionBottom ? ( localizeWithPath(
|
|
303
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
304
|
+
'exit',
|
|
305
|
+
'\n\nExit this dialog (Escape).'
|
|
306
|
+
)) : '';
|
|
282
307
|
this._currentContent = message + provider.provideContent() + readMoreLink + disableHelpHint + exitThisDialogHint;
|
|
283
308
|
this._updateContextKeys(provider, true);
|
|
284
309
|
this._getTextModel(( URI.from(
|
|
@@ -298,15 +323,41 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
298
323
|
const verbose = this._configurationService.getValue(provider.verbositySettingKey);
|
|
299
324
|
const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || this._currentProvider?.actions;
|
|
300
325
|
if (verbose && !showAccessibleViewHelp && hasActions) {
|
|
301
|
-
actionsHint = provider.options.positionBottom ?
|
|
326
|
+
actionsHint = provider.options.positionBottom ? ( localizeWithPath(
|
|
327
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
328
|
+
'ariaAccessibleViewActionsBottom',
|
|
329
|
+
'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
|
|
330
|
+
)) : ( localizeWithPath(
|
|
331
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
332
|
+
'ariaAccessibleViewActions',
|
|
333
|
+
'Explore actions such as disabling this hint (Shift+Tab).'
|
|
334
|
+
));
|
|
302
335
|
}
|
|
303
|
-
let ariaLabel = provider.options.type === "help" ?
|
|
336
|
+
let ariaLabel = provider.options.type === "help" ? ( localizeWithPath(
|
|
337
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
338
|
+
'accessibility-help',
|
|
339
|
+
"Accessibility Help"
|
|
340
|
+
)) : ( localizeWithPath(
|
|
341
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
342
|
+
'accessible-view',
|
|
343
|
+
"Accessible View"
|
|
344
|
+
));
|
|
304
345
|
this._title.textContent = ariaLabel;
|
|
305
346
|
if (actionsHint && provider.options.type === "view" ) {
|
|
306
|
-
ariaLabel = localizeWithPath(
|
|
347
|
+
ariaLabel = ( localizeWithPath(
|
|
348
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
349
|
+
'accessible-view-hint',
|
|
350
|
+
"Accessible View, {0}",
|
|
351
|
+
actionsHint
|
|
352
|
+
));
|
|
307
353
|
}
|
|
308
354
|
else if (actionsHint) {
|
|
309
|
-
ariaLabel = localizeWithPath(
|
|
355
|
+
ariaLabel = ( localizeWithPath(
|
|
356
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
357
|
+
'accessibility-help-hint',
|
|
358
|
+
"Accessibility Help, {0}",
|
|
359
|
+
actionsHint
|
|
360
|
+
));
|
|
310
361
|
}
|
|
311
362
|
this._editorWidget.updateOptions({ ariaLabel });
|
|
312
363
|
this._editorWidget.focus();
|
|
@@ -356,7 +407,15 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
356
407
|
return disposableStore;
|
|
357
408
|
}
|
|
358
409
|
_updateToolbar(providedActions, type) {
|
|
359
|
-
this._toolbar.setAriaLabel(type === "help" ?
|
|
410
|
+
this._toolbar.setAriaLabel(type === "help" ? ( localizeWithPath(
|
|
411
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
412
|
+
'accessibleHelpToolbar',
|
|
413
|
+
'Accessibility Help'
|
|
414
|
+
)) : ( localizeWithPath(
|
|
415
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
416
|
+
'accessibleViewToolbar',
|
|
417
|
+
"Accessible View"
|
|
418
|
+
)));
|
|
360
419
|
const menuActions = [];
|
|
361
420
|
const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
|
|
362
421
|
createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
|
|
@@ -410,8 +469,16 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
410
469
|
_getAccessibleViewHelpDialogContent(providerHasSymbols) {
|
|
411
470
|
const navigationHint = this._getNavigationHint();
|
|
412
471
|
const goToSymbolHint = this._getGoToSymbolHint(providerHasSymbols);
|
|
413
|
-
const toolbarHint =
|
|
414
|
-
|
|
472
|
+
const toolbarHint = ( localizeWithPath(
|
|
473
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
474
|
+
'toolbar',
|
|
475
|
+
"Navigate to the toolbar (Shift+Tab))."
|
|
476
|
+
));
|
|
477
|
+
let hint = ( localizeWithPath(
|
|
478
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
479
|
+
'intro',
|
|
480
|
+
"In the accessible view, you can:\n"
|
|
481
|
+
));
|
|
415
482
|
if (navigationHint) {
|
|
416
483
|
hint += ' - ' + navigationHint + '\n';
|
|
417
484
|
}
|
|
@@ -428,10 +495,20 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
428
495
|
const nextKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewNext" )?.getAriaLabel();
|
|
429
496
|
const previousKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewPrevious" )?.getAriaLabel();
|
|
430
497
|
if (nextKeybinding && previousKeybinding) {
|
|
431
|
-
hint =
|
|
498
|
+
hint = ( localizeWithPath(
|
|
499
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
500
|
+
'accessibleViewNextPreviousHint',
|
|
501
|
+
"Show the next ({0}) or previous ({1}) item.",
|
|
502
|
+
nextKeybinding,
|
|
503
|
+
previousKeybinding
|
|
504
|
+
));
|
|
432
505
|
}
|
|
433
506
|
else {
|
|
434
|
-
hint = localizeWithPath(
|
|
507
|
+
hint = ( localizeWithPath(
|
|
508
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
509
|
+
'chatAccessibleViewNextPreviousHintNoKb',
|
|
510
|
+
"Show the next or previous item by configuring keybindings for the Show Next & Previous in Accessible View commands."
|
|
511
|
+
));
|
|
435
512
|
}
|
|
436
513
|
return hint;
|
|
437
514
|
}
|
|
@@ -442,10 +519,19 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
442
519
|
let hint = '';
|
|
443
520
|
const disableKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewDisableHint" , this._contextKeyService)?.getAriaLabel();
|
|
444
521
|
if (disableKeybinding) {
|
|
445
|
-
hint =
|
|
522
|
+
hint = ( localizeWithPath(
|
|
523
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
524
|
+
'acessibleViewDisableHint',
|
|
525
|
+
"\n\nDisable accessibility verbosity for this feature ({0}).",
|
|
526
|
+
disableKeybinding
|
|
527
|
+
));
|
|
446
528
|
}
|
|
447
529
|
else {
|
|
448
|
-
hint = localizeWithPath(
|
|
530
|
+
hint = ( localizeWithPath(
|
|
531
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
532
|
+
'accessibleViewDisableHintNoKb',
|
|
533
|
+
"\n\nAdd a keybinding for the command Disable Accessible View Hint, which disables accessibility verbosity for this feature.s"
|
|
534
|
+
));
|
|
449
535
|
}
|
|
450
536
|
return hint;
|
|
451
537
|
}
|
|
@@ -454,10 +540,19 @@ let AccessibleView = class AccessibleView extends Disposable {
|
|
|
454
540
|
let goToSymbolHint = '';
|
|
455
541
|
if (providerHasSymbols) {
|
|
456
542
|
if (goToSymbolKb) {
|
|
457
|
-
goToSymbolHint =
|
|
543
|
+
goToSymbolHint = ( localizeWithPath(
|
|
544
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
545
|
+
'goToSymbolHint',
|
|
546
|
+
'Go to a symbol ({0})',
|
|
547
|
+
goToSymbolKb
|
|
548
|
+
));
|
|
458
549
|
}
|
|
459
550
|
else {
|
|
460
|
-
goToSymbolHint = localizeWithPath(
|
|
551
|
+
goToSymbolHint = ( localizeWithPath(
|
|
552
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
553
|
+
'goToSymbolHintNoKb',
|
|
554
|
+
'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View'
|
|
555
|
+
));
|
|
461
556
|
}
|
|
462
557
|
}
|
|
463
558
|
return goToSymbolHint;
|
|
@@ -504,10 +599,19 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
|
|
|
504
599
|
const keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleView" )?.getAriaLabel();
|
|
505
600
|
let hint = null;
|
|
506
601
|
if (keybinding) {
|
|
507
|
-
hint = localizeWithPath(
|
|
602
|
+
hint = ( localizeWithPath(
|
|
603
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
604
|
+
'acessibleViewHint',
|
|
605
|
+
"Inspect this in the accessible view with {0}",
|
|
606
|
+
keybinding
|
|
607
|
+
));
|
|
508
608
|
}
|
|
509
609
|
else {
|
|
510
|
-
hint = localizeWithPath(
|
|
610
|
+
hint = ( localizeWithPath(
|
|
611
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
612
|
+
'acessibleViewHintNoKbEither',
|
|
613
|
+
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
614
|
+
));
|
|
511
615
|
}
|
|
512
616
|
return hint;
|
|
513
617
|
}
|
|
@@ -544,8 +648,16 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
|
|
|
544
648
|
}
|
|
545
649
|
show(provider) {
|
|
546
650
|
const quickPick = this._quickInputService.createQuickPick();
|
|
547
|
-
quickPick.placeholder = localizeWithPath(
|
|
548
|
-
|
|
651
|
+
quickPick.placeholder = ( localizeWithPath(
|
|
652
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
653
|
+
'accessibleViewSymbolQuickPickPlaceholder',
|
|
654
|
+
"Type to search symbols"
|
|
655
|
+
));
|
|
656
|
+
quickPick.title = ( localizeWithPath(
|
|
657
|
+
'vs/workbench/contrib/accessibility/browser/accessibleView',
|
|
658
|
+
'accessibleViewSymbolQuickPickTitle',
|
|
659
|
+
"Go to Symbol Accessible View"
|
|
660
|
+
));
|
|
549
661
|
const symbols = this._accessibleView.getSymbols();
|
|
550
662
|
if (!symbols) {
|
|
551
663
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
2
2
|
import { MultiCommand } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
3
3
|
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
|
-
import { registerAction2,
|
|
4
|
+
import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
5
5
|
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
6
6
|
import { accessibleViewIsShown, accessibleViewSupportsNavigation, accessibilityHelpIsShown, accessibleViewGoToSymbolSupported, accessibleViewVerbosityEnabled, accessibleViewCurrentProviderId } from './accessibilityConfiguration.js';
|
|
7
7
|
import { IAccessibleViewService } from './accessibleView.js';
|
|
@@ -35,7 +35,11 @@ class AccessibleViewNextAction extends Action2 {
|
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
icon: Codicon.arrowDown,
|
|
38
|
-
title: localizeWithPath(
|
|
38
|
+
title: ( localizeWithPath(
|
|
39
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
40
|
+
'editor.action.accessibleViewNext',
|
|
41
|
+
"Show Next in Accessible View"
|
|
42
|
+
))
|
|
39
43
|
});
|
|
40
44
|
}
|
|
41
45
|
run(accessor) {
|
|
@@ -60,7 +64,11 @@ class AccessibleViewPreviousAction extends Action2 {
|
|
|
60
64
|
when: ( ContextKeyExpr.and(accessibleViewIsShown, accessibleViewSupportsNavigation)),
|
|
61
65
|
}
|
|
62
66
|
],
|
|
63
|
-
title: localizeWithPath(
|
|
67
|
+
title: ( localizeWithPath(
|
|
68
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
69
|
+
'editor.action.accessibleViewPrevious',
|
|
70
|
+
"Show Previous in Accessible View"
|
|
71
|
+
))
|
|
64
72
|
});
|
|
65
73
|
}
|
|
66
74
|
run(accessor) {
|
|
@@ -86,7 +94,11 @@ class AccessibleViewGoToSymbolAction extends Action2 {
|
|
|
86
94
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewGoToSymbolSupported)),
|
|
87
95
|
}
|
|
88
96
|
],
|
|
89
|
-
title: localizeWithPath(
|
|
97
|
+
title: ( localizeWithPath(
|
|
98
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
99
|
+
'editor.action.accessibleViewGoToSymbol',
|
|
100
|
+
"Go To Symbol in Accessible View"
|
|
101
|
+
))
|
|
90
102
|
});
|
|
91
103
|
}
|
|
92
104
|
run(accessor) {
|
|
@@ -112,7 +124,11 @@ const AccessibilityHelpAction = registerCommand(( new MultiCommand({
|
|
|
112
124
|
menuOpts: [{
|
|
113
125
|
menuId: MenuId.CommandPalette,
|
|
114
126
|
group: '',
|
|
115
|
-
title: localizeWithPath(
|
|
127
|
+
title: ( localizeWithPath(
|
|
128
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
129
|
+
'editor.action.accessibilityHelp',
|
|
130
|
+
"Open Accessibility Help"
|
|
131
|
+
)),
|
|
116
132
|
order: 1
|
|
117
133
|
}],
|
|
118
134
|
})));
|
|
@@ -130,7 +146,11 @@ const AccessibleViewAction = registerCommand(( new MultiCommand({
|
|
|
130
146
|
menuOpts: [{
|
|
131
147
|
menuId: MenuId.CommandPalette,
|
|
132
148
|
group: '',
|
|
133
|
-
title: localizeWithPath(
|
|
149
|
+
title: ( localizeWithPath(
|
|
150
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
151
|
+
'editor.action.accessibleView',
|
|
152
|
+
"Open Accessible View"
|
|
153
|
+
)),
|
|
134
154
|
order: 1
|
|
135
155
|
}],
|
|
136
156
|
})));
|
|
@@ -152,7 +172,11 @@ class AccessibleViewDisableHintAction extends Action2 {
|
|
|
152
172
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewVerbosityEnabled)),
|
|
153
173
|
}
|
|
154
174
|
],
|
|
155
|
-
title: localizeWithPath(
|
|
175
|
+
title: ( localizeWithPath(
|
|
176
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
177
|
+
'editor.action.accessibleViewDisableHint',
|
|
178
|
+
"Disable Accessible View Hint"
|
|
179
|
+
))
|
|
156
180
|
});
|
|
157
181
|
}
|
|
158
182
|
run(accessor) {
|
|
@@ -186,7 +210,11 @@ class AccessibleViewAcceptInlineCompletionAction extends Action2 {
|
|
|
186
210
|
))))
|
|
187
211
|
}
|
|
188
212
|
],
|
|
189
|
-
title: localizeWithPath(
|
|
213
|
+
title: ( localizeWithPath(
|
|
214
|
+
'vs/workbench/contrib/accessibility/browser/accessibleViewActions',
|
|
215
|
+
'editor.action.accessibleViewAcceptInlineCompletionAction',
|
|
216
|
+
"Accept Inline Completion"
|
|
217
|
+
))
|
|
190
218
|
});
|
|
191
219
|
}
|
|
192
220
|
async run(accessor) {
|