@codingame/monaco-vscode-api 1.83.15 → 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/README.md +430 -0
- package/api.js +13 -7
- package/assets/clear.mp3 +0 -0
- package/assets/format.mp3 +0 -0
- package/assets/save.mp3 +0 -0
- package/contributions.js +3 -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 +6 -3
- package/missing-services.js +170 -22
- 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 +140 -0
- 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/browser/floatingMenu.js +26 -2
- 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/bufferMarkCapability.js +41 -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 +651 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +29 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +48 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +94 -0
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +37 -0
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +16 -0
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +319 -0
- 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/suggestEnabledInput/suggestEnabledInput.js +91 -1
- 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 +423 -0
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +82 -0
- 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/contrib/speech/common/speechService.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +92 -0
- 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/terminalExtensions.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +64 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +540 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +104 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +518 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
- 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 +814 -0
- 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/getComputedState.js +101 -0
- package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +30 -0
- package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +36 -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/testExplorerFilterState.js +116 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +172 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +384 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +156 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +156 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +75 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +72 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +188 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +102 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +29 -0
- package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/testing/common/testingPeekOpener.js} +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +47 -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/media/suggest.css.js +4 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- 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
|
@@ -3,12 +3,11 @@ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
|
3
3
|
import { Action, Separator } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
4
4
|
import { addDisposableListener, EventType, append, $, hide, clearNode, show, EventHelper, getDomNodePagePosition } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
5
5
|
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
6
|
-
import { MutableDisposable, DisposableStore, toDisposable
|
|
6
|
+
import { MutableDisposable, DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
7
7
|
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
8
8
|
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
9
|
-
import {
|
|
9
|
+
import { ProgressBadge, NumberBadge } from '../../services/activity/common/activity.js';
|
|
10
10
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
11
|
-
import { contrastBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
12
11
|
import { DelayedDragHandler } from 'monaco-editor/esm/vs/base/browser/dnd.js';
|
|
13
12
|
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
14
13
|
import { Event, Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
@@ -19,23 +18,31 @@ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
|
19
18
|
import { IHoverService } from '../../services/hover/browser/hover.js';
|
|
20
19
|
import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
21
20
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
import { badgeForeground, badgeBackground, contrastBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
22
|
+
var CompoisteBarActionViewItem_1, CompositeActionViewItem_1;
|
|
23
|
+
class CompositeBarAction extends Action {
|
|
24
|
+
constructor(item) {
|
|
25
|
+
super(item.id, item.name, item.classNames?.join(' '), true);
|
|
26
|
+
this.item = item;
|
|
27
|
+
this._onDidChangeCompositeBarActionItem = this._register(( new Emitter()));
|
|
28
|
+
this.onDidChangeCompositeBarActionItem = this._onDidChangeCompositeBarActionItem.event;
|
|
27
29
|
this._onDidChangeActivity = this._register(( new Emitter()));
|
|
28
30
|
this.onDidChangeActivity = this._onDidChangeActivity.event;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
}
|
|
32
|
+
get compositeBarActionItem() {
|
|
33
|
+
return this.item;
|
|
34
|
+
}
|
|
35
|
+
set compositeBarActionItem(item) {
|
|
36
|
+
this._label = item.name;
|
|
37
|
+
this.item = item;
|
|
38
|
+
this._onDidChangeCompositeBarActionItem.fire(this);
|
|
31
39
|
}
|
|
32
40
|
get activity() {
|
|
33
41
|
return this._activity;
|
|
34
42
|
}
|
|
35
43
|
set activity(activity) {
|
|
36
|
-
this._label = activity.name;
|
|
37
44
|
this._activity = activity;
|
|
38
|
-
this._onDidChangeActivity.fire(
|
|
45
|
+
this._onDidChangeActivity.fire(activity);
|
|
39
46
|
}
|
|
40
47
|
activate() {
|
|
41
48
|
if (!this.checked) {
|
|
@@ -47,25 +54,9 @@ class ActivityAction extends Action {
|
|
|
47
54
|
this._setChecked(false);
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
|
-
getBadge() {
|
|
51
|
-
return this.badge;
|
|
52
|
-
}
|
|
53
|
-
getClass() {
|
|
54
|
-
return this.clazz;
|
|
55
|
-
}
|
|
56
|
-
setBadge(badge, clazz) {
|
|
57
|
-
this.badge = badge;
|
|
58
|
-
this.clazz = clazz;
|
|
59
|
-
this._onDidChangeBadge.fire(this);
|
|
60
|
-
}
|
|
61
|
-
dispose() {
|
|
62
|
-
this._onDidChangeActivity.dispose();
|
|
63
|
-
this._onDidChangeBadge.dispose();
|
|
64
|
-
super.dispose();
|
|
65
|
-
}
|
|
66
57
|
}
|
|
67
|
-
let
|
|
68
|
-
static {
|
|
58
|
+
let CompoisteBarActionViewItem = class CompoisteBarActionViewItem extends BaseActionViewItem {
|
|
59
|
+
static { CompoisteBarActionViewItem_1 = this; }
|
|
69
60
|
static { this.hoverLeaveTime = 0; }
|
|
70
61
|
constructor(action, options, badgesEnabled, themeService, hoverService, configurationService, keybindingService) {
|
|
71
62
|
super(null, action, options);
|
|
@@ -79,13 +70,13 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
79
70
|
this.showHoverScheduler = ( new RunOnceScheduler(() => this.showHover(), 0));
|
|
80
71
|
this.options = options;
|
|
81
72
|
this._register(this.themeService.onDidColorThemeChange(this.onThemeChange, this));
|
|
82
|
-
this._register(action.
|
|
73
|
+
this._register(action.onDidChangeCompositeBarActionItem(() => this.update()));
|
|
83
74
|
this._register(Event.filter(keybindingService.onDidUpdateKeybindings, () => this.keybindingLabel !== this.computeKeybindingLabel())(() => this.updateTitle()));
|
|
84
|
-
this._register(action.
|
|
75
|
+
this._register(action.onDidChangeActivity(() => this.updateActivity()));
|
|
85
76
|
this._register(toDisposable(() => this.showHoverScheduler.cancel()));
|
|
86
77
|
}
|
|
87
|
-
get
|
|
88
|
-
return this._action.
|
|
78
|
+
get compositeBarActionItem() {
|
|
79
|
+
return this._action.compositeBarActionItem;
|
|
89
80
|
}
|
|
90
81
|
updateStyles() {
|
|
91
82
|
const theme = this.themeService.getColorTheme();
|
|
@@ -93,7 +84,7 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
93
84
|
if (this.label) {
|
|
94
85
|
if (this.options.icon) {
|
|
95
86
|
const foreground = this._action.checked ? colors.activeForegroundColor : colors.inactiveForegroundColor;
|
|
96
|
-
if (this.
|
|
87
|
+
if (this.compositeBarActionItem.iconUrl) {
|
|
97
88
|
this.label.style.backgroundColor = foreground ? ( foreground.toString()) : '';
|
|
98
89
|
this.label.style.color = '';
|
|
99
90
|
}
|
|
@@ -111,12 +102,12 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
111
102
|
this.container.style.setProperty('--insert-border-color', colors.dragAndDropBorder ? ( colors.dragAndDropBorder.toString()) : '');
|
|
112
103
|
}
|
|
113
104
|
if (this.badgeContent) {
|
|
114
|
-
const
|
|
115
|
-
const
|
|
105
|
+
const badgeFg = colors.badgeForeground ?? theme.getColor(badgeForeground);
|
|
106
|
+
const badgeBg = colors.badgeBackground ?? theme.getColor(badgeBackground);
|
|
116
107
|
const contrastBorderColor = theme.getColor(contrastBorder);
|
|
117
|
-
this.badgeContent.style.color =
|
|
118
|
-
this.badgeContent.style.backgroundColor =
|
|
119
|
-
this.badgeContent.style.borderStyle = contrastBorderColor ? 'solid' : '';
|
|
108
|
+
this.badgeContent.style.color = badgeFg ? ( badgeFg.toString()) : '';
|
|
109
|
+
this.badgeContent.style.backgroundColor = badgeBg ? ( badgeBg.toString()) : '';
|
|
110
|
+
this.badgeContent.style.borderStyle = contrastBorderColor && !this.options.compact ? 'solid' : '';
|
|
120
111
|
this.badgeContent.style.borderWidth = contrastBorderColor ? '1px' : '';
|
|
121
112
|
this.badgeContent.style.borderColor = contrastBorderColor ? ( contrastBorderColor.toString()) : '';
|
|
122
113
|
}
|
|
@@ -150,35 +141,48 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
150
141
|
this.badgeContent = append(this.badge, $('.badge-content'));
|
|
151
142
|
append(container, $('.active-item-indicator'));
|
|
152
143
|
hide(this.badge);
|
|
153
|
-
this.
|
|
144
|
+
this.update();
|
|
154
145
|
this.updateStyles();
|
|
155
146
|
this.updateHover();
|
|
156
147
|
}
|
|
157
148
|
onThemeChange(theme) {
|
|
158
149
|
this.updateStyles();
|
|
159
150
|
}
|
|
160
|
-
|
|
151
|
+
update() {
|
|
161
152
|
this.updateLabel();
|
|
153
|
+
this.updateActivity();
|
|
162
154
|
this.updateTitle();
|
|
163
|
-
this.updateBadge();
|
|
164
155
|
this.updateStyles();
|
|
165
156
|
}
|
|
166
|
-
|
|
157
|
+
updateActivity() {
|
|
167
158
|
const action = this.action;
|
|
168
|
-
if (!this.badge || !this.badgeContent || !(action instanceof
|
|
159
|
+
if (!this.badge || !this.badgeContent || !(action instanceof CompositeBarAction)) {
|
|
169
160
|
return;
|
|
170
161
|
}
|
|
171
|
-
const
|
|
172
|
-
const clazz = action.getClass();
|
|
162
|
+
const activity = action.activity;
|
|
173
163
|
this.badgeDisposable.clear();
|
|
174
164
|
clearNode(this.badgeContent);
|
|
175
165
|
hide(this.badge);
|
|
176
|
-
const shouldRenderBadges = this.badgesEnabled(this.
|
|
177
|
-
if (
|
|
178
|
-
|
|
166
|
+
const shouldRenderBadges = this.badgesEnabled(this.compositeBarActionItem.id);
|
|
167
|
+
if (activity && shouldRenderBadges) {
|
|
168
|
+
const { badge } = activity;
|
|
169
|
+
const classes = [];
|
|
170
|
+
if (this.options.compact) {
|
|
171
|
+
classes.push('compact');
|
|
172
|
+
}
|
|
173
|
+
if (badge instanceof ProgressBadge) {
|
|
174
|
+
show(this.badge);
|
|
175
|
+
classes.push('progress-badge');
|
|
176
|
+
}
|
|
177
|
+
else if (badge instanceof NumberBadge) {
|
|
179
178
|
if (badge.number) {
|
|
180
179
|
let number = ( badge.number.toString());
|
|
181
|
-
if (
|
|
180
|
+
if (this.options.compact) {
|
|
181
|
+
if (badge.number > 99) {
|
|
182
|
+
number = '';
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
else if (badge.number > 999) {
|
|
182
186
|
const noOfThousands = badge.number / 1000;
|
|
183
187
|
const floor = Math.floor(noOfThousands);
|
|
184
188
|
if (noOfThousands > floor) {
|
|
@@ -192,30 +196,17 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
192
196
|
show(this.badge);
|
|
193
197
|
}
|
|
194
198
|
}
|
|
195
|
-
|
|
196
|
-
this.
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
else if (badge instanceof IconBadge) {
|
|
200
|
-
const clazzList = ThemeIcon.asClassNameArray(badge.icon);
|
|
201
|
-
this.badgeContent.classList.add(...clazzList);
|
|
202
|
-
show(this.badge);
|
|
203
|
-
}
|
|
204
|
-
else if (badge instanceof ProgressBadge) {
|
|
205
|
-
show(this.badge);
|
|
206
|
-
}
|
|
207
|
-
if (clazz) {
|
|
208
|
-
const classNames = clazz.split(' ');
|
|
209
|
-
this.badge.classList.add(...classNames);
|
|
210
|
-
this.badgeDisposable.value = toDisposable(() => this.badge.classList.remove(...classNames));
|
|
199
|
+
if (classes.length) {
|
|
200
|
+
this.badge.classList.add(...classes);
|
|
201
|
+
this.badgeDisposable.value = toDisposable(() => this.badge.classList.remove(...classes));
|
|
211
202
|
}
|
|
212
203
|
}
|
|
213
204
|
this.updateTitle();
|
|
214
205
|
}
|
|
215
206
|
updateLabel() {
|
|
216
207
|
this.label.className = 'action-label';
|
|
217
|
-
if (this.
|
|
218
|
-
this.label.classList.add(...this.
|
|
208
|
+
if (this.compositeBarActionItem.classNames) {
|
|
209
|
+
this.label.classList.add(...this.compositeBarActionItem.classNames);
|
|
219
210
|
}
|
|
220
211
|
if (!this.options.icon) {
|
|
221
212
|
this.label.textContent = this.action.label;
|
|
@@ -237,10 +228,10 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
237
228
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
238
229
|
'titleKeybinding',
|
|
239
230
|
"{0} ({1})",
|
|
240
|
-
this.
|
|
231
|
+
this.compositeBarActionItem.name,
|
|
241
232
|
this.keybindingLabel
|
|
242
|
-
)) : this.
|
|
243
|
-
const badge = this.action.
|
|
233
|
+
)) : this.compositeBarActionItem.name;
|
|
234
|
+
const badge = this.action.activity?.badge;
|
|
244
235
|
if (badge?.getDescription()) {
|
|
245
236
|
title = ( localizeWithPath(
|
|
246
237
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
@@ -253,7 +244,7 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
253
244
|
return title;
|
|
254
245
|
}
|
|
255
246
|
computeKeybindingLabel() {
|
|
256
|
-
const keybinding = this.
|
|
247
|
+
const keybinding = this.compositeBarActionItem.keybindingId ? this.keybindingService.lookupKeybinding(this.compositeBarActionItem.keybindingId) : null;
|
|
257
248
|
return keybinding?.getLabel();
|
|
258
249
|
}
|
|
259
250
|
updateHover() {
|
|
@@ -261,7 +252,7 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
261
252
|
this.updateTitle();
|
|
262
253
|
this.hoverDisposables.add(addDisposableListener(this.container, EventType.MOUSE_OVER, () => {
|
|
263
254
|
if (!this.showHoverScheduler.isScheduled()) {
|
|
264
|
-
if (Date.now() -
|
|
255
|
+
if (Date.now() - CompoisteBarActionViewItem_1.hoverLeaveTime < 200) {
|
|
265
256
|
this.showHover(true);
|
|
266
257
|
}
|
|
267
258
|
else {
|
|
@@ -271,7 +262,7 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
271
262
|
}, true));
|
|
272
263
|
this.hoverDisposables.add(addDisposableListener(this.container, EventType.MOUSE_LEAVE, e => {
|
|
273
264
|
if (e.target === this.container) {
|
|
274
|
-
|
|
265
|
+
CompoisteBarActionViewItem_1.hoverLeaveTime = Date.now();
|
|
275
266
|
this.hoverService.hideHover();
|
|
276
267
|
this.showHoverScheduler.cancel();
|
|
277
268
|
}
|
|
@@ -288,12 +279,18 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
288
279
|
const hoverPosition = this.options.hoverOptions.position();
|
|
289
280
|
this.lastHover = this.hoverService.showHover({
|
|
290
281
|
target: this.container,
|
|
291
|
-
hoverPosition,
|
|
292
282
|
content: this.computeTitle(),
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
283
|
+
position: {
|
|
284
|
+
hoverPosition,
|
|
285
|
+
},
|
|
286
|
+
persistence: {
|
|
287
|
+
hideOnKeyDown: true,
|
|
288
|
+
},
|
|
289
|
+
appearance: {
|
|
290
|
+
showPointer: true,
|
|
291
|
+
compact: true,
|
|
292
|
+
skipFadeInAnimation,
|
|
293
|
+
}
|
|
297
294
|
});
|
|
298
295
|
}
|
|
299
296
|
dispose() {
|
|
@@ -304,13 +301,13 @@ let ActivityActionViewItem = class ActivityActionViewItem extends BaseActionView
|
|
|
304
301
|
this.badge.remove();
|
|
305
302
|
}
|
|
306
303
|
};
|
|
307
|
-
|
|
304
|
+
CompoisteBarActionViewItem = CompoisteBarActionViewItem_1 = ( __decorate([
|
|
308
305
|
( __param(3, IThemeService)),
|
|
309
306
|
( __param(4, IHoverService)),
|
|
310
307
|
( __param(5, IConfigurationService)),
|
|
311
308
|
( __param(6, IKeybindingService))
|
|
312
|
-
],
|
|
313
|
-
class CompositeOverflowActivityAction extends
|
|
309
|
+
], CompoisteBarActionViewItem));
|
|
310
|
+
class CompositeOverflowActivityAction extends CompositeBarAction {
|
|
314
311
|
constructor(showMenu) {
|
|
315
312
|
super({
|
|
316
313
|
id: 'additionalComposites.action',
|
|
@@ -327,7 +324,7 @@ class CompositeOverflowActivityAction extends ActivityAction {
|
|
|
327
324
|
this.showMenu();
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
|
-
let CompositeOverflowActivityActionViewItem = class CompositeOverflowActivityActionViewItem extends
|
|
327
|
+
let CompositeOverflowActivityActionViewItem = class CompositeOverflowActivityActionViewItem extends CompoisteBarActionViewItem {
|
|
331
328
|
constructor(action, getOverflowingComposites, getActiveCompositeId, getBadge, getCompositeOpenAction, colors, hoverOptions, contextMenuService, themeService, hoverService, configurationService, keybindingService) {
|
|
332
329
|
super(action, { icon: true, colors, hasPopup: true, hoverOptions }, () => true, themeService, hoverService, configurationService, keybindingService);
|
|
333
330
|
this.getOverflowingComposites = getOverflowingComposites;
|
|
@@ -335,18 +332,12 @@ let CompositeOverflowActivityActionViewItem = class CompositeOverflowActivityAct
|
|
|
335
332
|
this.getBadge = getBadge;
|
|
336
333
|
this.getCompositeOpenAction = getCompositeOpenAction;
|
|
337
334
|
this.contextMenuService = contextMenuService;
|
|
338
|
-
this.actions = [];
|
|
339
335
|
}
|
|
340
336
|
showMenu() {
|
|
341
|
-
if (this.actions) {
|
|
342
|
-
disposeIfDisposable(this.actions);
|
|
343
|
-
}
|
|
344
|
-
this.actions = this.getActions();
|
|
345
337
|
this.contextMenuService.showContextMenu({
|
|
346
338
|
getAnchor: () => this.container,
|
|
347
|
-
getActions: () => this.
|
|
339
|
+
getActions: () => this.getActions(),
|
|
348
340
|
getCheckedActionsRepresentation: () => 'radio',
|
|
349
|
-
onHide: () => disposeIfDisposable(this.actions)
|
|
350
341
|
});
|
|
351
342
|
}
|
|
352
343
|
getActions() {
|
|
@@ -358,9 +349,6 @@ let CompositeOverflowActivityActionViewItem = class CompositeOverflowActivityAct
|
|
|
358
349
|
if (badge instanceof NumberBadge) {
|
|
359
350
|
suffix = badge.number;
|
|
360
351
|
}
|
|
361
|
-
else if (badge instanceof TextBadge) {
|
|
362
|
-
suffix = badge.text;
|
|
363
|
-
}
|
|
364
352
|
if (suffix) {
|
|
365
353
|
action.label = ( localizeWithPath(
|
|
366
354
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
@@ -376,12 +364,6 @@ let CompositeOverflowActivityActionViewItem = class CompositeOverflowActivityAct
|
|
|
376
364
|
return action;
|
|
377
365
|
}));
|
|
378
366
|
}
|
|
379
|
-
dispose() {
|
|
380
|
-
super.dispose();
|
|
381
|
-
if (this.actions) {
|
|
382
|
-
this.actions = disposeIfDisposable(this.actions);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
367
|
};
|
|
386
368
|
CompositeOverflowActivityActionViewItem = ( __decorate([
|
|
387
369
|
( __param(7, IContextMenuService)),
|
|
@@ -406,7 +388,7 @@ let ManageExtensionAction = class ManageExtensionAction extends Action {
|
|
|
406
388
|
ManageExtensionAction = ( __decorate([
|
|
407
389
|
( __param(0, ICommandService))
|
|
408
390
|
], ManageExtensionAction));
|
|
409
|
-
let CompositeActionViewItem = class CompositeActionViewItem extends
|
|
391
|
+
let CompositeActionViewItem = class CompositeActionViewItem extends CompoisteBarActionViewItem {
|
|
410
392
|
static { CompositeActionViewItem_1 = this; }
|
|
411
393
|
constructor(options, compositeActivityAction, toggleCompositePinnedAction, toggleCompositeBadgeAction, compositeContextMenuActionsProvider, contextMenuActionsProvider, dndHandler, compositeBar, contextMenuService, keybindingService, instantiationService, themeService, hoverService, configurationService) {
|
|
412
394
|
super(compositeActivityAction, options, compositeBar.areBadgesEnabled.bind(compositeBar), themeService, hoverService, configurationService, keybindingService);
|
|
@@ -431,9 +413,9 @@ let CompositeActionViewItem = class CompositeActionViewItem extends ActivityActi
|
|
|
431
413
|
this.showContextMenu(container);
|
|
432
414
|
}));
|
|
433
415
|
let insertDropBefore = undefined;
|
|
434
|
-
this._register(CompositeDragAndDropObserver.INSTANCE.registerDraggable(this.container, () => { return { type: 'composite', id: this.
|
|
416
|
+
this._register(CompositeDragAndDropObserver.INSTANCE.registerDraggable(this.container, () => { return { type: 'composite', id: this.compositeBarActionItem.id }; }, {
|
|
435
417
|
onDragOver: e => {
|
|
436
|
-
const isValidMove = e.dragAndDropData.getData().id !== this.
|
|
418
|
+
const isValidMove = e.dragAndDropData.getData().id !== this.compositeBarActionItem.id && this.dndHandler.onDragOver(e.dragAndDropData, this.compositeBarActionItem.id, e.eventData);
|
|
437
419
|
toggleDropEffect(e.eventData.dataTransfer, 'move', isValidMove);
|
|
438
420
|
insertDropBefore = this.updateFromDragging(container, isValidMove, e.eventData);
|
|
439
421
|
},
|
|
@@ -445,11 +427,11 @@ let CompositeActionViewItem = class CompositeActionViewItem extends ActivityActi
|
|
|
445
427
|
},
|
|
446
428
|
onDrop: e => {
|
|
447
429
|
EventHelper.stop(e.eventData, true);
|
|
448
|
-
this.dndHandler.drop(e.dragAndDropData, this.
|
|
430
|
+
this.dndHandler.drop(e.dragAndDropData, this.compositeBarActionItem.id, e.eventData, insertDropBefore);
|
|
449
431
|
insertDropBefore = this.updateFromDragging(container, false, e.eventData);
|
|
450
432
|
},
|
|
451
433
|
onDragStart: e => {
|
|
452
|
-
if (e.dragAndDropData.getData().id !== this.
|
|
434
|
+
if (e.dragAndDropData.getData().id !== this.compositeBarActionItem.id) {
|
|
453
435
|
return;
|
|
454
436
|
}
|
|
455
437
|
if (e.eventData.dataTransfer) {
|
|
@@ -497,21 +479,21 @@ let CompositeActionViewItem = class CompositeActionViewItem extends ActivityActi
|
|
|
497
479
|
}
|
|
498
480
|
showContextMenu(container) {
|
|
499
481
|
const actions = [this.toggleCompositePinnedAction, this.toggleCompositeBadgeAction];
|
|
500
|
-
const compositeContextMenuActions = this.compositeContextMenuActionsProvider(this.
|
|
482
|
+
const compositeContextMenuActions = this.compositeContextMenuActionsProvider(this.compositeBarActionItem.id);
|
|
501
483
|
if (compositeContextMenuActions.length) {
|
|
502
484
|
actions.push(...compositeContextMenuActions);
|
|
503
485
|
}
|
|
504
|
-
if (this.compositeActivityAction.
|
|
486
|
+
if (this.compositeActivityAction.compositeBarActionItem.extensionId) {
|
|
505
487
|
actions.push(( new Separator()));
|
|
506
488
|
actions.push(CompositeActionViewItem_1.manageExtensionAction);
|
|
507
489
|
}
|
|
508
|
-
const isPinned = this.compositeBar.isPinned(this.
|
|
490
|
+
const isPinned = this.compositeBar.isPinned(this.compositeBarActionItem.id);
|
|
509
491
|
if (isPinned) {
|
|
510
492
|
this.toggleCompositePinnedAction.label = ( localizeWithPath(
|
|
511
493
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
512
494
|
'hide',
|
|
513
495
|
"Hide '{0}'",
|
|
514
|
-
this.
|
|
496
|
+
this.compositeBarActionItem.name
|
|
515
497
|
));
|
|
516
498
|
this.toggleCompositePinnedAction.checked = false;
|
|
517
499
|
}
|
|
@@ -520,10 +502,10 @@ let CompositeActionViewItem = class CompositeActionViewItem extends ActivityActi
|
|
|
520
502
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
521
503
|
'keep',
|
|
522
504
|
"Keep '{0}'",
|
|
523
|
-
this.
|
|
505
|
+
this.compositeBarActionItem.name
|
|
524
506
|
));
|
|
525
507
|
}
|
|
526
|
-
const isBadgeEnabled = this.compositeBar.areBadgesEnabled(this.
|
|
508
|
+
const isBadgeEnabled = this.compositeBar.areBadgesEnabled(this.compositeBarActionItem.id);
|
|
527
509
|
if (isBadgeEnabled) {
|
|
528
510
|
this.toggleCompositeBadgeAction.label = ( localizeWithPath(
|
|
529
511
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
@@ -551,7 +533,7 @@ let CompositeActionViewItem = class CompositeActionViewItem extends ActivityActi
|
|
|
551
533
|
this.contextMenuService.showContextMenu({
|
|
552
534
|
getAnchor: () => anchor,
|
|
553
535
|
getActions: () => actions,
|
|
554
|
-
getActionsContext: () => this.
|
|
536
|
+
getActionsContext: () => this.compositeBarActionItem.id
|
|
555
537
|
});
|
|
556
538
|
}
|
|
557
539
|
updateChecked() {
|
|
@@ -615,19 +597,19 @@ class ToggleCompositePinnedAction extends Action {
|
|
|
615
597
|
}
|
|
616
598
|
}
|
|
617
599
|
class ToggleCompositeBadgeAction extends Action {
|
|
618
|
-
constructor(
|
|
619
|
-
super('show.toggleCompositeBadge',
|
|
600
|
+
constructor(compositeBarActionItem, compositeBar) {
|
|
601
|
+
super('show.toggleCompositeBadge', compositeBarActionItem ? compositeBarActionItem.name : ( localizeWithPath(
|
|
620
602
|
'vs/workbench/browser/parts/compositeBarActions',
|
|
621
603
|
'toggleBadge',
|
|
622
604
|
"Toggle View Badge"
|
|
623
605
|
)));
|
|
624
|
-
this.
|
|
606
|
+
this.compositeBarActionItem = compositeBarActionItem;
|
|
625
607
|
this.compositeBar = compositeBar;
|
|
626
608
|
this.checked = false;
|
|
627
609
|
}
|
|
628
610
|
async run(context) {
|
|
629
|
-
const id = this.
|
|
611
|
+
const id = this.compositeBarActionItem ? this.compositeBarActionItem.id : context;
|
|
630
612
|
this.compositeBar.toggleBadgeEnablement(id);
|
|
631
613
|
}
|
|
632
614
|
}
|
|
633
|
-
export {
|
|
615
|
+
export { CompoisteBarActionViewItem, CompositeActionViewItem, CompositeBarAction, CompositeOverflowActivityAction, CompositeOverflowActivityActionViewItem, ToggleCompositeBadgeAction, ToggleCompositePinnedAction };
|