@codingame/monaco-vscode-api 36.2.7 → 37.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/missing-services.js +612 -13
- package/package.json +9 -9
- package/services.d.ts +32 -0
- package/services.js +35 -5
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/browser.d.ts +9 -0
- package/vscode/src/vs/base/browser/browser.js +5 -1
- package/vscode/src/vs/base/browser/contextmenu.d.ts +7 -1
- package/vscode/src/vs/base/browser/dom.d.ts +43 -17
- package/vscode/src/vs/base/browser/dom.js +98 -19
- package/vscode/src/vs/base/browser/domSanitize.d.ts +18 -0
- package/vscode/src/vs/base/browser/domSanitize.js +54 -9
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +443 -0
- package/vscode/src/vs/base/browser/indexedDB.d.ts +8 -0
- package/vscode/src/vs/base/browser/indexedDB.js +32 -0
- package/vscode/src/vs/base/browser/keyboardEvent.js +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +10 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +74 -10
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/vscode/src/vs/base/browser/ui/animations/animations.d.ts +1 -2
- package/vscode/src/vs/base/browser/ui/animations/animations.js +43 -81
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +4 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +21 -5
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +21 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +193 -18
- package/vscode/src/vs/base/browser/ui/dialog/dialog.css +4 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +23 -4
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +7 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +25 -7
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +6 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +14 -2
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +4 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +14 -28
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +28 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -24
- package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +3 -3
- package/vscode/src/vs/base/browser/ui/grid/grid.js +5 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +6 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +2 -7
- package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css +3 -3
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +7 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +14 -1
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +9 -3
- package/vscode/src/vs/base/browser/ui/list/listView.js +310 -120
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +14 -2
- package/vscode/src/vs/base/browser/ui/menu/menu.js +26 -10
- package/vscode/src/vs/base/browser/ui/radio/radio.css +117 -8
- package/vscode/src/vs/base/browser/ui/radio/radio.d.ts +36 -0
- package/vscode/src/vs/base/browser/ui/radio/radio.js +166 -10
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +4 -1
- package/vscode/src/vs/base/browser/ui/sash/sash.js +24 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +27 -3
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +4 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +8 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +124 -49
- package/vscode/src/vs/base/browser/ui/splitview/paneview.css +6 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +5 -28
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +9 -26
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +7 -1
- package/vscode/src/vs/base/browser/ui/toggle/switch.css +60 -0
- package/vscode/src/vs/base/browser/ui/toggle/switch.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/toggle/switch.js +64 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +12 -3
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +18 -3
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +224 -42
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +32 -2
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +213 -39
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +1 -0
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +7 -1
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +2 -0
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/assert.js +0 -1
- package/vscode/src/vs/base/common/async.js +2 -3
- package/vscode/src/vs/base/common/codicons.d.ts +71 -30
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +41 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +41 -0
- package/vscode/src/vs/base/common/comparers.d.ts +2 -2
- package/vscode/src/vs/base/common/date.d.ts +12 -0
- package/vscode/src/vs/base/common/date.js +14 -1
- package/vscode/src/vs/base/common/defaultAccount.d.ts +12 -0
- package/vscode/src/vs/base/common/errors.d.ts +1 -0
- package/vscode/src/vs/base/common/errors.js +11 -1
- package/vscode/src/vs/base/common/event.d.ts +5 -1
- package/vscode/src/vs/base/common/event.js +54 -36
- package/vscode/src/vs/base/common/glob.js +7 -7
- package/vscode/src/vs/base/common/hash.d.ts +4 -0
- package/vscode/src/vs/base/common/hash.js +9 -1
- package/vscode/src/vs/base/common/htmlContent.d.ts +8 -0
- package/vscode/src/vs/base/common/htmlContent.js +15 -2
- package/vscode/src/vs/base/common/jsonSchema.d.ts +1 -0
- package/vscode/src/vs/base/common/managedSettings.d.ts +12 -2
- package/vscode/src/vs/base/common/managedSettings.js +2 -1
- package/vscode/src/vs/base/common/map.js +4 -0
- package/vscode/src/vs/base/common/mime.js +7 -4
- package/vscode/src/vs/base/common/network.d.ts +5 -0
- package/vscode/src/vs/base/common/network.js +5 -1
- package/vscode/src/vs/base/common/oauth.d.ts +2 -0
- package/vscode/src/vs/base/common/objects.js +14 -10
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +3 -3
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/rpc.js +6 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +54 -1
- package/vscode/src/vs/base/common/platform.d.ts +2 -0
- package/vscode/src/vs/base/common/platform.js +5 -1
- package/vscode/src/vs/base/common/processes.js +0 -1
- package/vscode/src/vs/base/common/product.d.ts +22 -0
- package/vscode/src/vs/base/common/strings.js +13 -5
- package/vscode/src/vs/base/parts/ipc/common/ipc.d.ts +4 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +13 -6
- package/vscode/src/vs/editor/browser/config/fontMeasurements.d.ts +2 -2
- package/vscode/src/vs/editor/browser/config/fontMeasurements.js +18 -5
- package/vscode/src/vs/editor/browser/controller/dragScrolling.js +7 -13
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +2 -2
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +12 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +5 -0
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +17 -1
- package/vscode/src/vs/editor/browser/services/openerService.d.ts +5 -0
- package/vscode/src/vs/editor/browser/services/openerService.js +59 -23
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +212 -74
- package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.js +10 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +20 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +12 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +9 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +4 -18
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +8 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +38 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +14 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +90 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +47 -22
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +5 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css +4 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.d.ts +71 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.js +159 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.d.ts +80 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.js +372 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.d.ts +44 -15
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +324 -94
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.d.ts +11 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.js +10 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorLogging.d.ts +60 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorLogging.js +132 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorOptions.d.ts +20 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorOptions.js +29 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.d.ts +7 -4
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +15 -4
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.d.ts +30 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +80 -6
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.d.ts +106 -22
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +377 -234
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css +331 -65
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.d.ts +84 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.js +253 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/workbenchUIElementFactory.d.ts +21 -4
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/workbenchUIElementFactory.js +9 -0
- package/vscode/src/vs/editor/common/config/diffEditor.d.ts +1 -0
- package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +52 -52
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +54 -32
- package/vscode/src/vs/editor/common/config/editorOptions.js +422 -376
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
- package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.js +1 -1
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +1 -1
- package/vscode/src/vs/editor/common/cursorEvents.d.ts +2 -2
- package/vscode/src/vs/editor/common/editorContextKeys.d.ts +4 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +62 -49
- package/vscode/src/vs/editor/common/languages/autoIndent.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +4 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +2 -1
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +11 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +50 -2
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/textModel.js +1 -0
- package/vscode/src/vs/editor/common/model.d.ts +5 -0
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +1 -1
- package/vscode/src/vs/editor/common/multiDiffEditor.d.ts +16 -0
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.d.ts +2 -0
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +9 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +3 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +2 -0
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +1 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +55 -50
- package/vscode/src/vs/editor/common/textModelBracketPairs.d.ts +5 -0
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +35 -13
- package/vscode/src/vs/editor/common/textModelEditSource.js +15 -0
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +20 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +24 -2
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +2 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +6 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +54 -12
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +9 -1
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +11 -6
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +162 -36
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +6 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +4 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +17 -5
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +18 -18
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +9 -4
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +144 -121
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +23 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +15 -13
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +5 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +19 -19
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +28 -28
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -35
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +19 -3
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -16
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +4 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +22 -22
- package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -8
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +18 -18
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +16 -11
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +2 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +46 -27
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +8 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +10 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +6 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +3 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +6 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +15 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +6 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js +20 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +2 -1
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +11 -11
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +13 -13
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +18 -4
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +11 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +19 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +99 -38
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -3
- package/vscode/src/vs/nls.js +1 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +13 -3
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +8 -3
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +4 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +2 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +78 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +118 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +754 -175
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +81 -72
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +4 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +80 -29
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +24 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +46 -6
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +4 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +6 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +5 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +36 -19
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -5
- package/vscode/src/vs/platform/actions/common/actions.js +9 -3
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.d.ts +27 -3
- package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.js +49 -0
- package/vscode/src/vs/platform/agentHost/common/agent.d.ts +1100 -0
- package/vscode/src/vs/platform/agentHost/common/agent.js +69 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostConfigurationSync.d.ts +66 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostConfigurationSync.js +128 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.d.ts +20 -5
- package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.service.d.ts +21 -7
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationUri.d.ts +10 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationUri.js +12 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.js +92 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.service.d.ts +21 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.service.js +6 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEndpointRegistry.d.ts +97 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostMcpServer.d.ts +14 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.d.ts +65 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.js +25 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.service.d.ts +22 -28
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +347 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +713 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSessionType.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostSessionType.js +4 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostTelemetry.d.ts +46 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostTelemetry.js +62 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostUri.d.ts +65 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +62 -15
- package/vscode/src/vs/platform/agentHost/common/agentMergePrompt.d.ts +25 -0
- package/vscode/src/vs/platform/agentHost/common/agentMergePrompt.js +186 -0
- package/vscode/src/vs/platform/agentHost/common/agentServerTools.d.ts +37 -9
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +638 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.js +68 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +53 -33
- package/vscode/src/vs/platform/agentHost/common/codexAccount.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/copilotHome.d.ts +3 -0
- package/vscode/src/vs/platform/agentHost/common/copilotHome.js +8 -0
- package/vscode/src/vs/platform/agentHost/common/customizationEnablement.d.ts +63 -0
- package/vscode/src/vs/platform/agentHost/common/customizationEnablement.js +69 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentWorkspaceContinuationMeta.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentWorkspaceContinuationMeta.js +8 -0
- package/vscode/src/vs/platform/agentHost/common/meta/codexAccount.d.ts +28 -0
- package/vscode/src/vs/platform/agentHost/common/meta/codexAccount.js +69 -0
- package/vscode/src/vs/platform/agentHost/common/reconnectPolicy.d.ts +29 -0
- package/vscode/src/vs/platform/agentHost/common/reconnectPolicy.js +16 -0
- package/vscode/src/vs/platform/agentHost/common/reconnectingTransport.d.ts +37 -0
- package/vscode/src/vs/platform/agentHost/common/relayTransport.d.ts +26 -5
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostLocationPreference.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +247 -23
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +173 -62
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +23 -37
- package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.d.ts +67 -0
- package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.js +22 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.d.ts +243 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.d.ts +65 -8
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +30 -0
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +95 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +20 -8
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +2 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/actions.d.ts +3 -7
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/state.d.ts +20 -12
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/actions.d.ts +117 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/commands.d.ts +102 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/state.d.ts +309 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/state.js +20 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/actions.d.ts +74 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/state.d.ts +215 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/state.js +17 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/actions.d.ts +34 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/commands.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/state.d.ts +53 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/actions.d.ts +193 -17
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.d.ts +82 -7
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/state.d.ts +373 -62
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/state.js +16 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-resource-watch/commands.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-resource-watch/state.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/commands.d.ts +30 -6
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/state.d.ts +67 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/actions.d.ts +138 -9
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/commands.d.ts +39 -40
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/state.d.ts +288 -57
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/state.js +13 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/state.d.ts +47 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/state.js +6 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/actions.d.ts +29 -5
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/actions.js +21 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/commands.d.ts +294 -8
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.d.ts +186 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/messages.d.ts +17 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/notifications.d.ts +60 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/notifications.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/state.d.ts +5 -5
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +2 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +13 -2
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +4 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +429 -23
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +538 -3
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +57 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.js +18 -0
- package/vscode/src/vs/platform/agentHost/common/tunnelAgentHost.d.ts +146 -14
- package/vscode/src/vs/platform/agentHost/common/tunnelAgentHost.js +1 -1
- package/vscode/src/vs/platform/agentPlugins/common/agentPluginParser.d.ts +12 -0
- package/vscode/src/vs/platform/agentPlugins/common/agentPluginParser.js +58 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +67 -16
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +200 -45
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +119 -0
- package/vscode/src/vs/platform/assignment/common/assignment.js +53 -0
- package/vscode/src/vs/platform/browserView/common/browserPermissions.js +14 -14
- package/vscode/src/vs/platform/browserView/common/browserView.d.ts +150 -27
- package/vscode/src/vs/platform/browserView/common/browserView.js +27 -1
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +3 -1
- package/vscode/src/vs/platform/browserView/common/cdp/types.d.ts +19 -7
- package/vscode/src/vs/platform/chat/common/chatSettings.d.ts +21 -0
- package/vscode/src/vs/platform/chat/common/chatSettings.js +50 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +90 -6
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +50 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +58 -12
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +12 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +12 -11
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/contextview/browser/contextMenuHandler.js +2 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +3 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +1 -1
- package/vscode/src/vs/platform/contextview/browser/contextViewService.d.ts +1 -1
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +3 -2
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +1 -1
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.d.ts +42 -0
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.js +73 -2
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.service.d.ts +13 -1
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.service.js +2 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +20 -3
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.js +3 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +7 -4
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +17 -21
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -12
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +58 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +18 -3
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.js +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +18 -17
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.d.ts +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +8 -0
- package/vscode/src/vs/platform/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +15 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +15 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/github/common/githubPullRequestMutationService.d.ts +150 -0
- package/vscode/src/vs/platform/github/common/githubPullRequestService.d.ts +182 -0
- package/vscode/src/vs/platform/github/common/githubQueryService.d.ts +187 -0
- package/vscode/src/vs/platform/github/common/githubService.service.d.ts +18 -0
- package/vscode/src/vs/platform/github/common/githubService.service.js +6 -0
- package/vscode/src/vs/platform/github/common/githubTypes.d.ts +30 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +3 -3
- package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverService.d.ts +5 -0
- package/vscode/src/vs/platform/hover/browser/hoverService.js +16 -3
- package/vscode/src/vs/platform/hover/browser/hoverWidget.d.ts +1 -0
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +24 -7
- package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +3 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +21 -5
- package/vscode/src/vs/platform/label/common/label.d.ts +17 -0
- package/vscode/src/vs/platform/label/common/label.service.d.ts +4 -2
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +29 -29
- package/vscode/src/vs/platform/localTranscription/common/localTranscription.d.ts +53 -0
- package/vscode/src/vs/platform/localTranscription/common/localTranscription.js +13 -0
- package/vscode/src/vs/platform/localTranscription/common/localTranscription.service.d.ts +84 -0
- package/vscode/src/vs/platform/localTranscription/common/localTranscription.service.js +6 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +2 -2
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.d.ts +18 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.js +9 -1
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +18 -1
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.d.ts +13 -3
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +40 -11
- package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.d.ts +1 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.service.d.ts +4 -0
- package/vscode/src/vs/platform/native/common/native.d.ts +116 -10
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.d.ts +5 -1
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/opener/common/opener.d.ts +5 -0
- package/vscode/src/vs/platform/opener/common/opener.js +2 -1
- package/vscode/src/vs/platform/opener/common/opener.service.d.ts +1 -1
- package/vscode/src/vs/platform/policy/common/copilotManagedSettings.d.ts +98 -24
- package/vscode/src/vs/platform/policy/common/copilotManagedSettings.js +100 -7
- package/vscode/src/vs/platform/policy/common/copilotManagedSettings.service.d.ts +13 -1
- package/vscode/src/vs/platform/policy/common/copilotManagedSettings.service.js +2 -1
- package/vscode/src/vs/platform/policy/common/managedSettingsFreshness.d.ts +58 -0
- package/vscode/src/vs/platform/policy/common/managedSettingsFreshness.js +35 -0
- package/vscode/src/vs/platform/policy/common/policy.d.ts +18 -0
- package/vscode/src/vs/platform/policy/common/policy.js +50 -5
- package/vscode/src/vs/platform/policy/common/policy.service.d.ts +3 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +45 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +3 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +5 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +80 -14
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +8 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +2 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +3 -0
- package/vscode/src/vs/platform/remoteTunnel/common/remoteTunnel.service.d.ts +15 -0
- package/vscode/src/vs/platform/remoteTunnel/common/remoteTunnel.service.js +6 -0
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +46 -27
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.d.ts +2 -0
- package/vscode/src/vs/platform/sandbox/common/settings.d.ts +2 -6
- package/vscode/src/vs/platform/sandbox/common/settings.js +0 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxMxcRuntime.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/errorTelemetry.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +2 -2
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +4 -2
- package/vscode/src/vs/platform/terminal/common/autoApprove/gitAutoApproveRules.d.ts +6 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/gitAutoApproveRules.js +16 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/powershellAutoApproveRules.d.ts +8 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/powershellAutoApproveRules.js +26 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/sortAutoApproveRules.d.ts +4 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/sortAutoApproveRules.js +9 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +6 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +4 -0
- package/vscode/src/vs/platform/terminal/common/terminal.js +3 -1
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +34 -34
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +7 -7
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.d.ts +13 -0
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +37 -27
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +36 -0
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/url/common/trustedDomains.d.ts +8 -0
- package/vscode/src/vs/platform/url/common/trustedDomains.js +12 -3
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +2 -2
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.d.ts +2 -2
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionServiceImpl.js +2 -3
- package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.js +8 -5
- package/vscode/src/vs/platform/window/common/window.d.ts +13 -0
- package/vscode/src/vs/platform/window/common/window.js +13 -1
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +2 -2
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +51 -21
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +34 -8
- package/vscode/src/vs/workbench/api/common/extHostAgentEditorComments.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostAgentEditorComments.js +20 -3
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +31 -7
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +46 -15
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +18 -11
- package/vscode/src/vs/workbench/api/common/extHostChatContext.d.ts +10 -5
- package/vscode/src/vs/workbench/api/common/extHostChatContext.js +40 -52
- package/vscode/src/vs/workbench/api/common/extHostChatInputNotification.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +4 -4
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +7 -7
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.d.ts +35 -3
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.js +170 -11
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -2
- package/vscode/src/vs/workbench/api/common/extHostEmbedding.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostEmbedding.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +11 -11
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +6 -6
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -4
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +12 -4
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +27 -17
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +14 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +63 -19
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +17 -7
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +8 -5
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostXaaAuthProvider.d.ts +8 -0
- package/vscode/src/vs/workbench/api/common/extHostXaaAuthProvider.js +20 -16
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +87 -11
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +437 -241
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -137
- package/vscode/src/vs/workbench/browser/actions/menuMotion.d.ts +10 -0
- package/vscode/src/vs/workbench/browser/actions/menuMotion.js +14 -0
- package/vscode/src/vs/workbench/browser/actions/policyDiagnosticsMarkdown.d.ts +4 -0
- package/vscode/src/vs/workbench/browser/actions/policyDiagnosticsMarkdown.js +32 -0
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +76 -49
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -4
- package/vscode/src/vs/workbench/browser/contextkeys.js +16 -12
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +7 -5
- package/vscode/src/vs/workbench/browser/media/floatingPanels.css +524 -82
- package/vscode/src/vs/workbench/browser/part.js +10 -8
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +64 -8
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +152 -50
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +29 -34
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +15 -5
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css +6 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +13 -10
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +4 -3
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.d.ts +7 -4
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +50 -38
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.d.ts +27 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +175 -35
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.d.ts +9 -2
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +53 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.d.ts +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +43 -170
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommandsService.d.ts +28 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommandsService.js +227 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommandsService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommandsService.service.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +31 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.d.ts +8 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +179 -141
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +25 -25
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +23 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.d.ts +11 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +81 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorHeaderControl.d.ts +33 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorHeaderControl.js +215 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +8 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +33 -23
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +37 -13
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.d.ts +18 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +94 -21
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.d.ts +11 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +45 -53
- package/vscode/src/vs/workbench/browser/parts/editor/editorTypePicker.d.ts +37 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorTypePicker.js +96 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.d.ts +7 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +13 -15
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css +42 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +9 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +8 -12
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css +20 -7
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +29 -5
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +154 -72
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.d.ts +6 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +18 -3
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +34 -21
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +43 -8
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.d.ts +11 -3
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +125 -30
- package/vscode/src/vs/workbench/browser/parts/media/globalCompositeBar.css +15 -0
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css +12 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationAccessibleView.js +126 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +21 -10
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +14 -14
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +19 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +14 -14
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +48 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.d.ts +11 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +23 -12
- package/vscode/src/vs/workbench/browser/parts/notifications/pendingNotificationToasts.d.ts +13 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/pendingNotificationToasts.js +64 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +5 -23
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +35 -43
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +10 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +16 -12
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +13 -10
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +8 -8
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +10 -0
- package/vscode/src/vs/workbench/browser/window.js +17 -17
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +276 -232
- package/vscode/src/vs/workbench/common/configuration.d.ts +1 -0
- package/vscode/src/vs/workbench/common/configuration.js +12 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +5 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +102 -88
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +25 -1
- package/vscode/src/vs/workbench/common/editor.js +11 -5
- package/vscode/src/vs/workbench/common/notifications.d.ts +7 -0
- package/vscode/src/vs/workbench/common/notifications.js +21 -7
- package/vscode/src/vs/workbench/common/theme.d.ts +30 -0
- package/vscode/src/vs/workbench/common/theme.js +403 -168
- package/vscode/src/vs/workbench/common/views.d.ts +1 -1
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +230 -162
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +14 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.service.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +31 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.js +26 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +82 -36
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +55 -27
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.js +190 -96
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.service.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/browserView/common/browserZoomService.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/browserView/common/browserZoomService.service.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +17 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +132 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +341 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +16 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.service.d.ts +34 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.service.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLegacyMigration.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLegacyMigration.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.service.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.service.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.service.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.service.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service.d.ts +18 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +23 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +85 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +157 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.service.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +24 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +34 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +75 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +140 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageUtils.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageUtils.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutline.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutline.js +238 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetService.service.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.service.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +314 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +34 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +15 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +106 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +161 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyService.service.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pcmCaptureWorklet.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pcmCaptureWorklet.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.service.d.ts +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.d.ts +333 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.js +1368 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.service.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationDownloadRing.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationDownloadRing.js +86 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationLanguage.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationLanguage.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationOnboarding.service.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationOnboarding.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationSession.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/dictationSession.js +408 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/media/dictationSession.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +535 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.service.d.ts +21 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceEndpoint.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceEndpoint.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service.d.ts +78 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.service.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.service.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.service.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +186 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +20 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.service.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +21 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +174 -42
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +183 -93
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +14 -28
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +31 -27
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +150 -3
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +178 -12
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +194 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestOrigin.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestOrigin.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestOrigin.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestOrigin.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +16 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +42 -48
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +256 -33
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +18 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionTypePreference.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionTypePreference.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +132 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +30 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +99 -26
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +286 -50
- package/vscode/src/vs/workbench/contrib/chat/common/contextContrib/chatContext.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +31 -13
- package/vscode/src/vs/workbench/contrib/chat/common/customizationLockdown.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationLockdown.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.d.ts +33 -7
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.service.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/enablement.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/enablement.js +32 -10
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +98 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +126 -51
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +136 -11
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +304 -62
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +16 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +121 -50
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.js +16 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +26 -81
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +39 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +178 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +12 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +294 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginGitService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +212 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +955 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +9 -11
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +38 -37
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +97 -79
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +10 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +29 -11
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.service.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +201 -51
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +62 -18
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.js +17 -3
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +15 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +136 -49
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +31 -30
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +24 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.service.d.ts +47 -5
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +106 -29
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +10 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHintTypes.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHintTypes.js +5 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +16 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +116 -79
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +12 -12
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +20 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +71 -71
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -8
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.js +9 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +33 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +22 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +10 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +23 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +3 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementContext.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementContext.js +38 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +199 -158
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +193 -198
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +49 -50
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +78 -78
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css +9 -17
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css +30 -35
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +5 -5
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +57 -41
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +63 -27
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +30 -30
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +32 -29
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/media/explorerviewlet.css +12 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.d.ts +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +69 -23
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +18 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css +6 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +100 -21
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +44 -29
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +70 -70
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +42 -47
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.js +6 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +62 -55
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +113 -24
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +39 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +108 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +6 -5
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +51 -15
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +59 -22
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +8 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- 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/notebook.css +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +4 -69
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +44 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +3 -35
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -13
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +62 -61
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +36 -18
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +51 -15
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +10 -9
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +11 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/match.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/textSearchHeading.js +5 -7
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +59 -56
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +16 -16
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/search.js +1 -1
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css +1 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +23 -17
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +64 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +5 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +19 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +107 -137
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/resizeDimensionsOverlay/common/terminalResizeDimensionsOverlayConfiguration.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/resizeDimensionsOverlay/common/terminalResizeDimensionsOverlayConfiguration.js +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/update/common/update.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/update/common/update.js +9 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +162 -4
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +555 -59
- package/vscode/src/vs/workbench/services/accounts/browser/managedSettings.d.ts +47 -0
- package/vscode/src/vs/workbench/services/accounts/browser/managedSettings.js +48 -3
- package/vscode/src/vs/workbench/services/agentEditorComments/common/agentEditorComments.service.d.ts +8 -3
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.service.d.ts +34 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.service.js +6 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/codexAccountService.d.ts +37 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/codexAccountService.js +160 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/codexAccountService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/codexAccountService.service.js +6 -0
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.d.ts +42 -3
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +19 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +7 -6
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.d.ts +3 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +10 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +59 -7
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +107 -29
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/dataChannel/browser/dataChannelService.d.ts +55 -0
- package/vscode/src/vs/workbench/services/dataChannel/browser/dataChannelService.js +567 -0
- package/vscode/src/vs/workbench/services/decorations/common/decorations.d.ts +13 -0
- package/vscode/src/vs/workbench/services/decorations/common/decorations.js +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +7 -4
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +4 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +10 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +68 -4
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +103 -6
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +23 -7
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +17 -2
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionGalleryAccount.d.ts +27 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionGalleryAccount.service.d.ts +15 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionGalleryAccount.service.js +6 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +27 -19
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +8 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +110 -88
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +6 -4
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +12 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +5 -2
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +1 -0
- package/vscode/src/vs/workbench/services/history/common/history.js +2 -1
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +81 -13
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +102 -3
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +12 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.js +7 -4
- package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.d.ts +12 -2
- package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.js +6 -5
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +1 -27
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +1 -3
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +7 -19
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -2
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -9
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +0 -8
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +0 -3
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +15 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +56 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.d.ts +1 -0
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +12 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +4 -4
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceFolderLabelService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceFolderLabelService.service.js +6 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -1
- package/vscode-dts/vscode.d.ts +4 -1
- package/vscode-dts/vscode.proposed.agentEditorComments.d.ts +27 -1
- package/vscode-dts/{vscode.proposed.customEditorPriority.d.ts → vscode.proposed.agentsWindowActivation.d.ts} +1 -1
- package/vscode-dts/vscode.proposed.authSessionAccountIcon.d.ts +13 -0
- package/vscode-dts/vscode.proposed.authSessionExpiration.d.ts +19 -0
- package/vscode-dts/vscode.proposed.chatContextProvider.d.ts +26 -84
- package/vscode-dts/vscode.proposed.chatInputNotification.d.ts +6 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +11 -11
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +40 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +32 -0
- package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +5 -0
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +6 -0
- package/vscode-dts/vscode.proposed.d.ts +5 -1
- package/vscode-dts/vscode.proposed.linkPresentation.d.ts +136 -0
- package/vscode-dts/vscode.proposed.terminalRemoteResolver.d.ts +21 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.d.ts +0 -16
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.js +0 -47
- package/vscode/src/vs/platform/browserView/common/playwrightService.d.ts +0 -7
- package/vscode/src/vs/platform/browserView/common/playwrightService.service.d.ts +0 -123
- package/vscode/src/vs/platform/browserView/common/playwrightService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.d.ts +0 -95
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +0 -83
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +0 -82
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +0 -107
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { ThrottledDelayer, runWhenGlobalIdle } from '../../../../../base/common/async.js';
|
|
4
|
+
import { CancellationToken } from '../../../../../base/common/cancellation.js';
|
|
5
|
+
import { isCancellationError, onUnexpectedError } from '../../../../../base/common/errors.js';
|
|
6
|
+
import { Event } from '../../../../../base/common/event.js';
|
|
7
|
+
import { parse } from '../../../../../base/common/json.js';
|
|
8
|
+
import { Lazy } from '../../../../../base/common/lazy.js';
|
|
9
|
+
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
10
|
+
import { revive } from '../../../../../base/common/marshalling.js';
|
|
11
|
+
import '../../../../../base/common/observableInternal/index.js';
|
|
12
|
+
import { joinPath, isEqualOrParent, isEqual, normalizePath, relativePath } from '../../../../../base/common/resources.js';
|
|
13
|
+
import { URI } from '../../../../../base/common/uri.js';
|
|
14
|
+
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
15
|
+
import { IEnvironmentService } from '../../../../../platform/environment/common/environment.service.js';
|
|
16
|
+
import { IFileService } from '../../../../../platform/files/common/files.service.js';
|
|
17
|
+
import { ILogService } from '../../../../../platform/log/common/log.service.js';
|
|
18
|
+
import { IMeteredConnectionService } from '../../../../../platform/meteredConnection/common/meteredConnection.service.js';
|
|
19
|
+
import { observableMemento } from '../../../../../platform/observable/common/observableMemento.js';
|
|
20
|
+
import { asJson } from '../../../../../platform/request/common/request.js';
|
|
21
|
+
import { IRequestService } from '../../../../../platform/request/common/request.service.js';
|
|
22
|
+
import { StorageScope, StorageTarget } from '../../../../../platform/storage/common/storage.js';
|
|
23
|
+
import { IStorageService } from '../../../../../platform/storage/common/storage.service.js';
|
|
24
|
+
import { AutoUpdateConfigurationKey } from '../../../extensions/common/extensions.js';
|
|
25
|
+
import { IExtensionsWorkbenchService } from '../../../extensions/common/extensions.service.js';
|
|
26
|
+
import { ChatConfiguration } from '../constants.js';
|
|
27
|
+
import { IAgentPluginRepositoryService } from './agentPluginRepositoryService.service.js';
|
|
28
|
+
import { FileBackedInstalledPluginsStore } from './fileBackedInstalledPluginsStore.js';
|
|
29
|
+
import { IWorkspacePluginSettingsService } from './workspacePluginSettingsService.service.js';
|
|
30
|
+
import { IWorkspaceTrustManagementService } from '../../../../../platform/workspace/common/workspaceTrust.service.js';
|
|
31
|
+
import { readAgentPluginManifest } from '../../../../../platform/agentPlugins/common/agentPluginParser.js';
|
|
32
|
+
import { readConfiguredMarketplaces, parseMarketplaceReferences, deduplicateMarketplaceReferences, parseMarketplaceReference, parseMarketplaceObjectEntry, MarketplaceReferenceKind } from './marketplaceReference.js';
|
|
33
|
+
import { getStrictKnownMarketplaces, isMarketplaceReferenceAllowed } from './strictKnownMarketplaces.js';
|
|
34
|
+
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
35
|
+
import { observableFromEvent } from '../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
36
|
+
import { derived } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
37
|
+
import { autorun } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
38
|
+
|
|
39
|
+
var MarketplaceType;
|
|
40
|
+
(function(MarketplaceType) {
|
|
41
|
+
MarketplaceType["Copilot"] = "copilot";
|
|
42
|
+
MarketplaceType["Claude"] = "claude";
|
|
43
|
+
MarketplaceType["OpenPlugin"] = "openPlugin";
|
|
44
|
+
})(MarketplaceType || (MarketplaceType = {}));
|
|
45
|
+
var PluginSourceKind;
|
|
46
|
+
(function(PluginSourceKind) {
|
|
47
|
+
PluginSourceKind["RelativePath"] = "relativePath";
|
|
48
|
+
PluginSourceKind["GitHub"] = "github";
|
|
49
|
+
PluginSourceKind["GitUrl"] = "url";
|
|
50
|
+
PluginSourceKind["Npm"] = "npm";
|
|
51
|
+
PluginSourceKind["Pip"] = "pip";
|
|
52
|
+
})(PluginSourceKind || (PluginSourceKind = {}));
|
|
53
|
+
const MARKETPLACE_DEFINITIONS = [{
|
|
54
|
+
type: MarketplaceType.OpenPlugin,
|
|
55
|
+
path: "marketplace.json"
|
|
56
|
+
}, {
|
|
57
|
+
type: MarketplaceType.OpenPlugin,
|
|
58
|
+
path: ".plugin/marketplace.json"
|
|
59
|
+
}, {
|
|
60
|
+
type: MarketplaceType.Copilot,
|
|
61
|
+
path: ".github/plugin/marketplace.json"
|
|
62
|
+
}, {
|
|
63
|
+
type: MarketplaceType.Claude,
|
|
64
|
+
path: ".claude-plugin/marketplace.json"
|
|
65
|
+
}];
|
|
66
|
+
const SINGLE_PLUGIN_MANIFEST_DEFINITIONS = [{
|
|
67
|
+
type: MarketplaceType.OpenPlugin,
|
|
68
|
+
path: ".plugin/plugin.json"
|
|
69
|
+
}, {
|
|
70
|
+
type: MarketplaceType.Claude,
|
|
71
|
+
path: ".claude-plugin/plugin.json"
|
|
72
|
+
}, {
|
|
73
|
+
type: MarketplaceType.Copilot,
|
|
74
|
+
path: "plugin.json"
|
|
75
|
+
}];
|
|
76
|
+
const GITHUB_MARKETPLACE_CACHE_TTL_MS = 8 * 60 * 60 * 1000;
|
|
77
|
+
const GITHUB_MARKETPLACE_CACHE_STORAGE_KEY = "chat.plugins.marketplaces.githubCache.v1";
|
|
78
|
+
const PLUGIN_UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1000;
|
|
79
|
+
const PLUGIN_UPDATE_LAST_CHECK_STORAGE_KEY = "chat.plugins.lastUpdateCheck.v1";
|
|
80
|
+
function ensureSourceDescriptor(plugin) {
|
|
81
|
+
if (plugin.sourceDescriptor) {
|
|
82
|
+
return plugin;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
...plugin,
|
|
86
|
+
sourceDescriptor: {
|
|
87
|
+
kind: PluginSourceKind.RelativePath,
|
|
88
|
+
path: plugin.source
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
const trustedMarketplacesMemento = observableMemento({
|
|
93
|
+
defaultValue: [],
|
|
94
|
+
key: "chat.plugins.trustedMarketplaces.v1",
|
|
95
|
+
toStorage: value => JSON.stringify(value),
|
|
96
|
+
fromStorage: value => {
|
|
97
|
+
const parsed = JSON.parse(value);
|
|
98
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
const lastFetchedPluginsMemento = observableMemento({
|
|
102
|
+
defaultValue: {
|
|
103
|
+
plugins: [],
|
|
104
|
+
fetchedAt: 0
|
|
105
|
+
},
|
|
106
|
+
key: "chat.plugins.lastFetchedPlugins.v2",
|
|
107
|
+
toStorage: value => JSON.stringify(value),
|
|
108
|
+
fromStorage: value => {
|
|
109
|
+
const parsed = JSON.parse(value);
|
|
110
|
+
if (parsed && Array.isArray(parsed.plugins)) {
|
|
111
|
+
return parsed;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
plugins: [],
|
|
115
|
+
fetchedAt: 0
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
let PluginMarketplaceService = class PluginMarketplaceService extends Disposable {
|
|
120
|
+
constructor(
|
|
121
|
+
_configurationService,
|
|
122
|
+
_requestService,
|
|
123
|
+
environmentService,
|
|
124
|
+
_fileService,
|
|
125
|
+
_pluginRepositoryService,
|
|
126
|
+
_logService,
|
|
127
|
+
_storageService,
|
|
128
|
+
_workspacePluginSettingsService,
|
|
129
|
+
_workspaceTrustService,
|
|
130
|
+
_extensionsWorkbenchService,
|
|
131
|
+
_meteredConnectionService
|
|
132
|
+
) {
|
|
133
|
+
super();
|
|
134
|
+
this._configurationService = _configurationService;
|
|
135
|
+
this._requestService = _requestService;
|
|
136
|
+
this._fileService = _fileService;
|
|
137
|
+
this._pluginRepositoryService = _pluginRepositoryService;
|
|
138
|
+
this._logService = _logService;
|
|
139
|
+
this._storageService = _storageService;
|
|
140
|
+
this._workspacePluginSettingsService = _workspacePluginSettingsService;
|
|
141
|
+
this._workspaceTrustService = _workspaceTrustService;
|
|
142
|
+
this._extensionsWorkbenchService = _extensionsWorkbenchService;
|
|
143
|
+
this._meteredConnectionService = _meteredConnectionService;
|
|
144
|
+
this._gitHubMarketplaceCache = ( new Lazy(() => this._loadPersistedGitHubMarketplaceCache()));
|
|
145
|
+
this._pluginMetadata = ( new Map());
|
|
146
|
+
this._marketplacesWithUpdates = observableValue("marketplacesWithUpdates", ( new Set()));
|
|
147
|
+
this._updateCheckDelayer = this._register(( new ThrottledDelayer(PLUGIN_UPDATE_CHECK_INTERVAL_MS)));
|
|
148
|
+
this._updateChecksInitialized = false;
|
|
149
|
+
this._updateCheckRunning = false;
|
|
150
|
+
this.marketplacesWithUpdates = this._marketplacesWithUpdates;
|
|
151
|
+
const oldCacheRoot = joinPath(environmentService.cacheHome, "agentPlugins");
|
|
152
|
+
this._installedPluginsStore = this._register(( new FileBackedInstalledPluginsStore(
|
|
153
|
+
_pluginRepositoryService.agentPluginsHome,
|
|
154
|
+
oldCacheRoot,
|
|
155
|
+
_fileService,
|
|
156
|
+
_logService,
|
|
157
|
+
_storageService
|
|
158
|
+
)));
|
|
159
|
+
this._trustedMarketplacesStore = this._register(
|
|
160
|
+
trustedMarketplacesMemento(StorageScope.APPLICATION, StorageTarget.MACHINE, _storageService)
|
|
161
|
+
);
|
|
162
|
+
this._lastFetchedPluginsStore = this._register(
|
|
163
|
+
lastFetchedPluginsMemento(StorageScope.APPLICATION, StorageTarget.MACHINE, _storageService)
|
|
164
|
+
);
|
|
165
|
+
this.lastFetchedPlugins = ( this._lastFetchedPluginsStore.map(s => {
|
|
166
|
+
const revived = revive(s);
|
|
167
|
+
return ( revived.plugins.map(ensureSourceDescriptor));
|
|
168
|
+
}));
|
|
169
|
+
this.installedPlugins = ( this._installedPluginsStore.value.map(entries => {
|
|
170
|
+
const result = [];
|
|
171
|
+
for (const e of entries) {
|
|
172
|
+
const plugin = this._pluginMetadata.get(( e.pluginUri.toString()));
|
|
173
|
+
if (plugin) {
|
|
174
|
+
result.push({
|
|
175
|
+
pluginUri: e.pluginUri,
|
|
176
|
+
plugin
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return result;
|
|
181
|
+
}));
|
|
182
|
+
const workspaceTrusted = observableFromEvent(
|
|
183
|
+
this,
|
|
184
|
+
this._workspaceTrustService.onDidChangeTrust,
|
|
185
|
+
() => this._workspaceTrustService.isWorkspaceTrusted()
|
|
186
|
+
);
|
|
187
|
+
this.recommendedPlugins = derived(reader => {
|
|
188
|
+
if (!workspaceTrusted.read(reader)) {
|
|
189
|
+
return ( new Set());
|
|
190
|
+
}
|
|
191
|
+
const enabledMap = this._workspacePluginSettingsService.enabledPlugins.read(reader);
|
|
192
|
+
const keys = ( new Set());
|
|
193
|
+
for (const [key, value] of enabledMap) {
|
|
194
|
+
if (value) {
|
|
195
|
+
keys.add(key);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return keys;
|
|
199
|
+
});
|
|
200
|
+
this.onDidChangeMarketplaces = Event.any(Event.filter(
|
|
201
|
+
_configurationService.onDidChangeConfiguration,
|
|
202
|
+
e => e.affectsConfiguration(ChatConfiguration.PluginsEnabled) || e.affectsConfiguration(ChatConfiguration.PluginMarketplaces) || e.affectsConfiguration(ChatConfiguration.ExtraMarketplaces)
|
|
203
|
+
), Event.fromObservableLight(this._workspacePluginSettingsService.extraMarketplaces), ( Event.map(this._workspaceTrustService.onDidChangeTrust, () => {})));
|
|
204
|
+
this._register(runWhenGlobalIdle(() => {
|
|
205
|
+
this._updateChecksInitialized = true;
|
|
206
|
+
this._scheduleUpdateCheck();
|
|
207
|
+
this._register(Event.filter(
|
|
208
|
+
_configurationService.onDidChangeConfiguration,
|
|
209
|
+
e => e.affectsConfiguration(AutoUpdateConfigurationKey) || e.affectsConfiguration(ChatConfiguration.ExtraMarketplaces) || e.affectsConfiguration(ChatConfiguration.StrictMarketplaces)
|
|
210
|
+
)(() => {
|
|
211
|
+
this._marketplacesWithUpdates.set(( new Set()), undefined);
|
|
212
|
+
this._scheduleUpdateCheck(0);
|
|
213
|
+
}));
|
|
214
|
+
this._register(
|
|
215
|
+
this._meteredConnectionService.onDidChangeIsConnectionMetered(isMetered => {
|
|
216
|
+
if (isMetered) {
|
|
217
|
+
this._updateCheckDelayer.cancel();
|
|
218
|
+
} else if (!this._updateCheckRunning && !this._updateCheckDelayer.isTriggered()) {
|
|
219
|
+
this._scheduleUpdateCheck();
|
|
220
|
+
}
|
|
221
|
+
})
|
|
222
|
+
);
|
|
223
|
+
}));
|
|
224
|
+
this._register(autorun(reader => {
|
|
225
|
+
const entries = this._installedPluginsStore.value.read(reader);
|
|
226
|
+
const unhydrated = entries.filter(e => !( this._pluginMetadata.has(( e.pluginUri.toString()))));
|
|
227
|
+
if (unhydrated.length > 0) {
|
|
228
|
+
this._hydratePluginMetadata(unhydrated);
|
|
229
|
+
}
|
|
230
|
+
}));
|
|
231
|
+
}
|
|
232
|
+
clearUpdatesAvailable(marketplaceIds) {
|
|
233
|
+
const remaining = marketplaceIds ? ( new Set([...this._marketplacesWithUpdates.get()].filter(id => !( marketplaceIds.has(id))))) : ( new Set());
|
|
234
|
+
this._marketplacesWithUpdates.set(remaining, undefined);
|
|
235
|
+
if (remaining.size === 0 && this._updateChecksInitialized && !this._updateCheckRunning && !this._updateCheckDelayer.isTriggered()) {
|
|
236
|
+
this._scheduleUpdateCheck();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
async fetchMarketplacePlugins(token, marketplaceIds, options) {
|
|
240
|
+
if (!this._configurationService.getValue(ChatConfiguration.PluginsEnabled)) {
|
|
241
|
+
return [];
|
|
242
|
+
}
|
|
243
|
+
const {
|
|
244
|
+
effectiveValues
|
|
245
|
+
} = readConfiguredMarketplaces(this._configurationService);
|
|
246
|
+
const configRefs = parseMarketplaceReferences(effectiveValues);
|
|
247
|
+
let allRefs;
|
|
248
|
+
if (this._workspaceTrustService.isWorkspaceTrusted()) {
|
|
249
|
+
const workspaceEntries = this._workspacePluginSettingsService.extraMarketplaces.get();
|
|
250
|
+
allRefs = deduplicateMarketplaceReferences(( workspaceEntries.map(e => e.reference)), configRefs);
|
|
251
|
+
} else {
|
|
252
|
+
allRefs = configRefs;
|
|
253
|
+
}
|
|
254
|
+
for (const value of effectiveValues) {
|
|
255
|
+
const parsed = typeof value === "string" ? parseMarketplaceReference(value) : (value && typeof value === "object" ? parseMarketplaceObjectEntry(value) : undefined);
|
|
256
|
+
if (!parsed) {
|
|
257
|
+
this._logService.debug(
|
|
258
|
+
`[PluginMarketplaceService] Ignoring invalid marketplace entry: ${String(value)}`
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
const refsToFetch = allRefs.filter(ref => (!marketplaceIds || ( marketplaceIds.has(ref.canonicalId))) && this._isMarketplaceAllowedByStrictPolicy(ref));
|
|
263
|
+
const results = await Promise.all(( refsToFetch.map(ref => {
|
|
264
|
+
if (ref.kind === MarketplaceReferenceKind.GitHubShorthand && ref.githubRepo) {
|
|
265
|
+
return this._fetchFromGitHubRepo(ref, ref.githubRepo, token, options);
|
|
266
|
+
}
|
|
267
|
+
return this._fetchFromClonedRepo(ref, token, options);
|
|
268
|
+
})));
|
|
269
|
+
const plugins = results.flat();
|
|
270
|
+
if (token.isCancellationRequested) {
|
|
271
|
+
return plugins;
|
|
272
|
+
}
|
|
273
|
+
const storedPlugins = marketplaceIds ? [...this.lastFetchedPlugins.get().filter(plugin => !( marketplaceIds.has(plugin.marketplaceReference.canonicalId))), ...plugins] : plugins;
|
|
274
|
+
this._lastFetchedPluginsStore.set({
|
|
275
|
+
plugins: storedPlugins,
|
|
276
|
+
fetchedAt: Date.now()
|
|
277
|
+
}, undefined);
|
|
278
|
+
return plugins;
|
|
279
|
+
}
|
|
280
|
+
async _fetchFromGitHubRepo(reference, repo, token, options) {
|
|
281
|
+
const cache = this._gitHubMarketplaceCache.value;
|
|
282
|
+
const cached = options?.refresh ? undefined : this._getCachedGitHubMarketplacePlugins(cache, reference.canonicalId);
|
|
283
|
+
if (cached) {
|
|
284
|
+
return ( cached.map(c => {
|
|
285
|
+
const plugin = ensureSourceDescriptor(c);
|
|
286
|
+
return {
|
|
287
|
+
...plugin,
|
|
288
|
+
marketplace: reference.displayLabel,
|
|
289
|
+
marketplaceReference: reference,
|
|
290
|
+
readmeUri: getMarketplaceReadmeUri(plugin.sourceDescriptor, reference, plugin.source)
|
|
291
|
+
};
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
let repoMayBePrivate = true;
|
|
295
|
+
const plugins = await this._readPluginsFromDefinitions(reference, async defPath => {
|
|
296
|
+
if (token.isCancellationRequested) {
|
|
297
|
+
return undefined;
|
|
298
|
+
}
|
|
299
|
+
const ref = encodeURIComponent(reference.ref ?? "main");
|
|
300
|
+
const url = `https://raw.githubusercontent.com/${repo}/${ref}/${defPath}`;
|
|
301
|
+
try {
|
|
302
|
+
const context = await this._requestService.request({
|
|
303
|
+
type: "GET",
|
|
304
|
+
url,
|
|
305
|
+
callSite: "pluginMarketplaceService.fetchPluginList"
|
|
306
|
+
}, token);
|
|
307
|
+
const statusCode = context.res.statusCode;
|
|
308
|
+
if (statusCode !== 200) {
|
|
309
|
+
repoMayBePrivate &&= statusCode !== undefined && statusCode >= 400 && statusCode < 500;
|
|
310
|
+
this._logService.debug(
|
|
311
|
+
`[PluginMarketplaceService] ${url} returned status ${statusCode}, skipping`
|
|
312
|
+
);
|
|
313
|
+
return undefined;
|
|
314
|
+
}
|
|
315
|
+
return (await asJson(context)) ?? undefined;
|
|
316
|
+
} catch (err) {
|
|
317
|
+
this._logService.debug(
|
|
318
|
+
`[PluginMarketplaceService] Failed to fetch marketplace.json from ${url}:`,
|
|
319
|
+
err
|
|
320
|
+
);
|
|
321
|
+
return undefined;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
if (plugins.length > 0) {
|
|
325
|
+
cache.set(reference.canonicalId, {
|
|
326
|
+
plugins,
|
|
327
|
+
expiresAt: Date.now() + GITHUB_MARKETPLACE_CACHE_TTL_MS,
|
|
328
|
+
referenceRawValue: reference.rawValue
|
|
329
|
+
});
|
|
330
|
+
this._savePersistedGitHubMarketplaceCache(cache);
|
|
331
|
+
return plugins;
|
|
332
|
+
}
|
|
333
|
+
if (repoMayBePrivate) {
|
|
334
|
+
this._logService.debug(
|
|
335
|
+
`[PluginMarketplaceService] ${repo} may be private, attempting clone-based marketplace discovery`
|
|
336
|
+
);
|
|
337
|
+
if (cache.delete(reference.canonicalId)) {
|
|
338
|
+
this._savePersistedGitHubMarketplaceCache(cache);
|
|
339
|
+
}
|
|
340
|
+
return this._fetchFromClonedRepo(reference, token, options);
|
|
341
|
+
}
|
|
342
|
+
this._logService.debug(`[PluginMarketplaceService] No marketplace.json found in ${repo}`);
|
|
343
|
+
return [];
|
|
344
|
+
}
|
|
345
|
+
_getCachedGitHubMarketplacePlugins(cache, cacheKey) {
|
|
346
|
+
const cached = cache.get(cacheKey);
|
|
347
|
+
if (!cached) {
|
|
348
|
+
return undefined;
|
|
349
|
+
}
|
|
350
|
+
if (cached.expiresAt <= Date.now()) {
|
|
351
|
+
cache.delete(cacheKey);
|
|
352
|
+
this._savePersistedGitHubMarketplaceCache(cache);
|
|
353
|
+
return undefined;
|
|
354
|
+
}
|
|
355
|
+
return [...cached.plugins];
|
|
356
|
+
}
|
|
357
|
+
_loadPersistedGitHubMarketplaceCache() {
|
|
358
|
+
const cache = ( new Map());
|
|
359
|
+
const now = Date.now();
|
|
360
|
+
const stored = this._storageService.getObject(GITHUB_MARKETPLACE_CACHE_STORAGE_KEY, StorageScope.APPLICATION);
|
|
361
|
+
if (!stored) {
|
|
362
|
+
return cache;
|
|
363
|
+
}
|
|
364
|
+
const revived = revive(stored);
|
|
365
|
+
for (const [cacheKey, entry] of Object.entries(revived)) {
|
|
366
|
+
if (!entry || !Array.isArray(entry.plugins) || typeof entry.expiresAt !== "number" || entry.expiresAt <= now || typeof entry.referenceRawValue !== "string") {
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
369
|
+
const reference = parseMarketplaceReference(entry.referenceRawValue);
|
|
370
|
+
if (!reference) {
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
const plugins = ( entry.plugins.map(plugin => ensureSourceDescriptor({
|
|
374
|
+
...plugin,
|
|
375
|
+
marketplace: reference.displayLabel,
|
|
376
|
+
marketplaceReference: reference
|
|
377
|
+
})));
|
|
378
|
+
cache.set(cacheKey, {
|
|
379
|
+
plugins,
|
|
380
|
+
expiresAt: entry.expiresAt,
|
|
381
|
+
referenceRawValue: entry.referenceRawValue
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
return cache;
|
|
385
|
+
}
|
|
386
|
+
_savePersistedGitHubMarketplaceCache(cache) {
|
|
387
|
+
const serialized = {};
|
|
388
|
+
for (const [cacheKey, entry] of cache) {
|
|
389
|
+
if (!entry.plugins.length || entry.expiresAt <= Date.now()) {
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
serialized[cacheKey] = {
|
|
393
|
+
expiresAt: entry.expiresAt,
|
|
394
|
+
referenceRawValue: entry.referenceRawValue,
|
|
395
|
+
plugins: entry.plugins
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
if (( Object.keys(serialized)).length === 0) {
|
|
399
|
+
this._storageService.remove(GITHUB_MARKETPLACE_CACHE_STORAGE_KEY, StorageScope.APPLICATION);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this._storageService.store(
|
|
403
|
+
GITHUB_MARKETPLACE_CACHE_STORAGE_KEY,
|
|
404
|
+
JSON.stringify(serialized),
|
|
405
|
+
StorageScope.APPLICATION,
|
|
406
|
+
StorageTarget.MACHINE
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
getMarketplacePluginMetadata(pluginUri) {
|
|
410
|
+
return this._pluginMetadata.get(( pluginUri.toString())) ?? [...this._pluginMetadata.entries()].find(([key]) => isEqualOrParent(pluginUri, ( URI.parse(key))))?.[1];
|
|
411
|
+
}
|
|
412
|
+
addInstalledPlugin(pluginUri, plugin) {
|
|
413
|
+
this._pluginMetadata.set(( pluginUri.toString()), plugin);
|
|
414
|
+
const entry = {
|
|
415
|
+
pluginUri,
|
|
416
|
+
marketplace: plugin.marketplaceReference.rawValue,
|
|
417
|
+
name: plugin.name
|
|
418
|
+
};
|
|
419
|
+
const current = this._installedPluginsStore.get();
|
|
420
|
+
const existing = current.find(e => isEqual(e.pluginUri, pluginUri));
|
|
421
|
+
if (existing) {
|
|
422
|
+
this._installedPluginsStore.set(( current.map(c => c === existing ? entry : c)), undefined);
|
|
423
|
+
} else {
|
|
424
|
+
this._installedPluginsStore.set([...current, entry], undefined);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
removeInstalledPlugin(pluginUri) {
|
|
428
|
+
this._pluginMetadata.delete(( pluginUri.toString()));
|
|
429
|
+
const current = this._installedPluginsStore.get();
|
|
430
|
+
this._installedPluginsStore.set(current.filter(e => !isEqual(e.pluginUri, pluginUri)), undefined);
|
|
431
|
+
}
|
|
432
|
+
isMarketplaceTrusted(ref) {
|
|
433
|
+
const allowlist = getStrictKnownMarketplaces(this._configurationService.getValue(ChatConfiguration.StrictMarketplaces));
|
|
434
|
+
if (allowlist !== undefined) {
|
|
435
|
+
return isMarketplaceReferenceAllowed(allowlist, ref);
|
|
436
|
+
}
|
|
437
|
+
return this._trustedMarketplacesStore.get().includes(ref.canonicalId);
|
|
438
|
+
}
|
|
439
|
+
isStrictMarketplacePolicyActive() {
|
|
440
|
+
return getStrictKnownMarketplaces(this._configurationService.getValue(ChatConfiguration.StrictMarketplaces)) !== undefined;
|
|
441
|
+
}
|
|
442
|
+
isMarketplaceAutoUpdateEnabled(ref) {
|
|
443
|
+
const {
|
|
444
|
+
extraValues
|
|
445
|
+
} = readConfiguredMarketplaces(this._configurationService);
|
|
446
|
+
const managedRef = parseMarketplaceReferences(extraValues).find(candidate => candidate.canonicalId === ref.canonicalId);
|
|
447
|
+
return managedRef?.autoUpdate ?? this._extensionsWorkbenchService.getAutoUpdateValue() !== "off";
|
|
448
|
+
}
|
|
449
|
+
_isMarketplaceAllowedByStrictPolicy(ref) {
|
|
450
|
+
return !this.isStrictMarketplacePolicyActive() || this.isMarketplaceTrusted(ref);
|
|
451
|
+
}
|
|
452
|
+
async _hydratePluginMetadata(entries) {
|
|
453
|
+
let hydrated = 0;
|
|
454
|
+
for (const entry of entries) {
|
|
455
|
+
const key = ( entry.pluginUri.toString());
|
|
456
|
+
if (( this._pluginMetadata.has(key))) {
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
const reference = parseMarketplaceReference(entry.marketplace);
|
|
460
|
+
if (!reference) {
|
|
461
|
+
this._logService.debug(
|
|
462
|
+
`[PluginMarketplaceService] Cannot parse marketplace reference '${entry.marketplace}' for ${key}`
|
|
463
|
+
);
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
try {
|
|
467
|
+
const plugins = await this._readPluginsForInstalledEntry(reference, CancellationToken.None);
|
|
468
|
+
const match = plugins.length === 0 ? await this.readSinglePluginManifest(entry.pluginUri, reference) : plugins.find(
|
|
469
|
+
p => entry.name ? p.name === entry.name : isEqual(this._pluginRepositoryService.getPluginInstallUri(p), entry.pluginUri)
|
|
470
|
+
);
|
|
471
|
+
if (match) {
|
|
472
|
+
this._pluginMetadata.set(key, match);
|
|
473
|
+
hydrated++;
|
|
474
|
+
}
|
|
475
|
+
} catch (err) {
|
|
476
|
+
this._logService.debug(`[PluginMarketplaceService] Failed to hydrate metadata for ${key}:`, err);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if (hydrated > 0) {
|
|
480
|
+
const current = this._installedPluginsStore.get();
|
|
481
|
+
this._installedPluginsStore.set([...current], undefined);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
async _readPluginsForInstalledEntry(reference, token) {
|
|
485
|
+
if (reference.kind === MarketplaceReferenceKind.GitHubShorthand && reference.githubRepo) {
|
|
486
|
+
return this._fetchFromGitHubRepo(reference, reference.githubRepo, token);
|
|
487
|
+
}
|
|
488
|
+
return this._readPluginsFromDirectory(
|
|
489
|
+
this._pluginRepositoryService.getRepositoryUri(reference),
|
|
490
|
+
reference,
|
|
491
|
+
token
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
_parseMarketplacePlugins(json, reference, marketplaceType, repoDir) {
|
|
495
|
+
if (!json.plugins || !Array.isArray(json.plugins)) {
|
|
496
|
+
return [];
|
|
497
|
+
}
|
|
498
|
+
return json.plugins.filter(p => typeof p.name === "string" && !!p.name).flatMap(p => {
|
|
499
|
+
const sourceDescriptor = parsePluginSource(p.source, json.metadata?.pluginRoot, {
|
|
500
|
+
pluginName: p.name,
|
|
501
|
+
logService: this._logService,
|
|
502
|
+
logPrefix: "[PluginMarketplaceService]"
|
|
503
|
+
});
|
|
504
|
+
if (!sourceDescriptor) {
|
|
505
|
+
return [];
|
|
506
|
+
}
|
|
507
|
+
const source = sourceDescriptor.kind === PluginSourceKind.RelativePath ? sourceDescriptor.path : "";
|
|
508
|
+
return [{
|
|
509
|
+
name: p.name,
|
|
510
|
+
description: p.description ?? "",
|
|
511
|
+
version: p.version ?? "",
|
|
512
|
+
source,
|
|
513
|
+
sourceDescriptor,
|
|
514
|
+
marketplace: reference.displayLabel,
|
|
515
|
+
marketplaceReference: reference,
|
|
516
|
+
marketplaceType,
|
|
517
|
+
readmeUri: getMarketplaceReadmeUri(sourceDescriptor, reference, source, repoDir)
|
|
518
|
+
}];
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
trustMarketplace(ref) {
|
|
522
|
+
const current = this._trustedMarketplacesStore.get();
|
|
523
|
+
if (!current.includes(ref.canonicalId)) {
|
|
524
|
+
this._trustedMarketplacesStore.set([...current, ref.canonicalId], undefined);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
_hasAutoUpdateEnabledMarketplace() {
|
|
528
|
+
if (this._extensionsWorkbenchService.getAutoUpdateValue() !== "off") {
|
|
529
|
+
return true;
|
|
530
|
+
}
|
|
531
|
+
const {
|
|
532
|
+
extraValues
|
|
533
|
+
} = readConfiguredMarketplaces(this._configurationService);
|
|
534
|
+
return ( parseMarketplaceReferences(extraValues).some(ref => ref.autoUpdate === true));
|
|
535
|
+
}
|
|
536
|
+
_scheduleUpdateCheck(delayOverride) {
|
|
537
|
+
this._updateCheckDelayer.cancel();
|
|
538
|
+
if (this._store.isDisposed || this._meteredConnectionService.isConnectionMetered || this._marketplacesWithUpdates.get().size > 0 || !this._hasAutoUpdateEnabledMarketplace()) {
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
const lastCheck = this._storageService.getNumber(PLUGIN_UPDATE_LAST_CHECK_STORAGE_KEY, StorageScope.APPLICATION, 0);
|
|
542
|
+
const elapsed = Date.now() - lastCheck;
|
|
543
|
+
const delay = delayOverride ?? Math.max(0, PLUGIN_UPDATE_CHECK_INTERVAL_MS - elapsed);
|
|
544
|
+
this._updateCheckDelayer.trigger(async () => {
|
|
545
|
+
this._updateCheckRunning = true;
|
|
546
|
+
try {
|
|
547
|
+
await this._doRunUpdateCheck();
|
|
548
|
+
} finally {
|
|
549
|
+
this._updateCheckRunning = false;
|
|
550
|
+
if (!this._updateCheckDelayer.isTriggered()) {
|
|
551
|
+
this._scheduleUpdateCheck(PLUGIN_UPDATE_CHECK_INTERVAL_MS);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}, delay).catch(error => {
|
|
555
|
+
if (!isCancellationError(error)) {
|
|
556
|
+
onUnexpectedError(error);
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
async _doRunUpdateCheck() {
|
|
561
|
+
if (this._meteredConnectionService.isConnectionMetered) {
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
try {
|
|
565
|
+
const installed = this.installedPlugins.get();
|
|
566
|
+
if (installed.length === 0) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
const seenMarketplaces = ( new Set());
|
|
570
|
+
const marketplacesWithUpdates = ( new Set());
|
|
571
|
+
for (const entry of installed) {
|
|
572
|
+
const ref = entry.plugin.marketplaceReference;
|
|
573
|
+
if (( seenMarketplaces.has(ref.canonicalId)) || !this.isMarketplaceAutoUpdateEnabled(ref) || !this._isMarketplaceAllowedByStrictPolicy(ref)) {
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
seenMarketplaces.add(ref.canonicalId);
|
|
577
|
+
try {
|
|
578
|
+
const behind = await this._pluginRepositoryService.fetchRepository(ref);
|
|
579
|
+
if (behind) {
|
|
580
|
+
marketplacesWithUpdates.add(ref.canonicalId);
|
|
581
|
+
}
|
|
582
|
+
} catch (err) {
|
|
583
|
+
this._logService.debug(
|
|
584
|
+
`[PluginMarketplaceService] Update check failed for ${ref.displayLabel}:`,
|
|
585
|
+
err
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
this._marketplacesWithUpdates.set(marketplacesWithUpdates, undefined);
|
|
590
|
+
this._storageService.store(
|
|
591
|
+
PLUGIN_UPDATE_LAST_CHECK_STORAGE_KEY,
|
|
592
|
+
Date.now(),
|
|
593
|
+
StorageScope.APPLICATION,
|
|
594
|
+
StorageTarget.MACHINE
|
|
595
|
+
);
|
|
596
|
+
} catch (err) {
|
|
597
|
+
this._logService.debug("[PluginMarketplaceService] Periodic update check failed:", err);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
async _fetchFromClonedRepo(reference, token, options) {
|
|
601
|
+
let repoDir;
|
|
602
|
+
try {
|
|
603
|
+
repoDir = await this._pluginRepositoryService.ensureRepository(reference, {
|
|
604
|
+
refreshIfOlderThanMs: options?.refresh ? 0 : GITHUB_MARKETPLACE_CACHE_TTL_MS,
|
|
605
|
+
token
|
|
606
|
+
});
|
|
607
|
+
} catch (err) {
|
|
608
|
+
this._logService.debug(
|
|
609
|
+
`[PluginMarketplaceService] Failed to prepare marketplace repository ${reference.rawValue}:`,
|
|
610
|
+
err
|
|
611
|
+
);
|
|
612
|
+
options?.onMarketplaceError?.(reference, err);
|
|
613
|
+
return [];
|
|
614
|
+
}
|
|
615
|
+
return this._readPluginsFromDirectory(repoDir, reference, token);
|
|
616
|
+
}
|
|
617
|
+
async readPluginsFromDirectory(repoDir, reference) {
|
|
618
|
+
return this._readPluginsFromDirectory(repoDir, reference);
|
|
619
|
+
}
|
|
620
|
+
async readSinglePluginManifest(repoDir, reference) {
|
|
621
|
+
if (reference.kind !== MarketplaceReferenceKind.GitHubShorthand && reference.kind !== MarketplaceReferenceKind.GitUri) {
|
|
622
|
+
return undefined;
|
|
623
|
+
}
|
|
624
|
+
const sourceDescriptor = reference.kind === MarketplaceReferenceKind.GitHubShorthand ? {
|
|
625
|
+
kind: PluginSourceKind.GitHub,
|
|
626
|
+
repo: reference.githubRepo
|
|
627
|
+
} : {
|
|
628
|
+
kind: PluginSourceKind.GitUrl,
|
|
629
|
+
url: reference.cloneUrl
|
|
630
|
+
};
|
|
631
|
+
const agentManifest = await readAgentPluginManifest(repoDir, this._fileService);
|
|
632
|
+
if (agentManifest) {
|
|
633
|
+
return {
|
|
634
|
+
name: agentManifest.name ?? reference.displayLabel,
|
|
635
|
+
description: agentManifest.description ?? "",
|
|
636
|
+
version: agentManifest.version ?? "",
|
|
637
|
+
source: "",
|
|
638
|
+
sourceDescriptor,
|
|
639
|
+
marketplace: reference.displayLabel,
|
|
640
|
+
marketplaceReference: reference,
|
|
641
|
+
marketplaceType: MarketplaceType.OpenPlugin
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
for (const def of SINGLE_PLUGIN_MANIFEST_DEFINITIONS) {
|
|
645
|
+
const manifestUri = joinPath(repoDir, def.path);
|
|
646
|
+
let manifest;
|
|
647
|
+
try {
|
|
648
|
+
const contents = await this._fileService.readFile(manifestUri);
|
|
649
|
+
const parsed = parse(( contents.value.toString()));
|
|
650
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
651
|
+
manifest = parsed;
|
|
652
|
+
}
|
|
653
|
+
} catch {
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
if (!manifest) {
|
|
657
|
+
continue;
|
|
658
|
+
}
|
|
659
|
+
const manifestName = typeof manifest["name"] === "string" && manifest["name"] ? manifest["name"] : reference.displayLabel;
|
|
660
|
+
const manifestDescription = typeof manifest["description"] === "string" ? manifest["description"] : "";
|
|
661
|
+
const manifestVersion = typeof manifest["version"] === "string" ? manifest["version"] : "";
|
|
662
|
+
return {
|
|
663
|
+
name: manifestName,
|
|
664
|
+
description: manifestDescription,
|
|
665
|
+
version: manifestVersion,
|
|
666
|
+
source: "",
|
|
667
|
+
sourceDescriptor,
|
|
668
|
+
marketplace: reference.displayLabel,
|
|
669
|
+
marketplaceReference: reference,
|
|
670
|
+
marketplaceType: def.type
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
this._logService.debug(
|
|
674
|
+
`[PluginMarketplaceService] No single-plugin manifest found in ${reference.rawValue}`
|
|
675
|
+
);
|
|
676
|
+
return undefined;
|
|
677
|
+
}
|
|
678
|
+
async isPluginDirectory(repoDir) {
|
|
679
|
+
if (await readAgentPluginManifest(repoDir, this._fileService)) {
|
|
680
|
+
return true;
|
|
681
|
+
}
|
|
682
|
+
for (const def of SINGLE_PLUGIN_MANIFEST_DEFINITIONS) {
|
|
683
|
+
if (await this._fileService.exists(joinPath(repoDir, def.path))) {
|
|
684
|
+
return true;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
689
|
+
async _readPluginsFromDirectory(repoDir, reference, token) {
|
|
690
|
+
return this._readPluginsFromDefinitions(reference, async defPath => {
|
|
691
|
+
if (token?.isCancellationRequested) {
|
|
692
|
+
return undefined;
|
|
693
|
+
}
|
|
694
|
+
const definitionUri = joinPath(repoDir, defPath);
|
|
695
|
+
try {
|
|
696
|
+
const contents = await this._fileService.readFile(definitionUri);
|
|
697
|
+
return parse(( contents.value.toString()));
|
|
698
|
+
} catch {
|
|
699
|
+
return undefined;
|
|
700
|
+
}
|
|
701
|
+
}, repoDir);
|
|
702
|
+
}
|
|
703
|
+
async _readPluginsFromDefinitions(reference, readJson, repoDir) {
|
|
704
|
+
for (const def of MARKETPLACE_DEFINITIONS) {
|
|
705
|
+
const json = await readJson(def.path);
|
|
706
|
+
if (!json?.plugins || !Array.isArray(json.plugins)) {
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
709
|
+
return this._parseMarketplacePlugins(json, reference, def.type, repoDir);
|
|
710
|
+
}
|
|
711
|
+
this._logService.debug(
|
|
712
|
+
`[PluginMarketplaceService] No marketplace.json found in ${reference.rawValue}`
|
|
713
|
+
);
|
|
714
|
+
return [];
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
PluginMarketplaceService = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IRequestService)), ( __param(2, IEnvironmentService)), ( __param(3, IFileService)), ( __param(4, IAgentPluginRepositoryService)), ( __param(5, ILogService)), ( __param(6, IStorageService)), ( __param(7, IWorkspacePluginSettingsService)), ( __param(8, IWorkspaceTrustManagementService)), ( __param(9, IExtensionsWorkbenchService)), ( __param(10, IMeteredConnectionService))], PluginMarketplaceService));
|
|
718
|
+
function normalizeMarketplacePath(value) {
|
|
719
|
+
let normalized = value.trim().replace(/\\/g, "/");
|
|
720
|
+
normalized = normalized.replace(/^\.?\/+/, "").replace(/\/+$/g, "");
|
|
721
|
+
return normalized;
|
|
722
|
+
}
|
|
723
|
+
function resolvePluginSource(pluginRoot, source) {
|
|
724
|
+
const normalizedRoot = pluginRoot ? normalizeMarketplacePath(pluginRoot) : "";
|
|
725
|
+
const normalizedSource = normalizeMarketplacePath(source);
|
|
726
|
+
const repoRoot = URI.file("/");
|
|
727
|
+
const pluginRootUri = normalizedRoot ? normalizePath(joinPath(repoRoot, normalizedRoot)) : repoRoot;
|
|
728
|
+
if (normalizedRoot && (normalizedSource === normalizedRoot || normalizedSource.startsWith(`${normalizedRoot}/`))) {
|
|
729
|
+
return normalizedSource;
|
|
730
|
+
}
|
|
731
|
+
const resolvedUri = normalizePath(joinPath(pluginRootUri, normalizedSource));
|
|
732
|
+
return relativePath(repoRoot, resolvedUri) ?? undefined;
|
|
733
|
+
}
|
|
734
|
+
function parsePluginSource(rawSource, pluginRoot, logContext) {
|
|
735
|
+
if (rawSource === undefined || rawSource === null) {
|
|
736
|
+
const resolved = resolvePluginSource(pluginRoot, "");
|
|
737
|
+
if (resolved === undefined) {
|
|
738
|
+
return undefined;
|
|
739
|
+
}
|
|
740
|
+
return {
|
|
741
|
+
kind: PluginSourceKind.RelativePath,
|
|
742
|
+
path: resolved
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
if (typeof rawSource === "string") {
|
|
746
|
+
const resolved = resolvePluginSource(pluginRoot, rawSource);
|
|
747
|
+
if (resolved === undefined) {
|
|
748
|
+
return undefined;
|
|
749
|
+
}
|
|
750
|
+
return {
|
|
751
|
+
kind: PluginSourceKind.RelativePath,
|
|
752
|
+
path: resolved
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
if (typeof rawSource !== "object" || typeof rawSource.source !== "string") {
|
|
756
|
+
logContext.logService.warn(
|
|
757
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': source object is missing a 'source' discriminant`
|
|
758
|
+
);
|
|
759
|
+
return undefined;
|
|
760
|
+
}
|
|
761
|
+
switch (rawSource.source) {
|
|
762
|
+
case "github":
|
|
763
|
+
{
|
|
764
|
+
if (typeof rawSource.repo !== "string" || !rawSource.repo) {
|
|
765
|
+
logContext.logService.warn(
|
|
766
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': github source is missing required 'repo' field`
|
|
767
|
+
);
|
|
768
|
+
return undefined;
|
|
769
|
+
}
|
|
770
|
+
if (!isValidGitHubRepo(rawSource.repo)) {
|
|
771
|
+
logContext.logService.warn(
|
|
772
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': github source repo must be in 'owner/repo' format`
|
|
773
|
+
);
|
|
774
|
+
return undefined;
|
|
775
|
+
}
|
|
776
|
+
if (!isOptionalString(rawSource.ref)) {
|
|
777
|
+
logContext.logService.warn(
|
|
778
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': github source 'ref' must be a string when provided`
|
|
779
|
+
);
|
|
780
|
+
return undefined;
|
|
781
|
+
}
|
|
782
|
+
if (!isOptionalGitSha(rawSource.sha)) {
|
|
783
|
+
logContext.logService.warn(
|
|
784
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': github source 'sha' must be a full 40-character commit hash when provided`
|
|
785
|
+
);
|
|
786
|
+
return undefined;
|
|
787
|
+
}
|
|
788
|
+
if (!isOptionalString(rawSource.path)) {
|
|
789
|
+
logContext.logService.warn(
|
|
790
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': github source 'path' must be a string when provided`
|
|
791
|
+
);
|
|
792
|
+
return undefined;
|
|
793
|
+
}
|
|
794
|
+
return {
|
|
795
|
+
kind: PluginSourceKind.GitHub,
|
|
796
|
+
repo: rawSource.repo,
|
|
797
|
+
ref: rawSource.ref,
|
|
798
|
+
sha: rawSource.sha,
|
|
799
|
+
path: rawSource.path
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
case "url":
|
|
803
|
+
case "git-subdir":
|
|
804
|
+
{
|
|
805
|
+
if (typeof rawSource.url !== "string" || !rawSource.url) {
|
|
806
|
+
logContext.logService.warn(
|
|
807
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': ${rawSource.source} source is missing required 'url' field`
|
|
808
|
+
);
|
|
809
|
+
return undefined;
|
|
810
|
+
}
|
|
811
|
+
if (rawSource.source === "url" && !rawSource.url.toLowerCase().endsWith(".git")) {
|
|
812
|
+
logContext.logService.warn(
|
|
813
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': url source must end with '.git'`
|
|
814
|
+
);
|
|
815
|
+
return undefined;
|
|
816
|
+
}
|
|
817
|
+
if (!isOptionalString(rawSource.ref)) {
|
|
818
|
+
logContext.logService.warn(
|
|
819
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': ${rawSource.source} source 'ref' must be a string when provided`
|
|
820
|
+
);
|
|
821
|
+
return undefined;
|
|
822
|
+
}
|
|
823
|
+
if (!isOptionalGitSha(rawSource.sha)) {
|
|
824
|
+
logContext.logService.warn(
|
|
825
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': ${rawSource.source} source 'sha' must be a full 40-character commit hash when provided`
|
|
826
|
+
);
|
|
827
|
+
return undefined;
|
|
828
|
+
}
|
|
829
|
+
if (rawSource.source === "git-subdir") {
|
|
830
|
+
if (typeof rawSource.path !== "string" || !rawSource.path) {
|
|
831
|
+
logContext.logService.warn(
|
|
832
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': git-subdir source is missing required 'path' field`
|
|
833
|
+
);
|
|
834
|
+
return undefined;
|
|
835
|
+
}
|
|
836
|
+
} else if (!isOptionalString(rawSource.path)) {
|
|
837
|
+
logContext.logService.warn(
|
|
838
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': url source 'path' must be a string when provided`
|
|
839
|
+
);
|
|
840
|
+
return undefined;
|
|
841
|
+
}
|
|
842
|
+
return {
|
|
843
|
+
kind: PluginSourceKind.GitUrl,
|
|
844
|
+
url: rawSource.url,
|
|
845
|
+
ref: rawSource.ref,
|
|
846
|
+
sha: rawSource.sha,
|
|
847
|
+
path: rawSource.path
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
case "npm":
|
|
851
|
+
{
|
|
852
|
+
if (typeof rawSource.package !== "string" || !rawSource.package) {
|
|
853
|
+
logContext.logService.warn(
|
|
854
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': npm source is missing required 'package' field`
|
|
855
|
+
);
|
|
856
|
+
return undefined;
|
|
857
|
+
}
|
|
858
|
+
if (!isOptionalString(rawSource.version) || !isOptionalString(rawSource.registry)) {
|
|
859
|
+
logContext.logService.warn(
|
|
860
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': npm source 'version' and 'registry' must be strings when provided`
|
|
861
|
+
);
|
|
862
|
+
return undefined;
|
|
863
|
+
}
|
|
864
|
+
return {
|
|
865
|
+
kind: PluginSourceKind.Npm,
|
|
866
|
+
package: rawSource.package,
|
|
867
|
+
version: rawSource.version,
|
|
868
|
+
registry: rawSource.registry
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
case "pip":
|
|
872
|
+
{
|
|
873
|
+
if (typeof rawSource.package !== "string" || !rawSource.package) {
|
|
874
|
+
logContext.logService.warn(
|
|
875
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': pip source is missing required 'package' field`
|
|
876
|
+
);
|
|
877
|
+
return undefined;
|
|
878
|
+
}
|
|
879
|
+
if (!isOptionalString(rawSource.version) || !isOptionalString(rawSource.registry)) {
|
|
880
|
+
logContext.logService.warn(
|
|
881
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': pip source 'version' and 'registry' must be strings when provided`
|
|
882
|
+
);
|
|
883
|
+
return undefined;
|
|
884
|
+
}
|
|
885
|
+
return {
|
|
886
|
+
kind: PluginSourceKind.Pip,
|
|
887
|
+
package: rawSource.package,
|
|
888
|
+
version: rawSource.version,
|
|
889
|
+
registry: rawSource.registry
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
default:
|
|
893
|
+
logContext.logService.warn(
|
|
894
|
+
`${logContext.logPrefix} Skipping plugin '${logContext.pluginName}': unknown source kind '${rawSource.source}'`
|
|
895
|
+
);
|
|
896
|
+
return undefined;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
function isOptionalString(value) {
|
|
900
|
+
return value === undefined || typeof value === "string";
|
|
901
|
+
}
|
|
902
|
+
function isOptionalGitSha(value) {
|
|
903
|
+
return value === undefined || (typeof value === "string" && /^[0-9a-fA-F]{40}$/.test(value));
|
|
904
|
+
}
|
|
905
|
+
function isValidGitHubRepo(repo) {
|
|
906
|
+
return /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repo);
|
|
907
|
+
}
|
|
908
|
+
function hasSourceChanged(installed, marketplace) {
|
|
909
|
+
if (installed.kind !== marketplace.kind) {
|
|
910
|
+
return true;
|
|
911
|
+
}
|
|
912
|
+
switch (installed.kind) {
|
|
913
|
+
case PluginSourceKind.GitHub:
|
|
914
|
+
return installed.ref !== marketplace.ref || installed.sha !== marketplace.sha || installed.path !== marketplace.path;
|
|
915
|
+
case PluginSourceKind.GitUrl:
|
|
916
|
+
return installed.ref !== marketplace.ref || installed.sha !== marketplace.sha || installed.path !== marketplace.path;
|
|
917
|
+
case PluginSourceKind.Npm:
|
|
918
|
+
return installed.version !== marketplace.version;
|
|
919
|
+
case PluginSourceKind.Pip:
|
|
920
|
+
return installed.version !== marketplace.version;
|
|
921
|
+
default:
|
|
922
|
+
return false;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
function getMarketplaceReadmeUri(sourceDescriptor, reference, source, repoDir) {
|
|
926
|
+
if (sourceDescriptor.kind === PluginSourceKind.GitHub) {
|
|
927
|
+
const ref = sourceDescriptor.sha ?? sourceDescriptor.ref ?? "main";
|
|
928
|
+
const normalizedPath = sourceDescriptor.path?.trim().replace(/^\.?\/+|\/+$/g, "");
|
|
929
|
+
const readmePath = normalizedPath ? `${normalizedPath}/README.md` : "README.md";
|
|
930
|
+
return ( URI.parse(`https://github.com/${sourceDescriptor.repo}/blob/${ref}/${readmePath}`));
|
|
931
|
+
}
|
|
932
|
+
if (sourceDescriptor.kind === PluginSourceKind.GitUrl && sourceDescriptor.url.startsWith("https://github.com/")) {
|
|
933
|
+
const repo = sourceDescriptor.url.replace(/^https:\/\/github\.com\//, "").replace(/\.git$/, "");
|
|
934
|
+
const ref = sourceDescriptor.sha ?? sourceDescriptor.ref ?? "main";
|
|
935
|
+
const normalizedPath = sourceDescriptor.path?.trim().replace(/^\.?\/+|\/+$/g, "");
|
|
936
|
+
const readmePath = normalizedPath ? `${normalizedPath}/README.md` : "README.md";
|
|
937
|
+
return ( URI.parse(`https://github.com/${repo}/blob/${ref}/${readmePath}`));
|
|
938
|
+
}
|
|
939
|
+
if (repoDir) {
|
|
940
|
+
return getMarketplaceReadmeFileUri(repoDir, source);
|
|
941
|
+
}
|
|
942
|
+
if (!reference.githubRepo) {
|
|
943
|
+
return undefined;
|
|
944
|
+
}
|
|
945
|
+
const normalizedSource = source.trim().replace(/^\.?\/+|\/+$/g, "");
|
|
946
|
+
const readmePath = normalizedSource ? `${normalizedSource}/README.md` : "README.md";
|
|
947
|
+
const ref = reference.ref ?? "main";
|
|
948
|
+
return ( URI.parse(`https://github.com/${reference.githubRepo}/blob/${ref}/${readmePath}`));
|
|
949
|
+
}
|
|
950
|
+
function getMarketplaceReadmeFileUri(repoDir, source) {
|
|
951
|
+
const normalizedSource = source.trim().replace(/^\.?\/+|\/+$/g, "");
|
|
952
|
+
return normalizedSource ? joinPath(repoDir, normalizedSource, "README.md") : joinPath(repoDir, "README.md");
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export { MarketplaceReferenceKind, MarketplaceType, PluginMarketplaceService, PluginSourceKind, deduplicateMarketplaceReferences, hasSourceChanged, parseMarketplaceReference, parseMarketplaceReferences, parsePluginSource, readConfiguredMarketplaces };
|