@codingame/monaco-vscode-api 2.0.3 → 2.1.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 +15 -12
- package/extensions.d.ts +4 -7
- package/external/@xterm/xterm/typings/xterm.d.ts +22 -0
- package/missing-services.js +62 -6
- package/package.json +8 -8
- package/service-override/tools/editor.js +14 -0
- package/services.d.ts +3 -2
- package/services.js +6 -4
- package/vscode/src/vs/base/browser/browser.js +45 -30
- package/vscode/src/vs/base/browser/canIUse.js +1 -1
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +12 -5
- package/vscode/src/vs/base/browser/dom.js +104 -14
- package/vscode/src/vs/base/browser/indexedDB.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +29 -1
- package/vscode/src/vs/base/browser/mouseEvent.js +17 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -3
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +287 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +16 -5
- package/vscode/src/vs/base/browser/ui/list/listView.js +31 -11
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +35 -21
- package/vscode/src/vs/base/browser/ui/menu/menu.js +10 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +8 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +6 -5
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +469 -95
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +22 -7
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +0 -5
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +70 -4
- package/vscode/src/vs/base/common/assert.js +6 -1
- package/vscode/src/vs/base/common/async.js +31 -6
- package/vscode/src/vs/base/common/codicons.js +5 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -15
- package/vscode/src/vs/base/common/filters.d.ts +1 -18
- package/vscode/src/vs/base/common/htmlContent.js +12 -6
- package/vscode/src/vs/base/common/iterator.js +8 -0
- package/vscode/src/vs/base/common/labels.js +2 -1
- package/vscode/src/vs/base/common/map.js +20 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +16 -8
- package/vscode/src/vs/base/common/observableInternal/derived.js +4 -6
- package/vscode/src/vs/base/common/observableInternal/utils.js +60 -5
- package/vscode/src/vs/base/common/platform.js +20 -20
- package/vscode/src/vs/base/common/prefixTree.js +4 -3
- package/vscode/src/vs/base/common/product.d.ts +5 -2
- package/vscode/src/vs/base/common/strings.js +23 -7
- package/vscode/src/vs/base/common/themables.js +4 -1
- package/vscode/src/vs/base/common/uri.js +11 -1
- package/vscode/src/vs/base/common/worker/simpleWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +14 -8
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +18 -11
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +3 -3
- package/vscode/src/vs/{workbench/services/hover/browser → editor/browser/services}/hoverService.d.ts +7 -6
- package/vscode/src/vs/editor/browser/services/hoverService.js +195 -0
- package/vscode/src/vs/editor/browser/view.js +29 -39
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +41 -19
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +30 -23
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +23 -8
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +8 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +7 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +30 -3
- package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +39 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.css.js → components/accessibleDiffViewer.css.js} +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.js → components/accessibleDiffViewer.js} +43 -43
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +89 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorEditors.js → components/diffEditorEditors.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorSash.js → components/diffEditorSash.js} +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/{lineAlignment.js → components/diffEditorViewZones/diffEditorViewZones.js} +38 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/{inlineDiffDeletedCodeMargin.js → components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{renderLines.js → components/diffEditorViewZones/renderLines.js} +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +29 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +150 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +17 -16
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +104 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/{hideUnchangedRegionsFeature.js → features/hideUnchangedRegionsFeature.js} +51 -78
- package/vscode/src/vs/editor/browser/widget/diffEditor/{movedBlocksLines.js → features/movedBlocksLinesFeature.js} +23 -23
- package/vscode/src/vs/editor/browser/widget/diffEditor/{overviewRulerPart.js → features/overviewRulerFeature.js} +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +145 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{decorations.js → registrations.contribution.js} +18 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +10 -2
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hover.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hoverWidget.js +527 -0
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/markdownRenderer.js +11 -11
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -10
- package/vscode/src/vs/editor/common/config/editorOptions.js +46 -42
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +3 -3
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +9 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +50 -47
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +4 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +13 -2
- package/vscode/src/vs/editor/common/languages.d.ts +10 -2
- package/vscode/src/vs/editor/common/model/textModel.js +19 -13
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +19 -1
- package/vscode/src/vs/editor/common/model.js +2 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -1
- package/vscode/src/vs/editor/common/services/getIconClasses.js +4 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -3
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +9 -8
- package/vscode/src/vs/editor/common/standaloneStrings.js +18 -18
- package/vscode/src/vs/editor/common/viewEvents.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +55 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +5 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +46 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +38 -11
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +56 -101
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +10 -29
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +51 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +19 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +38 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +29 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +10 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -17
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +3 -35
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +26 -6
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +6 -6
- package/vscode/src/vs/editor/contrib/format/browser/format.js +9 -9
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +85 -76
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +120 -90
- package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +18 -6
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +4 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +56 -38
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +50 -53
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +5 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -5
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +58 -46
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +34 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +30 -38
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +11 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +18 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +8 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +7 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -0
- package/vscode/src/vs/editor/editor.api.d.ts +82 -11
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +22 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
- package/vscode/src/vs/nls.d.ts +6 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +4 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +2 -16
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -2
- package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +7 -20
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +0 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
- package/vscode/src/vs/platform/actions/common/actions.js +12 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +11 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +174 -28
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +38 -5
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environmentService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +24 -5
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +6 -1
- package/vscode/src/vs/{workbench/services → platform}/hover/browser/hover.d.ts +6 -8
- package/vscode/src/vs/platform/hover/browser/hover.js +3 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +14 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +11 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +7 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/list/browser/listService.js +7 -5
- package/vscode/src/vs/platform/log/common/bufferLog.js +1 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +0 -1
- package/vscode/src/vs/platform/log/common/log.js +1 -2
- package/vscode/src/vs/platform/notification/common/notification.d.ts +36 -19
- package/vscode/src/vs/platform/notification/common/notification.js +9 -3
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +50 -48
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +3 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +49 -66
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +11 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +16 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +230 -26
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +5 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +28 -9
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +2 -0
- package/vscode/src/vs/platform/window/common/window.js +14 -8
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +97 -78
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +1 -22
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +130 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +28 -15
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +4 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +35 -33
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +40 -13
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +10 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +11 -7
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +1 -7
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +49 -93
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +18 -22
- 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 +55 -36
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +6 -7
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +74 -12
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +27 -8
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -103
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +13 -17
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +34 -34
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/dnd.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +34 -4
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +801 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +140 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +410 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +304 -303
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +101 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +114 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1313 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +190 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +344 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +27 -42
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +152 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1626 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +150 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +52 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +260 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +39 -36
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +68 -28
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +15 -14
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -17
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -10
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +18 -17
- package/vscode/src/vs/workbench/browser/quickaccess.js +33 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/window.js +92 -9
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +114 -65
- package/vscode/src/vs/workbench/common/component.d.ts +5 -1
- package/vscode/src/vs/workbench/common/component.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +11 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +8 -4
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +6 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +107 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +6 -3
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +21 -3
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/vscode/src/vs/workbench/common/editor.d.ts +16 -4
- package/vscode/src/vs/workbench/common/editor.js +7 -1
- package/vscode/src/vs/workbench/common/memento.js +33 -12
- package/vscode/src/vs/workbench/common/notifications.js +30 -7
- package/vscode/src/vs/workbench/common/theme.js +61 -1
- package/vscode/src/vs/workbench/common/views.d.ts +1 -28
- package/vscode/src/vs/workbench/common/views.js +1 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +232 -19
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +9 -9
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +19 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +93 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +30 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +24 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +21 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/{comments.contribution.js → commentsAccessibility.js} +36 -128
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +41 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +202 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +27 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +165 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +48 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +40 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +28 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +14 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +164 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +285 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +123 -78
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +3 -19
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -9
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +70 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +34 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +48 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +16 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +317 -321
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +17 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +306 -130
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +385 -613
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +69 -64
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +71 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -44
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +38 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +36 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +32 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +24 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +264 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +60 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +12 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +188 -155
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +10 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +9 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -14
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +15 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +22 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +16 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +78 -50
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +15 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +25 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +12 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +33 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +15 -27
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +38 -22
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +5 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +60 -40
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +15 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +26 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +24 -23
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +124 -26
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +68 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +76 -36
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +10 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +51 -43
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +13 -8
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +7 -7
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +29 -9
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +160 -63
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +60 -72
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -4
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +56 -0
- package/vscode/src/vs/workbench/services/output/common/output.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +21 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +4 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -4
- package/vscode/src/vs/workbench/{browser/parts/views → services/views/browser}/viewsService.js +20 -15
- package/vscode/src/vs/workbench/services/views/common/viewsService.d.ts +34 -0
- package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js} +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +6 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +5 -2
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +112 -47
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +68 -9
- package/vscode-dts/{vscode.proposed.scmInputBoxActionButton.d.ts → vscode.proposed.codeActionRanges.d.ts} +8 -10
- package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +100 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +1 -1
- package/vscode-dts/vscode.proposed.interactive.d.ts +13 -16
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +4 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -10
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +34 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +17 -3
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +7 -1
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/colors.js +0 -17
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +0 -231
- package/vscode/src/vs/editor/browser/widget/diffEditor/outlineModel.js +0 -299
- package/vscode/src/vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +0 -28
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +0 -30
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +0 -39
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +0 -77
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +0 -35
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +0 -21
package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
|
-
const
|
|
3
|
-
export {
|
|
2
|
+
const IViewsService = ( createDecorator('viewsService'));
|
|
3
|
+
export { IViewsService };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from '../../../../base/common/event.js';
|
|
2
2
|
import { CancellationToken } from '../../../../base/common/cancellation.js';
|
|
3
|
-
import { IWriteFileOptions, IFileStatWithMetadata } from '../../../../platform/files/common/files.js';
|
|
3
|
+
import { IWriteFileOptions, IFileStatWithMetadata, IFileReadLimits } from '../../../../platform/files/common/files.js';
|
|
4
4
|
import '../../../../editor/editor.api.js';
|
|
5
5
|
import { IMarkdownString } from '../../../../base/common/htmlContent.js';
|
|
6
6
|
import { VSBufferReadableStream } from '../../../../base/common/buffer.js';
|
|
@@ -167,6 +167,11 @@ interface IStoredFileWorkingCopyResolveOptions {
|
|
|
167
167
|
* Go to disk bypassing any cache of the stored file working copy if any.
|
|
168
168
|
*/
|
|
169
169
|
readonly forceReadFromFile?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* If provided, the size of the file will be checked against the limits
|
|
172
|
+
* and an error will be thrown if any limit is exceeded.
|
|
173
|
+
*/
|
|
174
|
+
readonly limits?: IFileReadLimits;
|
|
170
175
|
}
|
|
171
176
|
interface IStoredFileWorkingCopySaveEvent extends IWorkingCopySaveEvent {
|
|
172
177
|
/**
|
|
@@ -69,7 +69,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
69
69
|
this.registerListeners();
|
|
70
70
|
}
|
|
71
71
|
registerListeners() {
|
|
72
|
-
this._register(this.filesConfigurationService.
|
|
72
|
+
this._register(this.filesConfigurationService.onDidChangeReadonly(() => this._onDidChangeReadonly.fire()));
|
|
73
73
|
}
|
|
74
74
|
isDirty() {
|
|
75
75
|
return this.dirty;
|
|
@@ -213,7 +213,10 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
213
213
|
}
|
|
214
214
|
const currentVersionId = this.versionId;
|
|
215
215
|
try {
|
|
216
|
-
const content = await this.fileService.readFileStream(this.resource, {
|
|
216
|
+
const content = await this.fileService.readFileStream(this.resource, {
|
|
217
|
+
etag,
|
|
218
|
+
limits: options?.limits
|
|
219
|
+
});
|
|
217
220
|
this.setOrphaned(false);
|
|
218
221
|
if (currentVersionId !== this.versionId) {
|
|
219
222
|
this.trace('resolveFromFile() - exit - without resolving because file working copy content changed');
|
|
@@ -5,11 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
7
|
|
|
8
|
+
export interface ChatAgentHistoryEntry {
|
|
9
|
+
request: ChatAgentRequest;
|
|
10
|
+
response: ChatAgentContentProgress[];
|
|
11
|
+
result: ChatAgentResult2;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
export interface ChatAgentContext {
|
|
9
15
|
/**
|
|
10
16
|
* All of the chat messages so far in the current chat session.
|
|
11
17
|
*/
|
|
12
|
-
history:
|
|
18
|
+
history: ChatAgentHistoryEntry[];
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
/**
|
|
@@ -64,12 +70,12 @@ declare module 'vscode' {
|
|
|
64
70
|
/**
|
|
65
71
|
* Represents user feedback for a result.
|
|
66
72
|
*/
|
|
67
|
-
export interface ChatAgentResult2Feedback {
|
|
73
|
+
export interface ChatAgentResult2Feedback<TResult extends ChatAgentResult2> {
|
|
68
74
|
/**
|
|
69
75
|
* This instance of ChatAgentResult2 is the same instance that was returned from the chat agent,
|
|
70
76
|
* and it can be extended with arbitrary properties if needed.
|
|
71
77
|
*/
|
|
72
|
-
readonly result:
|
|
78
|
+
readonly result: TResult;
|
|
73
79
|
|
|
74
80
|
/**
|
|
75
81
|
* The kind of feedback that was received.
|
|
@@ -77,12 +83,12 @@ declare module 'vscode' {
|
|
|
77
83
|
readonly kind: ChatAgentResultFeedbackKind;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
|
-
export interface
|
|
86
|
+
export interface ChatAgentSubCommand {
|
|
81
87
|
/**
|
|
82
88
|
* A short name by which this command is referred to in the UI, e.g. `fix` or
|
|
83
89
|
* `explain` for commands that fix an issue or explain code.
|
|
84
90
|
*
|
|
85
|
-
* **Note**: The name should be unique among the
|
|
91
|
+
* **Note**: The name should be unique among the subCommands provided by this agent.
|
|
86
92
|
*/
|
|
87
93
|
readonly name: string;
|
|
88
94
|
|
|
@@ -92,37 +98,39 @@ declare module 'vscode' {
|
|
|
92
98
|
readonly description: string;
|
|
93
99
|
|
|
94
100
|
/**
|
|
95
|
-
* When the user clicks this
|
|
101
|
+
* When the user clicks this subCommand in `/help`, this text will be submitted to this subCommand
|
|
96
102
|
*/
|
|
97
103
|
readonly sampleRequest?: string;
|
|
98
104
|
|
|
99
105
|
/**
|
|
100
106
|
* Whether executing the command puts the
|
|
101
107
|
* chat into a persistent mode, where the
|
|
102
|
-
*
|
|
108
|
+
* subCommand is prepended to the chat input.
|
|
103
109
|
*/
|
|
104
110
|
readonly shouldRepopulate?: boolean;
|
|
111
|
+
|
|
105
112
|
/**
|
|
106
113
|
* Placeholder text to render in the chat input
|
|
107
|
-
* when the
|
|
114
|
+
* when the subCommand has been repopulated.
|
|
108
115
|
* Has no effect if `shouldRepopulate` is `false`.
|
|
109
116
|
*/
|
|
117
|
+
// TODO@API merge this with shouldRepopulate? so that invalid state cannot be represented?
|
|
110
118
|
readonly followupPlaceholder?: string;
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
export interface
|
|
121
|
+
export interface ChatAgentSubCommandProvider {
|
|
114
122
|
|
|
115
123
|
/**
|
|
116
|
-
* Returns a list of
|
|
124
|
+
* Returns a list of subCommands that its agent is capable of handling. A subCommand
|
|
117
125
|
* can be selected by the user and will then be passed to the {@link ChatAgentHandler handler}
|
|
118
|
-
* via the {@link ChatAgentRequest.
|
|
126
|
+
* via the {@link ChatAgentRequest.subCommand subCommand} property.
|
|
119
127
|
*
|
|
120
128
|
*
|
|
121
129
|
* @param token A cancellation token.
|
|
122
|
-
* @returns A list of
|
|
130
|
+
* @returns A list of subCommands. The lack of a result can be signaled by returning `undefined`, `null`, or
|
|
123
131
|
* an empty array.
|
|
124
132
|
*/
|
|
125
|
-
|
|
133
|
+
provideSubCommands(token: CancellationToken): ProviderResult<ChatAgentSubCommand[]>;
|
|
126
134
|
}
|
|
127
135
|
|
|
128
136
|
// TODO@API This should become a progress type, and use vscode.Command
|
|
@@ -159,16 +167,16 @@ declare module 'vscode' {
|
|
|
159
167
|
/**
|
|
160
168
|
* Will be invoked once after each request to get suggested followup questions to show the user. The user can click the followup to send it to the chat.
|
|
161
169
|
*/
|
|
162
|
-
export interface FollowupProvider {
|
|
170
|
+
export interface FollowupProvider<TResult extends ChatAgentResult2> {
|
|
163
171
|
/**
|
|
164
172
|
*
|
|
165
173
|
* @param result The same instance of the result object that was returned by the chat agent, and it can be extended with arbitrary properties if needed.
|
|
166
174
|
* @param token A cancellation token.
|
|
167
175
|
*/
|
|
168
|
-
provideFollowups(result:
|
|
176
|
+
provideFollowups(result: TResult, token: CancellationToken): ProviderResult<ChatAgentFollowup[]>;
|
|
169
177
|
}
|
|
170
178
|
|
|
171
|
-
export interface ChatAgent2 {
|
|
179
|
+
export interface ChatAgent2<TResult extends ChatAgentResult2> {
|
|
172
180
|
|
|
173
181
|
/**
|
|
174
182
|
* The short name by which this agent is referred to in the UI, e.g `workspace`.
|
|
@@ -200,17 +208,17 @@ declare module 'vscode' {
|
|
|
200
208
|
} | ThemeIcon;
|
|
201
209
|
|
|
202
210
|
/**
|
|
203
|
-
* This provider will be called to retrieve the agent's
|
|
211
|
+
* This provider will be called to retrieve the agent's subCommands.
|
|
204
212
|
*/
|
|
205
|
-
|
|
213
|
+
subCommandProvider?: ChatAgentSubCommandProvider;
|
|
206
214
|
|
|
207
215
|
/**
|
|
208
216
|
* This provider will be called once after each request to retrieve suggested followup questions.
|
|
209
217
|
*/
|
|
210
|
-
followupProvider?: FollowupProvider
|
|
218
|
+
followupProvider?: FollowupProvider<TResult>;
|
|
211
219
|
|
|
212
220
|
/**
|
|
213
|
-
* When the user clicks this agent in `/help`, this text will be submitted to this
|
|
221
|
+
* When the user clicks this agent in `/help`, this text will be submitted to this subCommand
|
|
214
222
|
*/
|
|
215
223
|
sampleRequest?: string;
|
|
216
224
|
|
|
@@ -221,10 +229,9 @@ declare module 'vscode' {
|
|
|
221
229
|
* The passed {@link ChatAgentResult2Feedback.result result} is guaranteed to be the same instance that was
|
|
222
230
|
* previously returned from this chat agent.
|
|
223
231
|
*/
|
|
224
|
-
onDidReceiveFeedback: Event<ChatAgentResult2Feedback
|
|
232
|
+
onDidReceiveFeedback: Event<ChatAgentResult2Feedback<TResult>>;
|
|
225
233
|
|
|
226
234
|
/**
|
|
227
|
-
* TODO@API explain what happens wrt to history, in-flight requests etc...
|
|
228
235
|
* Dispose this agent and free resources
|
|
229
236
|
*/
|
|
230
237
|
dispose(): void;
|
|
@@ -233,31 +240,45 @@ declare module 'vscode' {
|
|
|
233
240
|
export interface ChatAgentRequest {
|
|
234
241
|
|
|
235
242
|
/**
|
|
236
|
-
* The prompt entered by the user. The {@link ChatAgent2.name name} of the agent or the {@link
|
|
243
|
+
* The prompt entered by the user. The {@link ChatAgent2.name name} of the agent or the {@link ChatAgentSubCommand.name subCommand}
|
|
237
244
|
* are not part of the prompt.
|
|
238
245
|
*
|
|
239
|
-
* @see {@link ChatAgentRequest.
|
|
246
|
+
* @see {@link ChatAgentRequest.subCommand}
|
|
240
247
|
*/
|
|
241
248
|
prompt: string;
|
|
242
249
|
|
|
243
250
|
/**
|
|
244
|
-
* The
|
|
245
|
-
* command is an instance that was previously returned from the {@link ChatAgentSlashCommandProvider.provideSlashCommands slash command provider}.
|
|
251
|
+
* The ID of the chat agent to which this request was directed.
|
|
246
252
|
*/
|
|
247
|
-
|
|
253
|
+
agentId: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The {@link ChatAgentSubCommand subCommand} that was selected for this request. It is guaranteed that the passed subCommand
|
|
257
|
+
* is an instance that was previously returned from the {@link ChatAgentSubCommandProvider.provideSubCommands subCommand provider}.
|
|
258
|
+
* @deprecated this will be replaced by `subCommand`
|
|
259
|
+
*/
|
|
260
|
+
slashCommand?: ChatAgentSubCommand;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The name of the {@link ChatAgentSubCommand subCommand} that was selected for this request.
|
|
264
|
+
*/
|
|
265
|
+
subCommand?: string;
|
|
248
266
|
|
|
249
267
|
variables: Record<string, ChatVariableValue[]>;
|
|
250
268
|
}
|
|
251
269
|
|
|
252
|
-
export type
|
|
270
|
+
export type ChatAgentContentProgress =
|
|
253
271
|
| ChatAgentContent
|
|
254
|
-
| ChatAgentTask
|
|
255
272
|
| ChatAgentFileTree
|
|
273
|
+
| ChatAgentInlineContentReference;
|
|
274
|
+
|
|
275
|
+
export type ChatAgentMetadataProgress =
|
|
256
276
|
| ChatAgentUsedContext
|
|
257
277
|
| ChatAgentContentReference
|
|
258
|
-
| ChatAgentInlineContentReference
|
|
259
278
|
| ChatAgentProgressMessage;
|
|
260
279
|
|
|
280
|
+
export type ChatAgentProgress = ChatAgentContentProgress | ChatAgentMetadataProgress;
|
|
281
|
+
|
|
261
282
|
/**
|
|
262
283
|
* Is displayed in the UI to communicate steps of progress to the user. Should be used when the agent may be slow to respond, e.g. due to doing extra work before sending the actual request to the LLM.
|
|
263
284
|
*/
|
|
@@ -300,22 +321,6 @@ declare module 'vscode' {
|
|
|
300
321
|
content: string;
|
|
301
322
|
}
|
|
302
323
|
|
|
303
|
-
/**
|
|
304
|
-
* Represents a piece of the chat response's content that is resolved asynchronously. It is rendered immediately with a placeholder,
|
|
305
|
-
* which is replaced once the full content is available.
|
|
306
|
-
*/
|
|
307
|
-
export interface ChatAgentTask {
|
|
308
|
-
/**
|
|
309
|
-
* The markdown string to be rendered immediately.
|
|
310
|
-
*/
|
|
311
|
-
placeholder: string;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* A Thenable resolving to the real content. The placeholder will be replaced with this content once it's available.
|
|
315
|
-
*/
|
|
316
|
-
resolvedContent: Thenable<ChatAgentContent | ChatAgentFileTree>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
324
|
/**
|
|
320
325
|
* Represents a tree, such as a file and directory structure, rendered in the chat response.
|
|
321
326
|
*/
|
|
@@ -338,8 +343,17 @@ declare module 'vscode' {
|
|
|
338
343
|
/**
|
|
339
344
|
* A Uri for this node, opened when it's clicked.
|
|
340
345
|
*/
|
|
346
|
+
// TODO@API why label and uri. Can the former be derived from the latter?
|
|
347
|
+
// TODO@API don't use uri but just names? This API allows to to build nonsense trees where the data structure doesn't match the uris
|
|
348
|
+
// path-structure.
|
|
341
349
|
uri: Uri;
|
|
342
350
|
|
|
351
|
+
/**
|
|
352
|
+
* The type of this node. Defaults to {@link FileType.Directory} if it has {@link ChatAgentFileTreeData.children children}.
|
|
353
|
+
*/
|
|
354
|
+
// TODO@API cross API usage
|
|
355
|
+
type?: FileType;
|
|
356
|
+
|
|
343
357
|
/**
|
|
344
358
|
* The children of this node.
|
|
345
359
|
*/
|
|
@@ -370,6 +384,57 @@ declare module 'vscode' {
|
|
|
370
384
|
* @param handler The reply-handler of the agent.
|
|
371
385
|
* @returns A new chat agent
|
|
372
386
|
*/
|
|
373
|
-
export function createChatAgent(name: string, handler: ChatAgentHandler): ChatAgent2
|
|
387
|
+
export function createChatAgent<TResult extends ChatAgentResult2>(name: string, handler: ChatAgentHandler): ChatAgent2<TResult>;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Register a variable which can be used in a chat request to any agent.
|
|
391
|
+
* @param name The name of the variable, to be used in the chat input as `#name`.
|
|
392
|
+
* @param description A description of the variable for the chat input suggest widget.
|
|
393
|
+
* @param resolver Will be called to provide the chat variable's value when it is used.
|
|
394
|
+
*/
|
|
395
|
+
export function registerVariable(name: string, description: string, resolver: ChatVariableResolver): Disposable;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* The detail level of this chat variable value.
|
|
400
|
+
*/
|
|
401
|
+
export enum ChatVariableLevel {
|
|
402
|
+
Short = 1,
|
|
403
|
+
Medium = 2,
|
|
404
|
+
Full = 3
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export interface ChatVariableValue {
|
|
408
|
+
/**
|
|
409
|
+
* The detail level of this chat variable value. If possible, variable resolvers should try to offer shorter values that will consume fewer tokens in an LLM prompt.
|
|
410
|
+
*/
|
|
411
|
+
level: ChatVariableLevel;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* The variable's value, which can be included in an LLM prompt as-is, or the chat agent may decide to read the value and do something else with it.
|
|
415
|
+
*/
|
|
416
|
+
value: string | Uri;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* A description of this value, which could be provided to the LLM as a hint.
|
|
420
|
+
*/
|
|
421
|
+
description?: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface ChatVariableContext {
|
|
425
|
+
/**
|
|
426
|
+
* The message entered by the user, which includes this variable.
|
|
427
|
+
*/
|
|
428
|
+
prompt: string;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export interface ChatVariableResolver {
|
|
432
|
+
/**
|
|
433
|
+
* A callback to resolve the value of a chat variable.
|
|
434
|
+
* @param name The name of the variable.
|
|
435
|
+
* @param context Contextual information about this chat request.
|
|
436
|
+
* @param token A cancellation token.
|
|
437
|
+
*/
|
|
438
|
+
resolve(name: string, context: ChatVariableContext, token: CancellationToken): ProviderResult<ChatVariableValue[]>;
|
|
374
439
|
}
|
|
375
440
|
}
|
|
@@ -5,12 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
7
|
|
|
8
|
-
export interface
|
|
9
|
-
readonly result: ChatAgentResult2;
|
|
10
|
-
readonly action: InteractiveSessionCopyAction | InteractiveSessionInsertAction | InteractiveSessionTerminalAction | InteractiveSessionCommandAction | InteractiveSessionFollowupAction | InteractiveSessionBugReportAction;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ChatAgent2 {
|
|
8
|
+
export interface ChatAgent2<TResult extends ChatAgentResult2> {
|
|
14
9
|
onDidPerformAction: Event<ChatAgentUserActionEvent>;
|
|
15
10
|
supportIssueReporting?: boolean;
|
|
16
11
|
}
|
|
@@ -31,7 +26,7 @@ declare module 'vscode' {
|
|
|
31
26
|
|
|
32
27
|
export interface ChatAgentDetectedAgent {
|
|
33
28
|
agentName: string;
|
|
34
|
-
command?:
|
|
29
|
+
command?: ChatAgentSubCommand;
|
|
35
30
|
}
|
|
36
31
|
|
|
37
32
|
export interface ChatAgentVulnerability {
|
|
@@ -48,7 +43,7 @@ declare module 'vscode' {
|
|
|
48
43
|
| ChatAgentMarkdownContent
|
|
49
44
|
| ChatAgentDetectedAgent;
|
|
50
45
|
|
|
51
|
-
export interface ChatAgent2 {
|
|
46
|
+
export interface ChatAgent2<TResult extends ChatAgentResult2> {
|
|
52
47
|
/**
|
|
53
48
|
* Provide a set of variables that can only be used with this agent.
|
|
54
49
|
*/
|
|
@@ -75,6 +70,70 @@ declare module 'vscode' {
|
|
|
75
70
|
/**
|
|
76
71
|
* Create a chat agent with the extended progress type
|
|
77
72
|
*/
|
|
78
|
-
export function createChatAgent(name: string, handler: ChatAgentExtendedHandler): ChatAgent2
|
|
73
|
+
export function createChatAgent<TResult extends ChatAgentResult2>(name: string, handler: ChatAgentExtendedHandler): ChatAgent2<TResult>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
* User action events
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
export enum ChatAgentCopyKind {
|
|
81
|
+
// Keyboard shortcut or context menu
|
|
82
|
+
Action = 1,
|
|
83
|
+
Toolbar = 2
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ChatAgentCopyAction {
|
|
87
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
88
|
+
kind: 'copy';
|
|
89
|
+
codeBlockIndex: number;
|
|
90
|
+
copyKind: ChatAgentCopyKind;
|
|
91
|
+
copiedCharacters: number;
|
|
92
|
+
totalCharacters: number;
|
|
93
|
+
copiedText: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface ChatAgentInsertAction {
|
|
97
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
98
|
+
kind: 'insert';
|
|
99
|
+
codeBlockIndex: number;
|
|
100
|
+
totalCharacters: number;
|
|
101
|
+
newFile?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface ChatAgentTerminalAction {
|
|
105
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
106
|
+
kind: 'runInTerminal';
|
|
107
|
+
codeBlockIndex: number;
|
|
108
|
+
languageId?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface ChatAgentCommandAction {
|
|
112
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
113
|
+
kind: 'command';
|
|
114
|
+
command: ChatAgentCommandFollowup;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ChatAgentSessionFollowupAction {
|
|
118
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
119
|
+
kind: 'followUp';
|
|
120
|
+
followup: ChatAgentFollowup;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ChatAgentBugReportAction {
|
|
124
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
125
|
+
kind: 'bug';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface ChatAgentUserActionEvent {
|
|
129
|
+
readonly result: ChatAgentResult2;
|
|
130
|
+
readonly action: ChatAgentCopyAction | ChatAgentInsertAction | ChatAgentTerminalAction | ChatAgentCommandAction | ChatAgentSessionFollowupAction | ChatAgentBugReportAction;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface ChatVariableValue {
|
|
134
|
+
/**
|
|
135
|
+
* An optional type tag for extensions to communicate the kind of the variable. An extension might use it to interpret the shape of `value`.
|
|
136
|
+
*/
|
|
137
|
+
kind?: string;
|
|
79
138
|
}
|
|
80
139
|
}
|
|
@@ -4,16 +4,14 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
|
-
// https://github.com/microsoft/vscode/issues/195474
|
|
8
7
|
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export interface CodeAction {
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* The range to which this Code Action applies to, which will be highlighted.
|
|
12
|
+
*
|
|
13
|
+
* Ex: A refactoring action will highlight the range of text that will be affected.
|
|
14
|
+
*/
|
|
15
|
+
ranges?: Range[];
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
export interface SourceControlInputBox {
|
|
16
|
-
actionButton?: SourceControlInputBoxActionButton;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
17
|
}
|
package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts}
RENAMED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
// https://github.com/microsoft/vscode/issues/166971
|
|
7
|
-
|
|
8
6
|
declare module 'vscode' {
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
// @alexr00 https://github.com/microsoft/vscode/issues/201131
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
export interface CommentReaction {
|
|
11
|
+
readonly reactors?: readonly CommentAuthorInformation[];
|
|
13
12
|
}
|
|
14
13
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
// empty placeholder declaration for `multiDiffEditor/*` menus
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
// empty placeholder declaration for the `scm/incomingChanges`-menu contribution point
|
|
7
|
+
// empty placeholder declaration for the `scm/outgoingChanges`-menu contribution point
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/201997
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
// empty placeholder declaration for the `scm/incomingChanges/historyItem/context`-menu contribution point
|
|
7
|
+
// empty placeholder declaration for the `scm/outgoingChanges/historyItem/context`-menu contribution point
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/201997
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
|
|
7
|
+
declare module 'vscode' {
|
|
8
|
+
export namespace debug {
|
|
9
|
+
/**
|
|
10
|
+
* Registers a custom data visualization for variables when debugging.
|
|
11
|
+
*
|
|
12
|
+
* @param id The corresponding ID in the package.json `debugVisualizers` contribution point.
|
|
13
|
+
* @param provider The {@link DebugVisualizationProvider} to register
|
|
14
|
+
*/
|
|
15
|
+
export function registerDebugVisualizationProvider<T extends DebugVisualization>(
|
|
16
|
+
id: string,
|
|
17
|
+
provider: DebugVisualizationProvider<T>
|
|
18
|
+
): Disposable;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class DebugVisualization {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the visualization to show to the user.
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* An icon for the view when it's show in inline actions.
|
|
29
|
+
*/
|
|
30
|
+
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Visualization to use for the variable. This may be either:
|
|
34
|
+
* - A command to run when the visualization is selected for a variable.
|
|
35
|
+
* - A {@link TreeDataProvider} which is used to display the data in-line
|
|
36
|
+
* where the variable is shown. If a single root item is returned from
|
|
37
|
+
* the data provider, it will replace the variable in its tree.
|
|
38
|
+
* Otherwise, the items will be shown as children of the variable.
|
|
39
|
+
*/
|
|
40
|
+
visualization?: Command | TreeDataProvider<unknown>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new debug visualization object.
|
|
44
|
+
* @param name Name of the visualization to show to the user.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name: string);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DebugVisualizationProvider<T extends DebugVisualization = DebugVisualization> {
|
|
50
|
+
/**
|
|
51
|
+
* Called for each variable when the debug session stops. It should return
|
|
52
|
+
* any visualizations the extension wishes to show to the user.
|
|
53
|
+
*
|
|
54
|
+
* Note that this is only called when its `when` clause defined under the
|
|
55
|
+
* `debugVisualizers` contribution point in the `package.json` evaluates
|
|
56
|
+
* to true.
|
|
57
|
+
*/
|
|
58
|
+
provideDebugVisualization(context: DebugVisualizationContext, token: CancellationToken): ProviderResult<T[]>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Invoked for a variable when a user picks the visualizer.
|
|
62
|
+
*
|
|
63
|
+
* It may return a {@link TreeView} that's shown in the Debug Console or
|
|
64
|
+
* inline in a hover. A visualizer may choose to return `undefined` from
|
|
65
|
+
* this function and instead trigger other actions in the UI, such as opening
|
|
66
|
+
* a custom {@link WebviewView}.
|
|
67
|
+
*/
|
|
68
|
+
resolveDebugVisualization?(visualization: T, token: CancellationToken): ProviderResult<T>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface DebugVisualizationContext {
|
|
72
|
+
/**
|
|
73
|
+
* The Debug Adapter Protocol Variable to be visualized.
|
|
74
|
+
* @see https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable
|
|
75
|
+
*/
|
|
76
|
+
variable: any;
|
|
77
|
+
/**
|
|
78
|
+
* The Debug Adapter Protocol variable reference the type (such as a scope
|
|
79
|
+
* or another variable) that contained this one. Empty for variables
|
|
80
|
+
* that came from user evaluations in the Debug Console.
|
|
81
|
+
* @see https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable
|
|
82
|
+
*/
|
|
83
|
+
containerId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The ID of the Debug Adapter Protocol StackFrame in which the variable was found,
|
|
86
|
+
* for variables that came from scopes in a stack frame.
|
|
87
|
+
* @see https://microsoft.github.io/debug-adapter-protocol/specification#Types_StackFrame
|
|
88
|
+
*/
|
|
89
|
+
frameId?: number;
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the Debug Adapter Protocol Thread in which the variable was found.
|
|
92
|
+
* @see https://microsoft.github.io/debug-adapter-protocol/specification#Types_StackFrame
|
|
93
|
+
*/
|
|
94
|
+
threadId: number;
|
|
95
|
+
/**
|
|
96
|
+
* The debug session the variable belongs to.
|
|
97
|
+
*/
|
|
98
|
+
session: DebugSession;
|
|
99
|
+
}
|
|
100
|
+
}
|