@codingame/monaco-vscode-api 1.83.16 → 1.85.0-next.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/api.js +13 -7
- package/assets/clear.mp3 +0 -0
- package/assets/format.mp3 +0 -0
- package/assets/save.mp3 +0 -0
- package/extensions.d.ts +13 -3
- package/external/{xterm-addon-image/typings/xterm-addon-image.d.ts → @xterm/addon-image/typings/addon-image.d.ts} +1 -1
- package/external/{xterm → @xterm/xterm}/typings/xterm.d.ts +13 -1
- package/lifecycle.js +2 -2
- package/localExtensionHost.js +3 -1
- package/missing-services.js +115 -23
- package/monaco-editor-treemending.patch +6884 -18018
- package/monaco-treemending.js +2 -2
- package/package.json +7 -7
- package/service-override/tools/editor.d.ts +8 -8
- package/service-override/tools/editor.js +44 -19
- package/services.d.ts +2 -2
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/broadcast.js +6 -5
- package/vscode/src/vs/base/browser/dnd.d.ts +6 -0
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
- package/vscode/src/vs/base/browser/touch.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +22 -15
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +4 -3
- package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +34 -11
- package/vscode/src/vs/base/common/actions.d.ts +1 -15
- package/vscode/src/vs/base/common/async.d.ts +1 -31
- package/vscode/src/vs/base/common/event.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +23 -10
- package/vscode/src/vs/base/common/prefixTree.js +21 -11
- package/vscode/src/vs/base/common/product.d.ts +16 -2
- package/vscode/src/vs/base/common/resourceTree.js +135 -0
- package/vscode/src/vs/base/common/skipList.js +1 -0
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/base/common/types.d.ts +13 -1
- package/vscode/src/vs/base/common/verifier.js +62 -0
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +4 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/position.d.ts +1 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/languages.d.ts +23 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/resolverService.d.ts +11 -2
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +16 -1
- package/vscode/src/vs/platform/action/common/action.d.ts +8 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +4 -0
- package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +6 -0
- package/vscode/src/vs/platform/commands/common/commands.d.ts +13 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +9 -3
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +5 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +3 -15
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -15
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +5 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1
- package/vscode/src/vs/platform/files/common/files.d.ts +72 -8
- package/vscode/src/vs/platform/files/common/watcher.js +77 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -2
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +52 -21
- package/vscode/src/vs/platform/request/browser/requestService.js +3 -0
- package/vscode/src/vs/platform/request/common/requestIpc.js +17 -0
- package/vscode/src/vs/platform/storage/common/storage.js +2 -2
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +12 -7
- package/vscode/src/vs/platform/terminal/common/capabilities/{commandDetectionCapability.d.ts → commandDetection/terminalCommand.d.ts} +3 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +257 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +439 -354
- package/vscode/src/vs/platform/window/common/window.d.ts +9 -2
- package/vscode/src/vs/platform/window/common/window.js +6 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +2 -43
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +113 -81
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +5 -4
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +25 -3
- package/vscode/src/vs/workbench/api/common/extHostChat.js +13 -163
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +412 -0
- package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +79 -11
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -12
- package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +36 -19
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +52 -31
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +28 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +117 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +32 -4
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +85 -23
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +42 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +97 -47
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +115 -16
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +66 -36
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +6 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +182 -75
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +176 -4
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +143 -2
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +237 -0
- package/vscode/src/vs/workbench/browser/composite.d.ts +0 -4
- package/vscode/src/vs/workbench/browser/composite.js +5 -4
- package/vscode/src/vs/workbench/browser/dnd.js +72 -23
- package/vscode/src/vs/workbench/browser/labels.js +7 -3
- package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/panecomposite.js +2 -0
- package/vscode/src/vs/workbench/browser/part.js +33 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +99 -117
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +173 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +102 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +256 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +68 -35
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +35 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +348 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +43 -31
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +14 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +277 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +5 -2
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +3 -38
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +54 -52
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +25 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +258 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +157 -117
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +50 -23
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +26 -11
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +10 -6
- package/vscode/src/vs/workbench/browser/style.js +2 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +39 -2
- package/vscode/src/vs/workbench/browser/window.js +55 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +220 -40
- package/vscode/src/vs/workbench/common/activity.js +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +35 -5
- package/vscode/src/vs/workbench/common/contributions.js +4 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -4
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +22 -19
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +4 -3
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +1 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +22 -4
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +3 -3
- package/vscode/src/vs/workbench/common/editor.d.ts +60 -30
- package/vscode/src/vs/workbench/common/editor.js +11 -3
- package/vscode/src/vs/workbench/common/theme.js +2 -2
- package/vscode/src/vs/workbench/common/views.d.ts +4 -4
- package/vscode/src/vs/workbench/common/views.js +3 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +97 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +17 -99
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +103 -37
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +2 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +33 -110
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +1 -88
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +15 -16
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +3 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +10 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +114 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -1
- package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +19 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -8
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +62 -10
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +9 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +10 -1
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +7 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +64 -36
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +42 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +145 -25
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +1 -1
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +24 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +11 -6
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -2
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +31 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +61 -41
- package/vscode/src/vs/workbench/contrib/search/{browser/searchNotebookHelpers.js → common/cellSearchModel.js} +4 -63
- package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +40 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +2 -2
- package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/speech/common/speechService.js} +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +29 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +100 -79
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +5 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +143 -41
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +17 -11
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +41 -26
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +2 -8
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +115 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +74 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +64 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +9 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +8 -9
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +5 -2
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +16 -10
- package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +14 -1
- package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -7
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +9 -28
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +273 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +2 -0
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +7 -5
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +59 -37
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +193 -94
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +8 -2
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +62 -16
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -9
- package/vscode/src/vs/workbench/services/extensions/common/{extensionHostManager.d.ts → extensionHostManagers.d.ts} +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +9 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +22 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +14 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -3
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +2 -2
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +49 -18
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +29 -7
- package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +51 -28
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +5 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -2
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +40 -36
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.d.ts +0 -6
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +3 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +16 -1
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +4 -4
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +10 -51
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +32 -1
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +1 -5
- package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +4 -3
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +9 -3
- package/vscode/src/vs/workbench/services/title/browser/titleService.d.ts +18 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +18 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +16 -7
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +13 -0
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +2 -1
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +9 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
- package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
- package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
- package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
- package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
- package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
- package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
- package/external/xterm-headless/typings/xterm-headless.d.ts +0 -49
- package/vscode/src/vs/platform/backup/common/backup.d.ts +0 -14
- package/vscode/src/vs/platform/update/common/update.d.ts +0 -112
- package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +0 -62
- package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +0 -62
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +0 -56
- package/vscode/src/vs/workbench/services/files/common/files.js +0 -4
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +0 -41
- package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +0 -31
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
- /package/external/{xterm-addon-canvas/typings/xterm-addon-canvas.d.ts → @xterm/addon-canvas/typings/addon-canvas.d.ts} +0 -0
- /package/external/{xterm-addon-search/typings/xterm-addon-search.d.ts → @xterm/addon-search/typings/addon-search.d.ts} +0 -0
- /package/external/{xterm-addon-serialize/typings/xterm-addon-serialize.d.ts → @xterm/addon-serialize/typings/addon-serialize.d.ts} +0 -0
- /package/external/{xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts → @xterm/addon-unicode11/typings/addon-unicode11.d.ts} +0 -0
- /package/external/{xterm-addon-webgl/typings/xterm-addon-webgl.d.ts → @xterm/addon-webgl/typings/addon-webgl.d.ts} +0 -0
- /package/vscode/src/vs/workbench/services/title/{common → browser}/titleService.js +0 -0
|
@@ -10,6 +10,7 @@ const accessibleViewVerbosityEnabled = ( new RawContextKey('accessibleViewVerbos
|
|
|
10
10
|
const accessibleViewGoToSymbolSupported = ( new RawContextKey('accessibleViewGoToSymbolSupported', false, true));
|
|
11
11
|
const accessibleViewOnLastLine = ( new RawContextKey('accessibleViewOnLastLine', false, true));
|
|
12
12
|
const accessibleViewCurrentProviderId = ( new RawContextKey('accessibleViewCurrentProviderId', undefined, undefined));
|
|
13
|
+
const SpeechTimeoutDefault = 1200;
|
|
13
14
|
const baseProperty = {
|
|
14
15
|
type: 'boolean',
|
|
15
16
|
default: true,
|
|
@@ -28,7 +29,7 @@ const configuration = {
|
|
|
28
29
|
description: ( localizeWithPath(
|
|
29
30
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
30
31
|
'verbosity.terminal.description',
|
|
31
|
-
'Provide information about how to access the terminal accessibility help menu when the terminal is focused'
|
|
32
|
+
'Provide information about how to access the terminal accessibility help menu when the terminal is focused.'
|
|
32
33
|
)),
|
|
33
34
|
...baseProperty
|
|
34
35
|
},
|
|
@@ -36,7 +37,7 @@ const configuration = {
|
|
|
36
37
|
description: ( localizeWithPath(
|
|
37
38
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
38
39
|
'verbosity.diffEditor.description',
|
|
39
|
-
'Provide information about how to navigate changes in the diff editor when it is focused'
|
|
40
|
+
'Provide information about how to navigate changes in the diff editor when it is focused.'
|
|
40
41
|
)),
|
|
41
42
|
...baseProperty
|
|
42
43
|
},
|
|
@@ -44,7 +45,7 @@ const configuration = {
|
|
|
44
45
|
description: ( localizeWithPath(
|
|
45
46
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
46
47
|
'verbosity.chat.description',
|
|
47
|
-
'Provide information about how to access the chat help menu when the chat input is focused'
|
|
48
|
+
'Provide information about how to access the chat help menu when the chat input is focused.'
|
|
48
49
|
)),
|
|
49
50
|
...baseProperty
|
|
50
51
|
},
|
|
@@ -52,7 +53,7 @@ const configuration = {
|
|
|
52
53
|
description: ( localizeWithPath(
|
|
53
54
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
54
55
|
'verbosity.interactiveEditor.description',
|
|
55
|
-
'Provide information about how to access the inline editor chat accessibility help menu and alert with hints
|
|
56
|
+
'Provide information about how to access the inline editor chat accessibility help menu and alert with hints that describe how to use the feature when the input is focused.'
|
|
56
57
|
)),
|
|
57
58
|
...baseProperty
|
|
58
59
|
},
|
|
@@ -60,7 +61,7 @@ const configuration = {
|
|
|
60
61
|
description: ( localizeWithPath(
|
|
61
62
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
62
63
|
'verbosity.inlineCompletions.description',
|
|
63
|
-
'Provide information about how to access the inline completions hover and accessible view'
|
|
64
|
+
'Provide information about how to access the inline completions hover and accessible view.'
|
|
64
65
|
)),
|
|
65
66
|
...baseProperty
|
|
66
67
|
},
|
|
@@ -68,7 +69,7 @@ const configuration = {
|
|
|
68
69
|
description: ( localizeWithPath(
|
|
69
70
|
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
70
71
|
'verbosity.keybindingsEditor.description',
|
|
71
|
-
'Provide information about how to change a keybinding in the keybindings editor when a row is focused'
|
|
72
|
+
'Provide information about how to change a keybinding in the keybindings editor when a row is focused.'
|
|
72
73
|
)),
|
|
73
74
|
...baseProperty
|
|
74
75
|
},
|
|
@@ -111,7 +112,85 @@ const configuration = {
|
|
|
111
112
|
'Provide information about actions that can be taken in the comment widget or in a file which contains comments.'
|
|
112
113
|
)),
|
|
113
114
|
...baseProperty
|
|
114
|
-
}
|
|
115
|
+
},
|
|
116
|
+
["accessibility.alert.save" ]: {
|
|
117
|
+
'markdownDescription': ( localizeWithPath(
|
|
118
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
119
|
+
'alert.save',
|
|
120
|
+
"When in screen reader mode, alerts when a file is saved. Note that this will be ignored when {0} is enabled.",
|
|
121
|
+
'`#audioCues.save#`'
|
|
122
|
+
)),
|
|
123
|
+
'type': 'string',
|
|
124
|
+
'enum': ['userGesture', 'always', 'never'],
|
|
125
|
+
'default': 'always',
|
|
126
|
+
'enumDescriptions': [
|
|
127
|
+
( localizeWithPath(
|
|
128
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
129
|
+
'alert.save.userGesture',
|
|
130
|
+
"Alerts when a file is saved via user gesture."
|
|
131
|
+
)),
|
|
132
|
+
( localizeWithPath(
|
|
133
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
134
|
+
'alert.save.always',
|
|
135
|
+
"Alerts whenever is a file is saved, including auto save."
|
|
136
|
+
)),
|
|
137
|
+
( localizeWithPath(
|
|
138
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
139
|
+
'alert.save.never',
|
|
140
|
+
"Never alerts."
|
|
141
|
+
))
|
|
142
|
+
],
|
|
143
|
+
tags: ['accessibility']
|
|
144
|
+
},
|
|
145
|
+
["accessibility.alert.format" ]: {
|
|
146
|
+
'markdownDescription': ( localizeWithPath(
|
|
147
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
148
|
+
'alert.format',
|
|
149
|
+
"When in screen reader mode, alerts when a file or notebook cell is formatted. Note that this will be ignored when {0} is enabled.",
|
|
150
|
+
'`#audioCues.format#`'
|
|
151
|
+
)),
|
|
152
|
+
'type': 'string',
|
|
153
|
+
'enum': ['userGesture', 'always', 'never'],
|
|
154
|
+
'default': 'always',
|
|
155
|
+
'enumDescriptions': [
|
|
156
|
+
( localizeWithPath(
|
|
157
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
158
|
+
'alert.format.userGesture',
|
|
159
|
+
"Alerts when a file is formatted via user gesture."
|
|
160
|
+
)),
|
|
161
|
+
( localizeWithPath(
|
|
162
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
163
|
+
'alert.format.always',
|
|
164
|
+
"Alerts whenever is a file is formatted, including auto save, on cell execution, and more."
|
|
165
|
+
)),
|
|
166
|
+
( localizeWithPath(
|
|
167
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
168
|
+
'alert.format.never',
|
|
169
|
+
"Never alerts."
|
|
170
|
+
))
|
|
171
|
+
],
|
|
172
|
+
tags: ['accessibility']
|
|
173
|
+
},
|
|
174
|
+
["accessibility.voice.speechTimeout" ]: {
|
|
175
|
+
'markdownDescription': ( localizeWithPath(
|
|
176
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
177
|
+
'voice.speechTimeout',
|
|
178
|
+
"Define the duration for which the voice speech recognition remains active after you stop speaking. For example in a chat session the transcribed text is submitted automatically after the timeout is met. Set to `0` to disable this feature."
|
|
179
|
+
)),
|
|
180
|
+
'type': 'number',
|
|
181
|
+
'default': SpeechTimeoutDefault,
|
|
182
|
+
'minimum': 0,
|
|
183
|
+
'tags': ['accessibility']
|
|
184
|
+
},
|
|
185
|
+
["accessibility.accessibleView.closeOnKeyPress" ]: {
|
|
186
|
+
markdownDescription: ( localizeWithPath(
|
|
187
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
188
|
+
'terminal.integrated.accessibleView.closeOnKeyPress',
|
|
189
|
+
"On keypress, close the accessible view and focus the element from which it was invoked."
|
|
190
|
+
)),
|
|
191
|
+
type: 'boolean',
|
|
192
|
+
default: true
|
|
193
|
+
},
|
|
115
194
|
}
|
|
116
195
|
};
|
|
117
196
|
function registerAccessibilityConfiguration() {
|
|
@@ -144,8 +223,18 @@ function registerAccessibilityConfiguration() {
|
|
|
144
223
|
default: 0.75 ,
|
|
145
224
|
tags: ['accessibility'],
|
|
146
225
|
scope: 1 ,
|
|
226
|
+
},
|
|
227
|
+
["accessibility.hideAccessibleView" ]: {
|
|
228
|
+
description: ( localizeWithPath(
|
|
229
|
+
'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration',
|
|
230
|
+
'accessibility.hideAccessibleView',
|
|
231
|
+
"Controls whether the accessible view is hidden."
|
|
232
|
+
)),
|
|
233
|
+
type: 'boolean',
|
|
234
|
+
default: false,
|
|
235
|
+
tags: ['accessibility']
|
|
147
236
|
}
|
|
148
237
|
}
|
|
149
238
|
});
|
|
150
239
|
}
|
|
151
|
-
export { accessibilityHelpIsShown, accessibleViewCurrentProviderId, accessibleViewGoToSymbolSupported, accessibleViewIsShown, accessibleViewOnLastLine, accessibleViewSupportsNavigation, accessibleViewVerbosityEnabled, registerAccessibilityConfiguration };
|
|
240
|
+
export { SpeechTimeoutDefault, accessibilityHelpIsShown, accessibleViewCurrentProviderId, accessibleViewGoToSymbolSupported, accessibleViewIsShown, accessibleViewOnLastLine, accessibleViewSupportsNavigation, accessibleViewVerbosityEnabled, registerAccessibilityConfiguration };
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
1
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
2
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
4
|
-
import { AccessibilityHelpNLS } from 'monaco-editor/esm/vs/editor/common/standaloneStrings.js';
|
|
5
|
-
import { ToggleTabFocusModeAction } from 'monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js';
|
|
6
3
|
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
7
|
-
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
8
4
|
import { accessibleViewIsShown } from './accessibilityConfiguration.js';
|
|
9
5
|
import * as strings from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
10
|
-
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
11
6
|
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
12
|
-
import { NEW_UNTITLED_FILE_COMMAND_ID } from '../../files/browser/fileConstants.js';
|
|
13
7
|
import { ModesHoverController } from 'monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js';
|
|
14
8
|
import { IContextViewService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
15
9
|
import { EditorContextKeys } from 'monaco-editor/esm/vs/editor/common/editorContextKeys.js';
|
|
@@ -19,94 +13,11 @@ import { NotificationFocusedContext } from '../../../common/contextkeys.js';
|
|
|
19
13
|
import { IAccessibleViewService } from './accessibleView.js';
|
|
20
14
|
import { IHoverService } from '../../../services/hover/browser/hover.js';
|
|
21
15
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
22
|
-
import {
|
|
16
|
+
import { AccessibleViewAction, AccessibilityHelpAction } from './accessibleViewActions.js';
|
|
23
17
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
24
18
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
25
19
|
import { InlineCompletionsController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js';
|
|
26
|
-
import {
|
|
27
|
-
import { CommentContextKeys } from '../../comments/common/commentContextKeys.js';
|
|
28
|
-
import { CommentAccessibilityHelpNLS } from '../../comments/browser/comments.contribution.js';
|
|
29
|
-
class EditorAccessibilityHelpContribution extends Disposable {
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
this._register(AccessibilityHelpAction.addImplementation(95, 'editor', async (accessor) => {
|
|
33
|
-
const codeEditorService = accessor.get(ICodeEditorService);
|
|
34
|
-
const accessibleViewService = accessor.get(IAccessibleViewService);
|
|
35
|
-
const instantiationService = accessor.get(IInstantiationService);
|
|
36
|
-
const commandService = accessor.get(ICommandService);
|
|
37
|
-
let codeEditor = codeEditorService.getActiveCodeEditor() || codeEditorService.getFocusedCodeEditor();
|
|
38
|
-
if (!codeEditor) {
|
|
39
|
-
await commandService.executeCommand(NEW_UNTITLED_FILE_COMMAND_ID);
|
|
40
|
-
codeEditor = codeEditorService.getActiveCodeEditor();
|
|
41
|
-
}
|
|
42
|
-
accessibleViewService.show(instantiationService.createInstance(EditorAccessibilityHelpProvider, codeEditor));
|
|
43
|
-
}, EditorContextKeys.focus));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
let EditorAccessibilityHelpProvider = class EditorAccessibilityHelpProvider {
|
|
47
|
-
onClose() {
|
|
48
|
-
this._editor.focus();
|
|
49
|
-
}
|
|
50
|
-
constructor(_editor, _keybindingService, _contextKeyService) {
|
|
51
|
-
this._editor = _editor;
|
|
52
|
-
this._keybindingService = _keybindingService;
|
|
53
|
-
this._contextKeyService = _contextKeyService;
|
|
54
|
-
this.options = { type: "help" , readMoreUrl: 'https://go.microsoft.com/fwlink/?linkid=851010' };
|
|
55
|
-
this.verbositySettingKey = "accessibility.verbosity.editor" ;
|
|
56
|
-
}
|
|
57
|
-
provideContent() {
|
|
58
|
-
const options = this._editor.getOptions();
|
|
59
|
-
const content = [];
|
|
60
|
-
if (options.get(61 )) {
|
|
61
|
-
if (options.get(90 )) {
|
|
62
|
-
content.push(AccessibilityHelpNLS.readonlyDiffEditor);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
content.push(AccessibilityHelpNLS.editableDiffEditor);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
if (options.get(90 )) {
|
|
70
|
-
content.push(AccessibilityHelpNLS.readonlyEditor);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
content.push(AccessibilityHelpNLS.editableEditor);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const commentCommandInfo = getCommentCommandInfo(this._keybindingService, this._contextKeyService, this._editor);
|
|
77
|
-
if (commentCommandInfo) {
|
|
78
|
-
content.push(commentCommandInfo);
|
|
79
|
-
}
|
|
80
|
-
if (options.get(114 ).enabled) {
|
|
81
|
-
content.push(descriptionForCommand('editor.action.focusStickyScroll', AccessibilityHelpNLS.stickScrollKb, AccessibilityHelpNLS.stickScrollNoKb, this._keybindingService));
|
|
82
|
-
}
|
|
83
|
-
if (options.get(142 )) {
|
|
84
|
-
content.push(descriptionForCommand(ToggleTabFocusModeAction.ID, AccessibilityHelpNLS.tabFocusModeOnMsg, AccessibilityHelpNLS.tabFocusModeOnMsgNoKb, this._keybindingService));
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
content.push(descriptionForCommand(ToggleTabFocusModeAction.ID, AccessibilityHelpNLS.tabFocusModeOffMsg, AccessibilityHelpNLS.tabFocusModeOffMsgNoKb, this._keybindingService));
|
|
88
|
-
}
|
|
89
|
-
return content.join('\n\n');
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
EditorAccessibilityHelpProvider = ( __decorate([
|
|
93
|
-
( __param(1, IKeybindingService)),
|
|
94
|
-
( __param(2, IContextKeyService))
|
|
95
|
-
], EditorAccessibilityHelpProvider));
|
|
96
|
-
function getCommentCommandInfo(keybindingService, contextKeyService, editor) {
|
|
97
|
-
const editorContext = contextKeyService.getContext(editor.getDomNode());
|
|
98
|
-
if (editorContext.getValue(CommentContextKeys.activeEditorHasCommentingRange.key)) {
|
|
99
|
-
const commentCommandInfo = [];
|
|
100
|
-
commentCommandInfo.push(CommentAccessibilityHelpNLS.intro);
|
|
101
|
-
commentCommandInfo.push(descriptionForCommand("workbench.action.addComment" , CommentAccessibilityHelpNLS.addComment, CommentAccessibilityHelpNLS.addCommentNoKb, keybindingService));
|
|
102
|
-
commentCommandInfo.push(descriptionForCommand("editor.action.nextCommentThreadAction" , CommentAccessibilityHelpNLS.nextCommentThreadKb, CommentAccessibilityHelpNLS.nextCommentThreadNoKb, keybindingService));
|
|
103
|
-
commentCommandInfo.push(descriptionForCommand("editor.action.previousCommentThreadAction" , CommentAccessibilityHelpNLS.previousCommentThreadKb, CommentAccessibilityHelpNLS.previousCommentThreadNoKb, keybindingService));
|
|
104
|
-
commentCommandInfo.push(descriptionForCommand("editor.action.nextCommentingRange" , CommentAccessibilityHelpNLS.nextRange, CommentAccessibilityHelpNLS.nextRangeNoKb, keybindingService));
|
|
105
|
-
commentCommandInfo.push(descriptionForCommand("editor.action.previousCommentingRange" , CommentAccessibilityHelpNLS.previousRange, CommentAccessibilityHelpNLS.previousRangeNoKb, keybindingService));
|
|
106
|
-
return commentCommandInfo.join('\n');
|
|
107
|
-
}
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
20
|
+
import { IAccessibleNotificationService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
|
|
110
21
|
function descriptionForCommand(commandId, msg, noKbMsg, keybindingService) {
|
|
111
22
|
const kb = keybindingService.lookupKeybinding(commandId);
|
|
112
23
|
if (kb) {
|
|
@@ -128,6 +39,7 @@ class HoverAccessibleViewContribution extends Disposable {
|
|
|
128
39
|
}
|
|
129
40
|
this._options.language = editor?.getModel()?.getLanguageId() ?? undefined;
|
|
130
41
|
accessibleViewService.show({
|
|
42
|
+
id: "hover" ,
|
|
131
43
|
verbositySettingKey: "accessibility.verbosity.hover" ,
|
|
132
44
|
provideContent() { return editorHoverContent; },
|
|
133
45
|
onClose() {
|
|
@@ -147,6 +59,7 @@ class HoverAccessibleViewContribution extends Disposable {
|
|
|
147
59
|
return false;
|
|
148
60
|
}
|
|
149
61
|
accessibleViewService.show({
|
|
62
|
+
id: "hover" ,
|
|
150
63
|
verbositySettingKey: "accessibility.verbosity.hover" ,
|
|
151
64
|
provideContent() { return extensionHoverContent; },
|
|
152
65
|
onClose() {
|
|
@@ -169,6 +82,7 @@ class NotificationAccessibleViewContribution extends Disposable {
|
|
|
169
82
|
const accessibleViewService = accessor.get(IAccessibleViewService);
|
|
170
83
|
const listService = accessor.get(IListService);
|
|
171
84
|
const commandService = accessor.get(ICommandService);
|
|
85
|
+
const accessibleNotificationService = accessor.get(IAccessibleNotificationService);
|
|
172
86
|
function renderAccessibleView() {
|
|
173
87
|
const notification = getNotificationFromContext(listService);
|
|
174
88
|
if (!notification) {
|
|
@@ -201,6 +115,7 @@ class NotificationAccessibleViewContribution extends Disposable {
|
|
|
201
115
|
}
|
|
202
116
|
notification.onDidClose(() => accessibleViewService.next());
|
|
203
117
|
accessibleViewService.show({
|
|
118
|
+
id: "notification" ,
|
|
204
119
|
provideContent: () => {
|
|
205
120
|
return notification.source ? ( localizeWithPath(
|
|
206
121
|
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
@@ -238,7 +153,7 @@ class NotificationAccessibleViewContribution extends Disposable {
|
|
|
238
153
|
},
|
|
239
154
|
verbositySettingKey: "accessibility.verbosity.notification" ,
|
|
240
155
|
options: { type: "view" },
|
|
241
|
-
actions: getActionsFromNotification(notification)
|
|
156
|
+
actions: getActionsFromNotification(notification, accessibleNotificationService)
|
|
242
157
|
});
|
|
243
158
|
return true;
|
|
244
159
|
}
|
|
@@ -246,7 +161,7 @@ class NotificationAccessibleViewContribution extends Disposable {
|
|
|
246
161
|
}, NotificationFocusedContext));
|
|
247
162
|
}
|
|
248
163
|
}
|
|
249
|
-
function getActionsFromNotification(notification) {
|
|
164
|
+
function getActionsFromNotification(notification, accessibleNotificationService) {
|
|
250
165
|
let actions = undefined;
|
|
251
166
|
if (notification.actions) {
|
|
252
167
|
actions = [];
|
|
@@ -272,7 +187,8 @@ function getActionsFromNotification(notification) {
|
|
|
272
187
|
manageExtension.class = ThemeIcon.asClassName(Codicon.gear);
|
|
273
188
|
}
|
|
274
189
|
if (actions) {
|
|
275
|
-
actions.push({
|
|
190
|
+
actions.push({
|
|
191
|
+
id: 'clearNotification', label: ( localizeWithPath(
|
|
276
192
|
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
277
193
|
'clearNotification',
|
|
278
194
|
"Clear Notification"
|
|
@@ -280,7 +196,11 @@ function getActionsFromNotification(notification) {
|
|
|
280
196
|
'vs/workbench/contrib/accessibility/browser/accessibilityContributions',
|
|
281
197
|
'clearNotification',
|
|
282
198
|
"Clear Notification"
|
|
283
|
-
)), run: () =>
|
|
199
|
+
)), run: () => {
|
|
200
|
+
notification.close();
|
|
201
|
+
accessibleNotificationService.notify("clear" );
|
|
202
|
+
}, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)
|
|
203
|
+
});
|
|
284
204
|
}
|
|
285
205
|
return actions;
|
|
286
206
|
}
|
|
@@ -315,15 +235,13 @@ class InlineCompletionsAccessibleViewContribution extends Disposable {
|
|
|
315
235
|
return false;
|
|
316
236
|
}
|
|
317
237
|
const lineText = model.textModel.getLineContent(state.ghostText.lineNumber);
|
|
318
|
-
if (!lineText) {
|
|
319
|
-
return false;
|
|
320
|
-
}
|
|
321
238
|
const ghostText = state.ghostText.renderForScreenReader(lineText);
|
|
322
239
|
if (!ghostText) {
|
|
323
240
|
return false;
|
|
324
241
|
}
|
|
325
242
|
this._options.language = editor.getModel()?.getLanguageId() ?? undefined;
|
|
326
243
|
accessibleViewService.show({
|
|
244
|
+
id: "inlineCompletions" ,
|
|
327
245
|
verbositySettingKey: "accessibility.verbosity.inlineCompletions" ,
|
|
328
246
|
provideContent() { return lineText + ghostText; },
|
|
329
247
|
onClose() {
|
|
@@ -346,4 +264,4 @@ class InlineCompletionsAccessibleViewContribution extends Disposable {
|
|
|
346
264
|
}));
|
|
347
265
|
}
|
|
348
266
|
}
|
|
349
|
-
export {
|
|
267
|
+
export { HoverAccessibleViewContribution, InlineCompletionsAccessibleViewContribution, NotificationAccessibleViewContribution, alertFocusChange, descriptionForCommand };
|