@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
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Represents a collection of document highlights from multiple documents.
|
|
10
|
+
*/
|
|
11
|
+
export class MultiDocumentHighlight {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The URI of the document containing the highlights.
|
|
15
|
+
*/
|
|
16
|
+
uri: Uri;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The highlights for the document.
|
|
20
|
+
*/
|
|
21
|
+
highlights: DocumentHighlight[];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new instance of MultiDocumentHighlight.
|
|
25
|
+
* @param uri The URI of the document containing the highlights.
|
|
26
|
+
* @param highlights The highlights for the document.
|
|
27
|
+
*/
|
|
28
|
+
constructor(uri: Uri, highlights: DocumentHighlight[]);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface MultiDocumentHighlightProvider {
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Provide a set of document highlights, like all occurrences of a variable or
|
|
35
|
+
* all exit-points of a function.
|
|
36
|
+
*
|
|
37
|
+
* @param document The document in which the command was invoked.
|
|
38
|
+
* @param position The position at which the command was invoked.
|
|
39
|
+
* @param otherDocuments An array of additional valid documents for which highlights should be provided.
|
|
40
|
+
* @param token A cancellation token.
|
|
41
|
+
* @returns A Map containing a mapping of the Uri of a document to the document highlights or a thenable that resolves to such. The lack of a result can be
|
|
42
|
+
* signaled by returning `undefined`, `null`, or an empty map.
|
|
43
|
+
*/
|
|
44
|
+
provideMultiDocumentHighlights(document: TextDocument, position: Position, otherDocuments: TextDocument[], token: CancellationToken): ProviderResult<MultiDocumentHighlight[]>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
namespace languages {
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Register a multi document highlight provider.
|
|
51
|
+
*
|
|
52
|
+
* Multiple providers can be registered for a language. In that case providers are sorted
|
|
53
|
+
* by their {@link languages.match score} and groups sequentially asked for document highlights.
|
|
54
|
+
* The process stops when a provider returns a `non-falsy` or `non-failure` result.
|
|
55
|
+
*
|
|
56
|
+
* @param selector A selector that defines the documents this provider is applicable to.
|
|
57
|
+
* @param provider A multi-document highlight provider.
|
|
58
|
+
* @returns A {@link Disposable} that unregisters this provider when being disposed.
|
|
59
|
+
*/
|
|
60
|
+
export function registerMultiDocumentHighlightProvider(selector: DocumentSelector, provider: MultiDocumentHighlightProvider): Disposable;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
declare module 'vscode' {
|
|
6
|
+
|
|
7
|
+
export interface NotebookController {
|
|
8
|
+
/** Set this to attach a variable provider to this controller. */
|
|
9
|
+
variableProvider?: NotebookVariableProvider;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum NotebookVariablesRequestKind {
|
|
13
|
+
Named = 1,
|
|
14
|
+
Indexed = 2
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface VariablesResult {
|
|
18
|
+
variable: Variable;
|
|
19
|
+
namedChildrenCount: number;
|
|
20
|
+
indexedChildrenCount: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface NotebookVariableProvider {
|
|
24
|
+
onDidChangeVariables: Event<NotebookDocument>;
|
|
25
|
+
|
|
26
|
+
/** When parent is undefined, this is requesting global Variables. When a variable is passed, it's requesting child props of that Variable. */
|
|
27
|
+
provideVariables(notebook: NotebookDocument, parent: Variable | undefined, kind: NotebookVariablesRequestKind, start: number, token: CancellationToken): AsyncIterable<VariablesResult>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface Variable {
|
|
31
|
+
/** The variable's name. */
|
|
32
|
+
name: string;
|
|
33
|
+
|
|
34
|
+
/** The variable's value.
|
|
35
|
+
This can be a multi-line text, e.g. for a function the body of a function.
|
|
36
|
+
For structured variables (which do not have a simple value), it is recommended to provide a one-line representation of the structured object.
|
|
37
|
+
This helps to identify the structured object in the collapsed state when its children are not yet visible.
|
|
38
|
+
An empty string can be used if no value should be shown in the UI.
|
|
39
|
+
*/
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
@@ -191,6 +191,26 @@ declare module 'vscode' {
|
|
|
191
191
|
*/
|
|
192
192
|
env(): Thenable<ExecEnvironment>;
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Kills a process with the given ID.
|
|
196
|
+
*
|
|
197
|
+
* @param processId process ID to kill.
|
|
198
|
+
*/
|
|
199
|
+
kill(processId: number): Thenable<void>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Connects to the given TCP host/port on the remote.
|
|
203
|
+
*
|
|
204
|
+
* @param host The hostname or IP to connect to
|
|
205
|
+
* @param port The port number to connect to
|
|
206
|
+
* @returns a duplex stream, and a promise the resolves when both sides
|
|
207
|
+
* have closed.
|
|
208
|
+
*/
|
|
209
|
+
tcpConnect(
|
|
210
|
+
host: string,
|
|
211
|
+
port: number,
|
|
212
|
+
): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
|
|
213
|
+
|
|
194
214
|
/**
|
|
195
215
|
* Access to the file system of the remote.
|
|
196
216
|
*/
|
|
@@ -250,7 +270,7 @@ declare module 'vscode' {
|
|
|
250
270
|
|
|
251
271
|
export interface CliBuild {
|
|
252
272
|
readonly quality: string;
|
|
253
|
-
/** 'LinuxAlpineX64' | 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
|
|
273
|
+
/** 'LinuxAlpineX64' | 'LinuxAlpineARM64', 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
|
|
254
274
|
readonly buildTarget: string;
|
|
255
275
|
readonly commit: string;
|
|
256
276
|
}
|
|
@@ -272,6 +292,85 @@ declare module 'vscode' {
|
|
|
272
292
|
* @throws an exception when `path` doesn't exist.
|
|
273
293
|
*/
|
|
274
294
|
stat(path: string): Thenable<FileStat>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Recursively creates the given directory on the remote.
|
|
298
|
+
*
|
|
299
|
+
* @param path The path of the folder to create
|
|
300
|
+
* @throws an exception when `path` is a file, or other i/o operations happen
|
|
301
|
+
*/
|
|
302
|
+
mkdirp(path: string): Thenable<void>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Recursively deletes the given path on the remote.
|
|
306
|
+
*
|
|
307
|
+
* @param path The path of the file or folder to delete.
|
|
308
|
+
* @throws if an i/o error happens during removal. It does not throw if
|
|
309
|
+
* the path already does not exist.
|
|
310
|
+
*/
|
|
311
|
+
rm(path: string): Thenable<void>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Reads the given file from the remote.
|
|
315
|
+
*
|
|
316
|
+
* @param path The path of the file to read.
|
|
317
|
+
* @throws if the path doesn't exist or can't be accessed
|
|
318
|
+
* @returns a readable stream of the file data
|
|
319
|
+
*/
|
|
320
|
+
read(path: string): Thenable<ReadStream>;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Writes the given file on the remote. Truncates the file if it exists.
|
|
324
|
+
*
|
|
325
|
+
* @param path The path of the file to write.
|
|
326
|
+
* @throws if the path can't be accessed
|
|
327
|
+
* @returns a writable `stream` that accepts data, and a `done` promise that
|
|
328
|
+
* will resolve after `stream.end()` is called once the write is complete.
|
|
329
|
+
*/
|
|
330
|
+
write(path: string): Thenable<{ stream: WriteStream; done: Thenable<void> }>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Connects to the given unix socket or named pipe on the remote.
|
|
334
|
+
*
|
|
335
|
+
* @param path The path of the unix socket or named pipe
|
|
336
|
+
* @throws if the path can't be accessed
|
|
337
|
+
* @returns a duplex stream, and a promise the resolves when both sides
|
|
338
|
+
* have closed.
|
|
339
|
+
*/
|
|
340
|
+
connect(path: string): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Renames the file.
|
|
344
|
+
*
|
|
345
|
+
* @param fromPath The existing file path.
|
|
346
|
+
* @param toPath The new file path.
|
|
347
|
+
* @throws if the original path doesn't exist, or the toPath can't be accessed
|
|
348
|
+
*/
|
|
349
|
+
rename(fromPath: string, toPath: string): Thenable<void>;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Reads the contents of a directory.
|
|
353
|
+
*
|
|
354
|
+
* @param path The path of the folder to read.
|
|
355
|
+
* @throws if the folder doesn't exist
|
|
356
|
+
* @returns a list of directory entries
|
|
357
|
+
*/
|
|
358
|
+
readdir(path: string): Thenable<DirectoryEntry[]>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface DirectoryEntry {
|
|
362
|
+
/**
|
|
363
|
+
* The type of the file, e.g. is a regular file, a directory, or symbolic link
|
|
364
|
+
* to a file.
|
|
365
|
+
*
|
|
366
|
+
* *Note:* This value might be a bitmask, e.g. `FileType.File | FileType.SymbolicLink`.
|
|
367
|
+
*/
|
|
368
|
+
type: FileType;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Non-absolute name of the file in the directory.
|
|
372
|
+
*/
|
|
373
|
+
name: string;
|
|
275
374
|
}
|
|
276
375
|
|
|
277
376
|
export interface RemoteAuthorityResolver {
|
|
@@ -20,7 +20,8 @@ declare module 'vscode' {
|
|
|
20
20
|
onDidChangeActionButton: Event<void>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Fires when the current history item group changes
|
|
23
|
+
* Fires when the current history item group changes after
|
|
24
|
+
* a user action (ex: commit, checkout, fetch, pull, push)
|
|
24
25
|
*/
|
|
25
26
|
onDidChangeCurrentHistoryItemGroup: Event<void>;
|
|
26
27
|
|
|
@@ -52,6 +53,12 @@ declare module 'vscode' {
|
|
|
52
53
|
readonly label: string;
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
export interface SourceControlHistoryItemStatistics {
|
|
57
|
+
readonly files: number;
|
|
58
|
+
readonly insertions: number;
|
|
59
|
+
readonly deletions: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
55
62
|
export interface SourceControlHistoryItem {
|
|
56
63
|
readonly id: string;
|
|
57
64
|
readonly parentIds: string[];
|
|
@@ -59,6 +66,7 @@ declare module 'vscode' {
|
|
|
59
66
|
readonly description?: string;
|
|
60
67
|
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
61
68
|
readonly timestamp?: number;
|
|
69
|
+
readonly statistics?: SourceControlHistoryItemStatistics;
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
export interface SourceControlHistoryItemChange {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
// https://github.com/microsoft/vscode/issues/195474
|
|
8
|
+
|
|
9
|
+
export interface SourceControlInputBoxActionButton {
|
|
10
|
+
readonly command: Command;
|
|
11
|
+
readonly enabled: boolean;
|
|
12
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SourceControlInputBox {
|
|
16
|
+
actionButton?: SourceControlInputBoxActionButton;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
// https://github.com/microsoft/vscode/issues/195474
|
|
8
|
+
|
|
9
|
+
export namespace scm {
|
|
10
|
+
export function registerSourceControlInputBoxValueProvider(sourceControlId: string, provider: SourceControlInputBoxValueProvider): Disposable;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SourceControlInputBoxValueProviderContext {
|
|
14
|
+
readonly resourceGroupId: string;
|
|
15
|
+
readonly resources: readonly Uri[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SourceControlInputBoxValueProvider {
|
|
19
|
+
readonly label: string;
|
|
20
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
21
|
+
|
|
22
|
+
provideValue(rootUri: Uri, context: SourceControlInputBoxValueProviderContext[], token: CancellationToken): ProviderResult<string | undefined>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
export enum SpeechToTextStatus {
|
|
9
|
+
Started = 1,
|
|
10
|
+
Recognizing = 2,
|
|
11
|
+
Recognized = 3,
|
|
12
|
+
Stopped = 4
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SpeechToTextEvent {
|
|
16
|
+
readonly status: SpeechToTextStatus;
|
|
17
|
+
readonly text?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SpeechToTextSession extends Disposable {
|
|
21
|
+
readonly onDidChange: Event<SpeechToTextEvent>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SpeechProvider {
|
|
25
|
+
provideSpeechToTextSession(token: CancellationToken): SpeechToTextSession;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace speech {
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* TODO@bpasero work in progress speech provider API
|
|
32
|
+
*/
|
|
33
|
+
export function registerSpeechProvider(id: string, provider: SpeechProvider): Disposable;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -16,7 +16,7 @@ declare module 'vscode' {
|
|
|
16
16
|
* @param token A cancellation token indicating the result is no longer needed
|
|
17
17
|
* @return Terminal quick fix(es) if any
|
|
18
18
|
*/
|
|
19
|
-
provideTerminalQuickFixes(commandMatchResult: TerminalCommandMatchResult, token: CancellationToken): ProviderResult<SingleOrMany<
|
|
19
|
+
provideTerminalQuickFixes(commandMatchResult: TerminalCommandMatchResult, token: CancellationToken): ProviderResult<SingleOrMany<TerminalQuickFixTerminalCommand | TerminalQuickFixOpener | Command>>;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
@@ -31,18 +31,22 @@ declare module 'vscode' {
|
|
|
31
31
|
|
|
32
32
|
export namespace window {
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
* @param provider A terminal quick fix provider
|
|
35
|
+
* @return A {@link Disposable} that unregisters the provider when being disposed
|
|
36
|
+
*/
|
|
37
37
|
export function registerTerminalQuickFixProvider(id: string, provider: TerminalQuickFixProvider): Disposable;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export class
|
|
40
|
+
export class TerminalQuickFixTerminalCommand {
|
|
41
41
|
/**
|
|
42
|
-
* The terminal command to run
|
|
42
|
+
* The terminal command to insert or run
|
|
43
43
|
*/
|
|
44
44
|
terminalCommand: string;
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Whether the command should be executed or just inserted (default)
|
|
47
|
+
*/
|
|
48
|
+
shouldExecute?: boolean;
|
|
49
|
+
constructor(terminalCommand: string, shouldExecute?: boolean);
|
|
46
50
|
}
|
|
47
51
|
export class TerminalQuickFixOpener {
|
|
48
52
|
/**
|
|
@@ -175,6 +175,11 @@ declare module 'vscode' {
|
|
|
175
175
|
* Contains coverage information for a function or method.
|
|
176
176
|
*/
|
|
177
177
|
export class FunctionCoverage {
|
|
178
|
+
/**
|
|
179
|
+
* Name of the function or method.
|
|
180
|
+
*/
|
|
181
|
+
name: string;
|
|
182
|
+
|
|
178
183
|
/**
|
|
179
184
|
* The number of times this function was executed. If zero, the
|
|
180
185
|
* function will be marked as un-covered.
|
|
@@ -190,7 +195,7 @@ declare module 'vscode' {
|
|
|
190
195
|
* @param executionCount The number of times this function was executed.
|
|
191
196
|
* @param location The function position.
|
|
192
197
|
*/
|
|
193
|
-
constructor(executionCount: number, location: Position | Range);
|
|
198
|
+
constructor(name: string, executionCount: number, location: Position | Range);
|
|
194
199
|
}
|
|
195
200
|
|
|
196
201
|
export type DetailedCoverage = StatementCoverage | FunctionCoverage;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
// https://github.com/microsoft/vscode/issues/193160 @connor4312
|
|
7
|
+
|
|
8
|
+
declare module 'vscode' {
|
|
9
|
+
export interface TestRunProfile {
|
|
10
|
+
/**
|
|
11
|
+
* Whether this profile is currently selected as a default by the user
|
|
12
|
+
*/
|
|
13
|
+
readonly isSelected: boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Fired when a user has changed whether this is a selected profile. The
|
|
17
|
+
* event contains the new value of {@link isSelected}
|
|
18
|
+
*/
|
|
19
|
+
onDidChangeSelected: Event<boolean>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An object that can be disposed via a dispose function.
|
|
3
|
-
*/
|
|
4
|
-
interface IDisposable {
|
|
5
|
-
dispose(): void;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* An event that can be listened to.
|
|
10
|
-
* @returns an `IDisposable` to stop listening.
|
|
11
|
-
*/
|
|
12
|
-
interface IEvent<T, U = void> {
|
|
13
|
-
(listener: (arg1: T, arg2: U) => any): IDisposable;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Represents a specific line in the terminal that is tracked when scrollback
|
|
18
|
-
* is trimmed and lines are added or removed. This is a single line that may
|
|
19
|
-
* be part of a larger wrapped line.
|
|
20
|
-
*/
|
|
21
|
-
interface IMarker extends IDisposableWithEvent {
|
|
22
|
-
/**
|
|
23
|
-
* A unique identifier for this marker.
|
|
24
|
-
*/
|
|
25
|
-
readonly id: number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The actual line index in the buffer at this point in time. This is set to
|
|
29
|
-
* -1 if the marker has been disposed.
|
|
30
|
-
*/
|
|
31
|
-
readonly line: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Represents a disposable that tracks is disposed state.
|
|
36
|
-
*/
|
|
37
|
-
interface IDisposableWithEvent extends IDisposable {
|
|
38
|
-
/**
|
|
39
|
-
* Event listener to get notified when this gets disposed.
|
|
40
|
-
*/
|
|
41
|
-
onDispose: IEvent<void>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Whether this is disposed.
|
|
45
|
-
*/
|
|
46
|
-
readonly isDisposed: boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export type { IDisposable, IDisposableWithEvent, IEvent, IMarker };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { URI } from '../../../base/common/uri.js';
|
|
2
|
-
import { IWorkspaceIdentifier } from '../../workspace/common/workspace.js';
|
|
3
|
-
|
|
4
|
-
interface IBaseBackupInfo {
|
|
5
|
-
remoteAuthority?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IWorkspaceBackupInfo extends IBaseBackupInfo {
|
|
8
|
-
readonly workspace: IWorkspaceIdentifier;
|
|
9
|
-
}
|
|
10
|
-
interface IFolderBackupInfo extends IBaseBackupInfo {
|
|
11
|
-
readonly folderUri: URI;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { IBaseBackupInfo, IFolderBackupInfo, IWorkspaceBackupInfo };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from '../../instantiation/common/instantiation.js';
|
|
2
|
-
import { Event } from '../../../base/common/event.js';
|
|
3
|
-
|
|
4
|
-
interface IUpdate {
|
|
5
|
-
version: string;
|
|
6
|
-
productVersion: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
hash?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Updates are run as a state machine:
|
|
12
|
-
*
|
|
13
|
-
* Uninitialized
|
|
14
|
-
* ↓
|
|
15
|
-
* Idle
|
|
16
|
-
* ↓ ↑
|
|
17
|
-
* Checking for Updates → Available for Download
|
|
18
|
-
* ↓
|
|
19
|
-
* Downloading → Ready
|
|
20
|
-
* ↓ ↑
|
|
21
|
-
* Downloaded → Updating
|
|
22
|
-
*
|
|
23
|
-
* Available: There is an update available for download (linux).
|
|
24
|
-
* Ready: Code will be updated as soon as it restarts (win32, darwin).
|
|
25
|
-
* Downloaded: There is an update ready to be installed in the background (win32).
|
|
26
|
-
*/
|
|
27
|
-
declare const enum StateType {
|
|
28
|
-
Uninitialized = "uninitialized",
|
|
29
|
-
Idle = "idle",
|
|
30
|
-
Disabled = "disabled",
|
|
31
|
-
CheckingForUpdates = "checking for updates",
|
|
32
|
-
AvailableForDownload = "available for download",
|
|
33
|
-
Downloading = "downloading",
|
|
34
|
-
Downloaded = "downloaded",
|
|
35
|
-
Updating = "updating",
|
|
36
|
-
Ready = "ready"
|
|
37
|
-
}
|
|
38
|
-
declare const enum UpdateType {
|
|
39
|
-
Setup = 0,
|
|
40
|
-
Archive = 1,
|
|
41
|
-
Snap = 2
|
|
42
|
-
}
|
|
43
|
-
declare const enum DisablementReason {
|
|
44
|
-
NotBuilt = 0,
|
|
45
|
-
DisabledByEnvironment = 1,
|
|
46
|
-
ManuallyDisabled = 2,
|
|
47
|
-
MissingConfiguration = 3,
|
|
48
|
-
InvalidConfiguration = 4,
|
|
49
|
-
RunningAsAdmin = 5
|
|
50
|
-
}
|
|
51
|
-
type Uninitialized = {
|
|
52
|
-
type: StateType.Uninitialized;
|
|
53
|
-
};
|
|
54
|
-
type Disabled = {
|
|
55
|
-
type: StateType.Disabled;
|
|
56
|
-
reason: DisablementReason;
|
|
57
|
-
};
|
|
58
|
-
type Idle = {
|
|
59
|
-
type: StateType.Idle;
|
|
60
|
-
updateType: UpdateType;
|
|
61
|
-
error?: string;
|
|
62
|
-
};
|
|
63
|
-
type CheckingForUpdates = {
|
|
64
|
-
type: StateType.CheckingForUpdates;
|
|
65
|
-
explicit: boolean;
|
|
66
|
-
};
|
|
67
|
-
type AvailableForDownload = {
|
|
68
|
-
type: StateType.AvailableForDownload;
|
|
69
|
-
update: IUpdate;
|
|
70
|
-
};
|
|
71
|
-
type Downloading = {
|
|
72
|
-
type: StateType.Downloading;
|
|
73
|
-
update: IUpdate;
|
|
74
|
-
};
|
|
75
|
-
type Downloaded = {
|
|
76
|
-
type: StateType.Downloaded;
|
|
77
|
-
update: IUpdate;
|
|
78
|
-
};
|
|
79
|
-
type Updating = {
|
|
80
|
-
type: StateType.Updating;
|
|
81
|
-
update: IUpdate;
|
|
82
|
-
};
|
|
83
|
-
type Ready = {
|
|
84
|
-
type: StateType.Ready;
|
|
85
|
-
update: IUpdate;
|
|
86
|
-
};
|
|
87
|
-
type State = Uninitialized | Disabled | Idle | CheckingForUpdates | AvailableForDownload | Downloading | Downloaded | Updating | Ready;
|
|
88
|
-
declare const State: {
|
|
89
|
-
Uninitialized: Uninitialized;
|
|
90
|
-
Disabled: (reason: DisablementReason) => Disabled;
|
|
91
|
-
Idle: (updateType: UpdateType, error?: string) => Idle;
|
|
92
|
-
CheckingForUpdates: (explicit: boolean) => CheckingForUpdates;
|
|
93
|
-
AvailableForDownload: (update: IUpdate) => AvailableForDownload;
|
|
94
|
-
Downloading: (update: IUpdate) => Downloading;
|
|
95
|
-
Downloaded: (update: IUpdate) => Downloaded;
|
|
96
|
-
Updating: (update: IUpdate) => Updating;
|
|
97
|
-
Ready: (update: IUpdate) => Ready;
|
|
98
|
-
};
|
|
99
|
-
declare const IUpdateService: ServiceIdentifier<IUpdateService>;
|
|
100
|
-
interface IUpdateService {
|
|
101
|
-
readonly _serviceBrand: undefined;
|
|
102
|
-
readonly onStateChange: Event<State>;
|
|
103
|
-
readonly state: State;
|
|
104
|
-
checkForUpdates(explicit: boolean): Promise<void>;
|
|
105
|
-
downloadUpdate(): Promise<void>;
|
|
106
|
-
applyUpdate(): Promise<void>;
|
|
107
|
-
quitAndInstall(): Promise<void>;
|
|
108
|
-
isLatestVersion(): Promise<boolean | undefined>;
|
|
109
|
-
_applySpecificUpdate(packagePath: string): Promise<void>;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export { type AvailableForDownload, type CheckingForUpdates, type Disabled, DisablementReason, type Downloaded, type Downloading, type IUpdate, IUpdateService, type Idle, type Ready, State, StateType, type Uninitialized, UpdateType, type Updating };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { raceCancellation, DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
2
|
-
import { toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
|
-
import { Progress } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
4
|
-
import { MainContext } from './extHost.protocol.js';
|
|
5
|
-
import { ChatMessage, ChatFollowup } from './extHostTypeConverters.js';
|
|
6
|
-
import { ChatMessageRole } from './extHostTypes.js';
|
|
7
|
-
class ExtHostChatAgents {
|
|
8
|
-
static { this._idPool = 0; }
|
|
9
|
-
constructor(mainContext, _extHostChatProvider, _logService) {
|
|
10
|
-
this._extHostChatProvider = _extHostChatProvider;
|
|
11
|
-
this._logService = _logService;
|
|
12
|
-
this._agents = ( new Map());
|
|
13
|
-
this._proxy = ( mainContext.getProxy(MainContext.MainThreadChatAgents));
|
|
14
|
-
}
|
|
15
|
-
registerAgent(extension, name, agent, metadata) {
|
|
16
|
-
const handle = ExtHostChatAgents._idPool++;
|
|
17
|
-
this._agents.set(handle, { extension, agent });
|
|
18
|
-
this._proxy.$registerAgent(handle, name, metadata);
|
|
19
|
-
return toDisposable(() => {
|
|
20
|
-
this._proxy.$unregisterAgent(handle);
|
|
21
|
-
this._agents.delete(handle);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
async $invokeAgent(handle, requestId, prompt, context, token) {
|
|
25
|
-
const data = this._agents.get(handle);
|
|
26
|
-
if (!data) {
|
|
27
|
-
this._logService.warn(`[CHAT](${handle}) CANNOT invoke agent because the agent is not registered`);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
let done = false;
|
|
31
|
-
function throwIfDone() {
|
|
32
|
-
if (done) {
|
|
33
|
-
throw new Error('Only valid while executing the command');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
const commandExecution = ( new DeferredPromise());
|
|
37
|
-
token.onCancellationRequested(() => commandExecution.complete());
|
|
38
|
-
setTimeout(() => commandExecution.complete(), 3 * 1000);
|
|
39
|
-
this._extHostChatProvider.allowListExtensionWhile(data.extension, commandExecution.p);
|
|
40
|
-
const task = data.agent({ role: ChatMessageRole.User, content: prompt }, { history: ( context.history.map(ChatMessage.to)) }, ( new Progress(p => {
|
|
41
|
-
throwIfDone();
|
|
42
|
-
this._proxy.$handleProgressChunk(requestId, { content: isInteractiveProgressFileTree(p.message) ? p.message : p.message.value });
|
|
43
|
-
})), token);
|
|
44
|
-
try {
|
|
45
|
-
return await raceCancellation(Promise.resolve(task).then((v) => {
|
|
46
|
-
if (v && 'followUp' in v) {
|
|
47
|
-
const convertedFollowup = v?.followUp?.map(f => ChatFollowup.from(f));
|
|
48
|
-
return { followUp: convertedFollowup };
|
|
49
|
-
}
|
|
50
|
-
return undefined;
|
|
51
|
-
}), token);
|
|
52
|
-
}
|
|
53
|
-
finally {
|
|
54
|
-
done = true;
|
|
55
|
-
commandExecution.complete();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function isInteractiveProgressFileTree(thing) {
|
|
60
|
-
return !!thing && typeof thing === 'object' && 'treeData' in thing;
|
|
61
|
-
}
|
|
62
|
-
export { ExtHostChatAgents };
|