@codingame/monaco-vscode-api 19.1.3 → 20.0.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 +141 -54
- package/package.json +8 -8
- package/services.d.ts +5 -5
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/dom.d.ts +7 -5
- package/vscode/src/vs/base/browser/dom.js +21 -132
- package/vscode/src/vs/base/browser/domSanitize.d.ts +28 -0
- package/vscode/src/vs/base/browser/domSanitize.js +175 -0
- package/vscode/src/vs/base/browser/formattedTextRenderer.d.ts +2 -5
- package/vscode/src/vs/base/browser/formattedTextRenderer.js +13 -20
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +23 -13
- package/vscode/src/vs/base/browser/markdownRenderer.js +155 -126
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +9 -11
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +24 -15
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +5 -10
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +9 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -21
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +7 -7
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +9 -5
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +48 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElementOptions.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css +0 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +22 -12
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +93 -33
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +3 -0
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +19 -17
- package/vscode/src/vs/base/browser/webWorkerFactory.d.ts +1 -1
- package/vscode/src/vs/base/browser/webWorkerFactory.js +3 -2
- package/vscode/src/vs/base/common/arrays.js +4 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +1 -0
- package/vscode/src/vs/base/common/async.d.ts +26 -0
- package/vscode/src/vs/base/common/async.js +103 -1
- package/vscode/src/vs/base/common/codicons.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
- package/vscode/src/vs/base/common/lifecycle.js +4 -0
- package/vscode/src/vs/base/common/marshallingIds.d.ts +3 -1
- package/vscode/src/vs/base/common/marshallingIds.js +2 -0
- package/vscode/src/vs/base/common/network.d.ts +2 -1
- package/vscode/src/vs/base/common/network.js +2 -1
- package/vscode/src/vs/base/common/oauth.d.ts +2 -8
- package/vscode/src/vs/base/common/oauth.js +6 -27
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +10 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +33 -1
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +22 -1
- package/vscode/src/vs/base/common/observableInternal/map.d.ts +24 -0
- package/vscode/src/vs/base/common/observableInternal/map.js +63 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +8 -0
- package/vscode/src/vs/base/common/platform.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +19 -7
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +16 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +4 -4
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.d.ts +48 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.js +182 -0
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +3 -5
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +30 -73
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.d.ts +35 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +329 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.d.ts +31 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +176 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +12 -12
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +50 -88
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.d.ts +11 -0
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.d.ts +9 -12
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +22 -11
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -21
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +23 -2
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.d.ts +2 -2
- package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +31 -114
- package/vscode/src/vs/editor/browser/controller/mouseTarget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +26 -7
- package/vscode/src/vs/editor/browser/coreCommands.d.ts +3 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +2 -2
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +5 -2
- package/vscode/src/vs/editor/browser/gpu/taskQueue.js +11 -4
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -2
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +33 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +6 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +4 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +13 -2
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +2 -1
- package/vscode/src/vs/editor/browser/view/viewUserInputEvents.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -3
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +8 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +3 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +44 -13
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +7 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +9 -4
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +43 -35
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +21 -4
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +3 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +9 -3
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +4 -4
- package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +21 -6
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +178 -162
- package/vscode/src/vs/editor/common/config/editorOptions.js +592 -495
- package/vscode/src/vs/editor/common/coordinatesConverter.d.ts +30 -0
- package/vscode/src/vs/editor/common/coordinatesConverter.js +56 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +3 -3
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +14 -14
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +11 -4
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +36 -12
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +20 -0
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/text/abstractText.js +3 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +2 -2
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +4 -4
- package/vscode/src/vs/editor/common/cursor/cursor.js +9 -9
- package/vscode/src/vs/editor/common/cursor/cursorContext.d.ts +1 -1
- package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.d.ts +2 -1
- package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +28 -13
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +15 -6
- package/vscode/src/vs/editor/common/cursorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/cursorCommon.js +2 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +3 -3
- package/vscode/src/vs/editor/common/languages/linkComputer.js +1 -4
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +19 -0
- package/vscode/src/vs/editor/common/languages.js +83 -57
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/editStack.js +3 -3
- package/vscode/src/vs/editor/common/model/textModel.d.ts +7 -6
- package/vscode/src/vs/editor/common/model/textModel.js +5 -4
- package/vscode/src/vs/editor/common/model.d.ts +6 -1
- package/vscode/src/vs/editor/common/model.js +6 -1
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +2 -2
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +172 -160
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +174 -161
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +151 -0
- package/vscode/src/vs/editor/common/{textModelEditReason.js → textModelEditSource.js} +44 -23
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +2 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +8 -5
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +29 -29
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.d.ts +2 -1
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +21 -0
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +30 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +2 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +11 -3
- package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.d.ts +11 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.js +49 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +7 -11
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +5 -43
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +7 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +32 -9
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +4 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +5 -55
- package/vscode/src/vs/editor/common/viewModel.d.ts +8 -34
- package/vscode/src/vs/editor/common/viewModel.js +3 -35
- 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 +44 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +8 -7
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -1
- 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/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/colorPickerParts/colorPickerSaturationBox.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +0 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -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 +10 -19
- 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.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +54 -29
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- 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.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- 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 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- 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.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +31 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +6 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +7 -2
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +6 -2
- 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 +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +18 -19
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +17 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +22 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +107 -83
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +31 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +27 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +32 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +145 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +14 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +42 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- 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.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +105 -33
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +34 -28
- 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/readOnlyMessage/browser/contribution.js +2 -2
- 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/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- 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/stickyScrollWidget.js +5 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -13
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -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.d.ts +6 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +30 -30
- 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 +9 -6
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/editor.worker.start.d.ts +1 -1
- package/vscode/src/vs/editor/editor.worker.start.js +26 -18
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +2 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +3 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +45 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +20 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.d.ts +5 -5
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -3
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -3
- package/vscode/src/vs/platform/actions/common/actions.js +4 -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/clipboard/browser/clipboardService.d.ts +1 -1
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +12 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +5 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +20 -10
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +1 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.d.ts +62 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.js +55 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- 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/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +21 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +21 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.d.ts +5 -0
- package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.js +6 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- 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.service.d.ts +8 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.js +2 -1
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +1 -0
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +20 -9
- package/vscode/src/vs/platform/opener/browser/link.js +1 -4
- package/vscode/src/vs/platform/policy/common/policy.d.ts +2 -2
- package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +81 -14
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +10 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -14
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +38 -11
- package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.d.ts → quickInputList.d.ts} +1 -1
- package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.js → quickInputList.js} +9 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +13 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +9 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.js +35 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +13 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +33 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +42 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +296 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +10 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +39 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +33 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +148 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +53 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +189 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +46 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +2 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/environmentVariableShared.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -5
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -4
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- 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 +47 -47
- 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 +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +12 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +14 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +64 -9
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +102 -41
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +98 -27
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +22 -4
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +24 -5
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.js +32 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +35 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +222 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.d.ts +15 -0
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.js +44 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +32 -34
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +12 -15
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +127 -120
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +40 -25
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +28 -10
- package/vscode/src/vs/workbench/api/common/extHostSecretState.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSecretState.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTask.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +12 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.d.ts +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +203 -198
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +19 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +211 -33
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +77 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +69 -11
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +4 -2
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +24 -10
- package/vscode/src/vs/workbench/browser/contextkeys.js +10 -5
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +87 -78
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.d.ts +32 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +180 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.d.ts +12 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +26 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +10 -0
- package/vscode/src/vs/workbench/common/editor/editorModel.js +27 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.d.ts +51 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +303 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.d.ts +18 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.js +45 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.d.ts +47 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +181 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.d.ts +2 -2
- package/vscode/src/vs/workbench/common/theme.js +161 -161
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -156
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +59 -48
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +81 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +32 -11
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +8 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +47 -17
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +147 -65
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +203 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- 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/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- 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/mcp/common/mcpRegistryTypes.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +28 -10
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- 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.js +9 -9
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +8 -10
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +5 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +7 -0
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +10 -13
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +2 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +100 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.d.ts +61 -0
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +7 -0
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +11 -8
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +3 -2
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- 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.js +1 -1
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +1 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +5 -5
- package/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts +86 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +142 -5
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +25 -19
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +2 -103
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +129 -0
- package/vscode-dts/vscode.proposed.d.ts +7 -0
- package/vscode-dts/vscode.proposed.dataChannels.d.ts +19 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
- package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +25 -0
- package/vscode-dts/vscode.proposed.scmProviderOptions.d.ts +39 -0
- package/vscode-dts/vscode.proposed.secretStorageKeys.d.ts +16 -0
- package/vscode-dts/vscode.proposed.taskExecutionTerminal.d.ts +15 -0
- package/workbench.d.ts +1 -1
- package/workers/editor.worker.js +17 -16
- package/vscode/src/vs/base/common/policy.d.ts +0 -8
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +0 -98
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -33
|
@@ -80,8 +80,8 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
80
80
|
DefaultFormatter_1.extensionItemLabels.length = 0;
|
|
81
81
|
DefaultFormatter_1.extensionDescriptions.length = 0;
|
|
82
82
|
DefaultFormatter_1.extensionIds.push(null);
|
|
83
|
-
DefaultFormatter_1.extensionItemLabels.push(( localize(
|
|
84
|
-
DefaultFormatter_1.extensionDescriptions.push(( localize(
|
|
83
|
+
DefaultFormatter_1.extensionItemLabels.push(( localize(7621, 'None')));
|
|
84
|
+
DefaultFormatter_1.extensionDescriptions.push(( localize(7622, "None")));
|
|
85
85
|
for (const extension of extensions) {
|
|
86
86
|
if (extension.main || extension.browser) {
|
|
87
87
|
DefaultFormatter_1.extensionIds.push(extension.identifier.value);
|
|
@@ -108,13 +108,13 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
108
108
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
109
109
|
const detail = kind === FormattingKind.File
|
|
110
110
|
? ( localize(
|
|
111
|
-
|
|
111
|
+
7623,
|
|
112
112
|
"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",
|
|
113
113
|
extension.displayName || extension.name,
|
|
114
114
|
langName
|
|
115
115
|
))
|
|
116
116
|
: ( localize(
|
|
117
|
-
|
|
117
|
+
7624,
|
|
118
118
|
"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",
|
|
119
119
|
extension.displayName || extension.name,
|
|
120
120
|
langName
|
|
@@ -128,12 +128,12 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
128
128
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
129
129
|
const message = !defaultFormatterId
|
|
130
130
|
? ( localize(
|
|
131
|
-
|
|
131
|
+
7625,
|
|
132
132
|
"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",
|
|
133
133
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
134
134
|
))
|
|
135
135
|
: ( localize(
|
|
136
|
-
|
|
136
|
+
7626,
|
|
137
137
|
"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",
|
|
138
138
|
defaultFormatterId
|
|
139
139
|
));
|
|
@@ -146,16 +146,16 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
if (mode !== FormattingMode.Silent) {
|
|
148
148
|
const { confirmed } = await this._dialogService.confirm({
|
|
149
|
-
message: ( localize(
|
|
149
|
+
message: ( localize(7627, "Configure Default Formatter")),
|
|
150
150
|
detail: formatterOrMessage,
|
|
151
|
-
primaryButton: ( localize(
|
|
151
|
+
primaryButton: ( localize(7628, "&&Configure..."))
|
|
152
152
|
});
|
|
153
153
|
if (confirmed) {
|
|
154
154
|
return this._pickAndPersistDefaultFormatter(formatter, document);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
-
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(
|
|
158
|
+
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(7629, "Configure...")), run: () => this._pickAndPersistDefaultFormatter(formatter, document) }], { priority: NotificationPriority.SILENT });
|
|
159
159
|
}
|
|
160
160
|
return undefined;
|
|
161
161
|
}
|
|
@@ -169,7 +169,7 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
169
169
|
}));
|
|
170
170
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
171
171
|
const pick = await this._quickInputService.pick(picks, { placeHolder: ( localize(
|
|
172
|
-
|
|
172
|
+
7630,
|
|
173
173
|
"Select a default formatter for '{0}' files",
|
|
174
174
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
175
175
|
)) });
|
|
@@ -202,14 +202,14 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
202
202
|
if (typeof result !== 'string') {
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(
|
|
205
|
+
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(7631, "Configure...")) };
|
|
206
206
|
this._languageStatusStore.add(CommandsRegistry.registerCommand(command.id, () => this._pickAndPersistDefaultFormatter(formatter, document)));
|
|
207
207
|
this._languageStatusStore.add(this._languageStatusService.addStatus({
|
|
208
208
|
id: 'formatter.conflict',
|
|
209
|
-
name: ( localize(
|
|
209
|
+
name: ( localize(7632, "Formatter Conflicts")),
|
|
210
210
|
selector: { language: document.getLanguageId(), pattern: document.uri.fsPath },
|
|
211
211
|
severity: Severity$1.Error,
|
|
212
|
-
label: ( localize(
|
|
212
|
+
label: ( localize(7633, "Formatting")),
|
|
213
213
|
detail: result,
|
|
214
214
|
busy: false,
|
|
215
215
|
source: '',
|
|
@@ -237,7 +237,7 @@ DefaultFormatter = DefaultFormatter_1 = ( __decorate([
|
|
|
237
237
|
properties: {
|
|
238
238
|
[DefaultFormatter.configName]: {
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
7634,
|
|
241
241
|
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
242
242
|
)),
|
|
243
243
|
type: ['string', 'null'],
|
|
@@ -260,7 +260,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
260
260
|
const pick = {
|
|
261
261
|
index,
|
|
262
262
|
label: provider.displayName || '',
|
|
263
|
-
description: isDefault ? ( localize(
|
|
263
|
+
description: isDefault ? ( localize(7635, "(default)")) : undefined,
|
|
264
264
|
};
|
|
265
265
|
if (isDefault) {
|
|
266
266
|
defaultFormatterPick = pick;
|
|
@@ -268,10 +268,10 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
268
268
|
return pick;
|
|
269
269
|
}));
|
|
270
270
|
const configurePick = {
|
|
271
|
-
label: ( localize(
|
|
271
|
+
label: ( localize(7636, "Configure Default Formatter..."))
|
|
272
272
|
};
|
|
273
273
|
const pick = await quickPickService.pick([...picks, { type: 'separator' }, configurePick], {
|
|
274
|
-
placeHolder: ( localize(
|
|
274
|
+
placeHolder: ( localize(7637, "Select a formatter")),
|
|
275
275
|
activeItem: defaultFormatterPick
|
|
276
276
|
});
|
|
277
277
|
if (!pick) {
|
|
@@ -280,7 +280,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
280
280
|
else if (pick === configurePick) {
|
|
281
281
|
const langName = languageService.getLanguageName(model.getLanguageId()) || model.getLanguageId();
|
|
282
282
|
const pick = await quickPickService.pick(picks, { placeHolder: ( localize(
|
|
283
|
-
|
|
283
|
+
7630,
|
|
284
284
|
"Select a default formatter for '{0}' files",
|
|
285
285
|
DefaultFormatter._maybeQuotes(langName)
|
|
286
286
|
)) });
|
|
@@ -297,7 +297,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: 'editor.action.formatDocument.multiple',
|
|
300
|
-
label: ( localize(
|
|
300
|
+
label: ( localize(7638, "Format Document With...")),
|
|
301
301
|
alias: 'Format Document...',
|
|
302
302
|
precondition: ( ContextKeyExpr.and(
|
|
303
303
|
EditorContextKeys.writable,
|
|
@@ -327,7 +327,7 @@ registerEditorAction(class FormatSelectionMultipleAction extends EditorAction {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: 'editor.action.formatSelection.multiple',
|
|
330
|
-
label: ( localize(
|
|
330
|
+
label: ( localize(7639, "Format Selection With...")),
|
|
331
331
|
alias: 'Format Code...',
|
|
332
332
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(EditorContextKeys.writable)), EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider)),
|
|
333
333
|
contextMenuOpts: {
|
|
@@ -15,7 +15,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: 'editor.action.formatDocument.none',
|
|
18
|
-
label: ( localize2(
|
|
18
|
+
label: ( localize2(7640, "Format Document")),
|
|
19
19
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, ( EditorContextKeys.hasDocumentFormattingProvider.toNegated()))),
|
|
20
20
|
kbOpts: {
|
|
21
21
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -43,14 +43,14 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
43
43
|
return commandService.executeCommand('editor.action.formatDocument');
|
|
44
44
|
}
|
|
45
45
|
else if (model.isTooLargeForSyncing()) {
|
|
46
|
-
notificationService.warn(( localize(
|
|
46
|
+
notificationService.warn(( localize(7641, "This file cannot be formatted because it is too large")));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
const langName = model.getLanguageId();
|
|
50
|
-
const message = ( localize(
|
|
50
|
+
const message = ( localize(7642, "There is no formatter for '{0}' files installed.", langName));
|
|
51
51
|
const { confirmed } = await dialogService.confirm({
|
|
52
52
|
message,
|
|
53
|
-
primaryButton: ( localize(
|
|
53
|
+
primaryButton: ( localize(7643, "&&Install Formatter..."))
|
|
54
54
|
});
|
|
55
55
|
if (confirmed) {
|
|
56
56
|
extensionsWorkbenchService.openSearch(`category:formatters ${langName}`);
|
|
@@ -19,7 +19,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: 'editor.action.formatChanges',
|
|
22
|
-
label: ( localize2(
|
|
22
|
+
label: ( localize2(7644, "Format Modified Lines")),
|
|
23
23
|
precondition: ( ContextKeyExpr.and(
|
|
24
24
|
EditorContextKeys.writable,
|
|
25
25
|
EditorContextKeys.hasDocumentSelectionFormattingProvider
|
|
@@ -24,7 +24,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
24
24
|
static { this.IsReading = ( new RawContextKey(
|
|
25
25
|
'isReadingLineWithInlayHints',
|
|
26
26
|
false,
|
|
27
|
-
{ type: 'boolean', description: ( localize(
|
|
27
|
+
{ type: 'boolean', description: ( localize(7645, "Whether the current line and its inlay hints are currently focused")) }
|
|
28
28
|
)); }
|
|
29
29
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
30
30
|
static get(editor) {
|
|
@@ -39,7 +39,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
39
39
|
this._ariaElement.style.position = 'fixed';
|
|
40
40
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
41
41
|
this._ariaElement.tabIndex = 0;
|
|
42
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
42
|
+
this._ariaElement.setAttribute('aria-description', ( localize(7646, "Code with Inlay Hint Information")));
|
|
43
43
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
44
44
|
}
|
|
45
45
|
dispose() {
|
|
@@ -139,7 +139,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'inlayHints.startReadingLineWithHint',
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(7647, "Read Line with Inlay Hints")),
|
|
143
143
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
144
144
|
f1: true
|
|
145
145
|
});
|
|
@@ -153,7 +153,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
153
153
|
constructor() {
|
|
154
154
|
super({
|
|
155
155
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
156
|
-
title: ( localize2(
|
|
156
|
+
title: ( localize2(7648, "Stop Inlay Hints Reading")),
|
|
157
157
|
precondition: InlayHintsAccessibility.IsReading,
|
|
158
158
|
f1: true,
|
|
159
159
|
keybinding: {
|
|
@@ -2,8 +2,8 @@ import { URI } from "../../../../base/common/uri.js";
|
|
|
2
2
|
import { ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
3
3
|
import { Position } from "../../../../editor/common/core/position.js";
|
|
4
4
|
import { IChatEditingSession } from "../../chat/common/chatEditingService.js";
|
|
5
|
-
import { IChatModel } from "@codingame/monaco-vscode-
|
|
6
|
-
import { Session } from "@codingame/monaco-vscode-
|
|
5
|
+
import { IChatModel } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
6
|
+
import { Session } from "@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession";
|
|
7
7
|
export interface ISessionKeyComputer {
|
|
8
8
|
getComparisonKey(editor: ICodeEditor, uri: URI): string;
|
|
9
9
|
}
|
package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { URI } from "../../../../base/common/uri.js";
|
|
|
6
6
|
import { IActiveCodeEditor, ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
7
7
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
8
8
|
import { IValidEditOperation } from "../../../../editor/common/model.js";
|
|
9
|
-
import { Session, StashedSession } from "@codingame/monaco-vscode-
|
|
9
|
+
import { Session, StashedSession } from "@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession";
|
|
10
10
|
import { IInlineChatSessionEvent, IInlineChatSessionEndEvent, ISessionKeyComputer, IInlineChatSession2 } from "./inlineChatSessionService.js";
|
|
11
11
|
export declare const IInlineChatSessionService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IInlineChatSessionService>;
|
|
12
12
|
export interface IInlineChatSessionService {
|
|
@@ -11,8 +11,8 @@ class ListResizeColumnAction extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'list.resizeColumn',
|
|
14
|
-
title: { value: ( localize(
|
|
15
|
-
category: { value: ( localize(
|
|
14
|
+
title: { value: ( localize(7864, "Resize Column")), original: 'Resize Column' },
|
|
15
|
+
category: { value: ( localize(7865, "List")), original: 'List' },
|
|
16
16
|
precondition: WorkbenchListFocusContextKey,
|
|
17
17
|
f1: true
|
|
18
18
|
});
|
|
@@ -17,14 +17,14 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
17
17
|
items.push({ label, index });
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(
|
|
20
|
+
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(7866, "Select the column to resize, type to filter.")) });
|
|
21
21
|
if (!column) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
const value = await this._quickInputService.input({
|
|
25
|
-
placeHolder: ( localize(
|
|
25
|
+
placeHolder: ( localize(7867, "i.e. 20, 60, 100...")),
|
|
26
26
|
prompt: ( localize(
|
|
27
|
-
|
|
27
|
+
7868,
|
|
28
28
|
"Please enter a width in percentage for the '{0}' column.",
|
|
29
29
|
column.label
|
|
30
30
|
)),
|
|
@@ -39,11 +39,11 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
39
39
|
async _validateColumnResizeValue(input) {
|
|
40
40
|
const percentage = Number.parseInt(input);
|
|
41
41
|
if (input && !Number.isInteger(percentage)) {
|
|
42
|
-
return localize(
|
|
42
|
+
return localize(7869, "Please enter an integer.");
|
|
43
43
|
}
|
|
44
44
|
else if (percentage < 0 || percentage > 100) {
|
|
45
45
|
return localize(
|
|
46
|
-
|
|
46
|
+
7870,
|
|
47
47
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
48
48
|
);
|
|
49
49
|
}
|
|
@@ -2,7 +2,7 @@ import { Event } from "../../../../base/common/event.js";
|
|
|
2
2
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
3
|
import { IObservable } from "../../../../base/common/observable.js";
|
|
4
4
|
import { ILogger, LogLevel } from "../../../../platform/log/common/log.js";
|
|
5
|
-
import { McpCollectionDefinition, McpCollectionReference, McpConnectionState, McpDefinitionReference, McpServerDefinition, McpServerLaunch } from "./mcpTypes.js";
|
|
5
|
+
import { McpCollectionDefinition, McpCollectionReference, McpConnectionState, McpDefinitionReference, McpServerDefinition, McpServerLaunch, McpStartServerInteraction } from "./mcpTypes.js";
|
|
6
6
|
import { MCP } from "./modelContextProtocol.js";
|
|
7
7
|
export interface IMcpMessageTransport extends IDisposable {
|
|
8
8
|
readonly state: IObservable<McpConnectionState>;
|
|
@@ -22,8 +22,13 @@ export interface IMcpHostDelegate {
|
|
|
22
22
|
}
|
|
23
23
|
export interface IMcpResolveConnectionOptions {
|
|
24
24
|
logger: ILogger;
|
|
25
|
+
interaction?: McpStartServerInteraction;
|
|
25
26
|
collectionRef: McpCollectionReference;
|
|
26
27
|
definitionRef: McpDefinitionReference;
|
|
27
|
-
|
|
28
|
+
trustNonceBearer: {
|
|
29
|
+
trustedAtNonce: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
promptType?: "only-new" | "all-untrusted" | "never";
|
|
32
|
+
autoTrustChanges?: boolean;
|
|
28
33
|
debug?: boolean;
|
|
29
34
|
}
|
|
@@ -6,14 +6,17 @@ import { StorageScope } from "../../../../platform/storage/common/storage.js";
|
|
|
6
6
|
import { IWorkspaceFolderData } from "../../../../platform/workspace/common/workspace.js";
|
|
7
7
|
import { IResolvedValue } from "../../../services/configurationResolver/common/configurationResolverExpression.js";
|
|
8
8
|
import { IMcpHostDelegate, IMcpResolveConnectionOptions } from "./mcpRegistryTypes.js";
|
|
9
|
-
import { McpCollectionDefinition, LazyCollectionState, McpDefinitionReference, McpServerDefinition,
|
|
9
|
+
import { McpCollectionDefinition, LazyCollectionState, McpDefinitionReference, McpServerDefinition, IMcpServerConnection } from "./mcpTypes.js";
|
|
10
10
|
export declare const IMcpRegistry: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IMcpRegistry>;
|
|
11
11
|
export interface IMcpRegistry {
|
|
12
12
|
readonly _serviceBrand: undefined;
|
|
13
13
|
readonly onDidChangeInputs: Event<void>;
|
|
14
14
|
readonly collections: IObservable<readonly McpCollectionDefinition[]>;
|
|
15
15
|
readonly delegates: IObservable<readonly IMcpHostDelegate[]>;
|
|
16
|
-
readonly lazyCollectionState: IObservable<
|
|
16
|
+
readonly lazyCollectionState: IObservable<{
|
|
17
|
+
state: LazyCollectionState;
|
|
18
|
+
collections: McpCollectionDefinition[];
|
|
19
|
+
}>;
|
|
17
20
|
getServerDefinition(collectionRef: McpDefinitionReference, definitionRef: McpDefinitionReference): IObservable<{
|
|
18
21
|
server: McpServerDefinition | undefined;
|
|
19
22
|
collection: McpCollectionDefinition | undefined;
|
|
@@ -21,8 +24,6 @@ export interface IMcpRegistry {
|
|
|
21
24
|
discoverCollections(): Promise<McpCollectionDefinition[]>;
|
|
22
25
|
registerDelegate(delegate: IMcpHostDelegate): IDisposable;
|
|
23
26
|
registerCollection(collection: McpCollectionDefinition): IDisposable;
|
|
24
|
-
resetTrust(): void;
|
|
25
|
-
getTrust(collection: McpCollectionReference): IObservable<boolean | undefined>;
|
|
26
27
|
clearSavedInputs(scope: StorageScope, inputId?: string): Promise<void>;
|
|
27
28
|
editSavedInput(inputId: string, folderData: IWorkspaceFolderData | undefined, configSection: string, target: ConfigurationTarget): Promise<void>;
|
|
28
29
|
setSavedInput(inputId: string, target: ConfigurationTarget, value: string): Promise<void>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
|
-
import { IObservable } from "../../../../base/common/observable.js";
|
|
3
|
+
import { IObservable, ObservableMap } from "../../../../base/common/observable.js";
|
|
4
4
|
import { URI, UriComponents } from "../../../../base/common/uri.js";
|
|
5
5
|
import { Location } from "../../../../editor/common/languages.js";
|
|
6
6
|
import { ConfigurationTarget } from "../../../../platform/configuration/common/configuration.js";
|
|
7
7
|
import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js";
|
|
8
8
|
import { IEditorOptions } from "../../../../platform/editor/common/editor.js";
|
|
9
9
|
import { ExtensionIdentifier } from "../../../../platform/extensions/common/extensions.js";
|
|
10
|
-
import {
|
|
11
|
-
import { IMcpDevModeConfig, IMcpServerConfiguration } from "@codingame/monaco-vscode-
|
|
10
|
+
import { IGalleryMcpServer, IInstallableMcpServer, IMcpServerManifest } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement";
|
|
11
|
+
import { IMcpDevModeConfig, IMcpServerConfiguration } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpPlatformTypes";
|
|
12
12
|
import { StorageScope } from "../../../../platform/storage/common/storage.js";
|
|
13
13
|
import { IWorkspaceFolder, IWorkspaceFolderData } from "../../../../platform/workspace/common/workspace.js";
|
|
14
14
|
import { IWorkbenchLocalMcpServer } from "@codingame/monaco-vscode-mcp-service-override/vscode/vs/workbench/services/mcp/common/mcpWorkbenchManagementService";
|
|
@@ -24,7 +24,7 @@ export interface McpCollectionDefinition {
|
|
|
24
24
|
readonly id: string;
|
|
25
25
|
readonly label: string;
|
|
26
26
|
readonly serverDefinitions: IObservable<readonly McpServerDefinition[]>;
|
|
27
|
-
readonly
|
|
27
|
+
readonly trustBehavior: McpServerTrust.Kind.Trusted | McpServerTrust.Kind.TrustedOnNonce;
|
|
28
28
|
readonly scope: StorageScope;
|
|
29
29
|
readonly configTarget: ConfigurationTarget;
|
|
30
30
|
resolveServerLanch?(definition: McpServerDefinition): Promise<McpServerLaunch | undefined>;
|
|
@@ -33,6 +33,7 @@ export interface McpCollectionDefinition {
|
|
|
33
33
|
load(): Promise<void>;
|
|
34
34
|
removed?(): void;
|
|
35
35
|
};
|
|
36
|
+
readonly source?: IWorkbenchMcpServer | ExtensionIdentifier;
|
|
36
37
|
readonly presentation?: {
|
|
37
38
|
readonly order?: number;
|
|
38
39
|
readonly origin?: URI;
|
|
@@ -64,7 +65,7 @@ export interface McpServerDefinition {
|
|
|
64
65
|
readonly launch: McpServerLaunch;
|
|
65
66
|
readonly roots?: URI[] | undefined;
|
|
66
67
|
readonly variableReplacement?: McpServerDefinitionVariableReplacement;
|
|
67
|
-
readonly cacheNonce
|
|
68
|
+
readonly cacheNonce: string;
|
|
68
69
|
readonly devMode?: IMcpDevModeConfig;
|
|
69
70
|
readonly presentation?: {
|
|
70
71
|
readonly order?: number;
|
|
@@ -75,7 +76,7 @@ export declare namespace McpServerDefinition {
|
|
|
75
76
|
interface Serialized {
|
|
76
77
|
readonly id: string;
|
|
77
78
|
readonly label: string;
|
|
78
|
-
readonly cacheNonce
|
|
79
|
+
readonly cacheNonce: string;
|
|
79
80
|
readonly launch: McpServerLaunch.Serialized;
|
|
80
81
|
readonly variableReplacement?: McpServerDefinitionVariableReplacement.Serialized;
|
|
81
82
|
}
|
|
@@ -115,20 +116,43 @@ export interface McpDefinitionReference {
|
|
|
115
116
|
id: string;
|
|
116
117
|
label: string;
|
|
117
118
|
}
|
|
119
|
+
export declare class McpStartServerInteraction {
|
|
120
|
+
readonly participants: ObservableMap<string, {
|
|
121
|
+
s: "unknown" | "resolved";
|
|
122
|
+
} | {
|
|
123
|
+
s: "waiting";
|
|
124
|
+
definition: McpServerDefinition;
|
|
125
|
+
collection: McpCollectionDefinition;
|
|
126
|
+
}>;
|
|
127
|
+
choice?: Promise<string[] | undefined>;
|
|
128
|
+
}
|
|
118
129
|
export interface IMcpServerStartOpts {
|
|
119
|
-
|
|
130
|
+
autoTrustChanges?: boolean;
|
|
131
|
+
promptType?: "only-new" | "all-untrusted" | "never";
|
|
120
132
|
debug?: boolean;
|
|
133
|
+
interaction?: McpStartServerInteraction;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace McpServerTrust {
|
|
136
|
+
enum Kind {
|
|
137
|
+
Trusted = 0,
|
|
138
|
+
TrustedOnNonce = 1,
|
|
139
|
+
Untrusted = 2,
|
|
140
|
+
Unknown = 3
|
|
141
|
+
}
|
|
121
142
|
}
|
|
122
143
|
export interface IMcpServer extends IDisposable {
|
|
123
144
|
readonly collection: McpCollectionReference;
|
|
124
145
|
readonly definition: McpDefinitionReference;
|
|
125
146
|
readonly connection: IObservable<IMcpServerConnection | undefined>;
|
|
126
147
|
readonly connectionState: IObservable<McpConnectionState>;
|
|
148
|
+
readonly serverMetadata: IObservable<{
|
|
149
|
+
serverName?: string;
|
|
150
|
+
serverInstructions?: string;
|
|
151
|
+
} | undefined>;
|
|
127
152
|
readDefinitions(): IObservable<{
|
|
128
153
|
server: McpServerDefinition | undefined;
|
|
129
154
|
collection: McpCollectionDefinition | undefined;
|
|
130
155
|
}>;
|
|
131
|
-
readonly trusted: IObservable<boolean | undefined>;
|
|
132
156
|
showOutput(): void;
|
|
133
157
|
start(opts?: IMcpServerStartOpts): Promise<McpConnectionState>;
|
|
134
158
|
stop(): Promise<void>;
|
|
@@ -230,6 +254,7 @@ export declare namespace McpServerLaunch {
|
|
|
230
254
|
};
|
|
231
255
|
function toSerialized(launch: McpServerLaunch): McpServerLaunch.Serialized;
|
|
232
256
|
function fromSerialized(launch: McpServerLaunch.Serialized): McpServerLaunch;
|
|
257
|
+
function hash(launch: McpServerLaunch): Promise<string>;
|
|
233
258
|
}
|
|
234
259
|
export interface IMcpServerConnection extends IDisposable {
|
|
235
260
|
readonly definition: McpServerDefinition;
|
|
@@ -344,7 +369,6 @@ export declare class McpServerContainers extends Disposable {
|
|
|
344
369
|
export declare const McpServersGalleryEnabledContext: RawContextKey<boolean>;
|
|
345
370
|
export declare const HasInstalledMcpServersContext: RawContextKey<boolean>;
|
|
346
371
|
export declare const InstalledMcpServersViewId = "workbench.views.mcp.installed";
|
|
347
|
-
export declare const mcpServerIcon: import("../../../../base/common/themables.js").ThemeIcon;
|
|
348
372
|
export declare namespace McpResourceURI {
|
|
349
373
|
const scheme = "mcp-resource";
|
|
350
374
|
function fromServer(def: McpDefinitionReference, resourceURI: URI | string): URI;
|
|
@@ -3,16 +3,16 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
3
3
|
import { equals } from '../../../../base/common/arrays.js';
|
|
4
4
|
import { assertNever } from '../../../../base/common/assert.js';
|
|
5
5
|
import { encodeHex, VSBuffer, decodeHex } from '../../../../base/common/buffer.js';
|
|
6
|
-
import { Codicon } from '../../../../base/common/codicons.js';
|
|
7
6
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
8
7
|
import { equals as equals$1 } from '../../../../base/common/objects.js';
|
|
8
|
+
import '../../../../base/common/observableInternal/index.js';
|
|
9
9
|
import { URI } from '../../../../base/common/uri.js';
|
|
10
10
|
import { localize } from '../../../../nls.js';
|
|
11
11
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
12
12
|
import { ExtensionIdentifier } from '../../../../platform/extensions/common/extensions.js';
|
|
13
|
-
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
14
13
|
import { IMcpWorkbenchService } from './mcpTypes.service.js';
|
|
15
14
|
import { MCP } from './modelContextProtocol.js';
|
|
15
|
+
import { ObservableMap } from '../../../../base/common/observableInternal/map.js';
|
|
16
16
|
|
|
17
17
|
const extensionMcpCollectionPrefix = 'ext.';
|
|
18
18
|
function extensionPrefixedIdentifier(identifier, id) {
|
|
@@ -33,7 +33,7 @@ var McpCollectionDefinition;
|
|
|
33
33
|
return a.id === b.id
|
|
34
34
|
&& a.remoteAuthority === b.remoteAuthority
|
|
35
35
|
&& a.label === b.label
|
|
36
|
-
&& a.
|
|
36
|
+
&& a.trustBehavior === b.trustBehavior;
|
|
37
37
|
}
|
|
38
38
|
McpCollectionDefinition.equals = equals;
|
|
39
39
|
})(McpCollectionDefinition || (McpCollectionDefinition = {}));
|
|
@@ -85,6 +85,20 @@ var LazyCollectionState;
|
|
|
85
85
|
LazyCollectionState[LazyCollectionState["LoadingUnknown"] = 1] = "LoadingUnknown";
|
|
86
86
|
LazyCollectionState[LazyCollectionState["AllKnown"] = 2] = "AllKnown";
|
|
87
87
|
})(LazyCollectionState || (LazyCollectionState = {}));
|
|
88
|
+
class McpStartServerInteraction {
|
|
89
|
+
constructor() {
|
|
90
|
+
this.participants = ( new ObservableMap());
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
var McpServerTrust;
|
|
94
|
+
(function (McpServerTrust) {
|
|
95
|
+
(function (Kind) {
|
|
96
|
+
Kind[Kind["Trusted"] = 0] = "Trusted";
|
|
97
|
+
Kind[Kind["TrustedOnNonce"] = 1] = "TrustedOnNonce";
|
|
98
|
+
Kind[Kind["Untrusted"] = 2] = "Untrusted";
|
|
99
|
+
Kind[Kind["Unknown"] = 3] = "Unknown";
|
|
100
|
+
})(McpServerTrust.Kind || (McpServerTrust.Kind = {}));
|
|
101
|
+
})(McpServerTrust || (McpServerTrust = {}));
|
|
88
102
|
const isMcpResourceTemplate = (obj) => {
|
|
89
103
|
return obj.template !== undefined;
|
|
90
104
|
};
|
|
@@ -126,6 +140,11 @@ var McpServerLaunch;
|
|
|
126
140
|
}
|
|
127
141
|
}
|
|
128
142
|
McpServerLaunch.fromSerialized = fromSerialized;
|
|
143
|
+
async function hash(launch) {
|
|
144
|
+
const nonce = await crypto.subtle.digest('SHA-256', ( new TextEncoder()).encode(JSON.stringify(launch)));
|
|
145
|
+
return encodeHex(VSBuffer.wrap(( new Uint8Array(nonce))));
|
|
146
|
+
}
|
|
147
|
+
McpServerLaunch.hash = hash;
|
|
129
148
|
})(McpServerLaunch || (McpServerLaunch = {}));
|
|
130
149
|
var McpConnectionState;
|
|
131
150
|
(function (McpConnectionState) {
|
|
@@ -139,13 +158,13 @@ var McpConnectionState;
|
|
|
139
158
|
McpConnectionState.toString = (s) => {
|
|
140
159
|
switch (s.state) {
|
|
141
160
|
case Kind.Stopped:
|
|
142
|
-
return localize(
|
|
161
|
+
return localize(8367, 'Stopped');
|
|
143
162
|
case Kind.Starting:
|
|
144
|
-
return localize(
|
|
163
|
+
return localize(8368, 'Starting');
|
|
145
164
|
case Kind.Running:
|
|
146
|
-
return localize(
|
|
165
|
+
return localize(8369, 'Running');
|
|
147
166
|
case Kind.Error:
|
|
148
|
-
return localize(
|
|
167
|
+
return localize(8370, 'Error {0}', s.message);
|
|
149
168
|
default:
|
|
150
169
|
assertNever();
|
|
151
170
|
}
|
|
@@ -201,7 +220,7 @@ let McpServerContainers = class McpServerContainers extends Disposable {
|
|
|
201
220
|
update(server) {
|
|
202
221
|
for (const container of this.containers) {
|
|
203
222
|
if (server && container.mcpServer) {
|
|
204
|
-
if (server.
|
|
223
|
+
if (server.id === container.mcpServer.id) {
|
|
205
224
|
container.mcpServer = server;
|
|
206
225
|
}
|
|
207
226
|
}
|
|
@@ -217,7 +236,6 @@ McpServerContainers = ( __decorate([
|
|
|
217
236
|
const McpServersGalleryEnabledContext = ( new RawContextKey('mcpServersGalleryEnabled', false));
|
|
218
237
|
const HasInstalledMcpServersContext = ( new RawContextKey('hasInstalledMcpServers', true));
|
|
219
238
|
const InstalledMcpServersViewId = 'workbench.views.mcp.installed';
|
|
220
|
-
const mcpServerIcon = registerIcon('mcp-server', Codicon.mcp, ( localize(8213, 'Icon used for the MCP server.')));
|
|
221
239
|
var McpResourceURI;
|
|
222
240
|
(function (McpResourceURI) {
|
|
223
241
|
McpResourceURI.scheme = 'mcp-resource';
|
|
@@ -295,4 +313,4 @@ var McpToolName;
|
|
|
295
313
|
McpToolName[McpToolName["MaxLength"] = 64] = "MaxLength";
|
|
296
314
|
})(McpToolName || (McpToolName = {}));
|
|
297
315
|
|
|
298
|
-
export { HasInstalledMcpServersContext, InstalledMcpServersViewId, LazyCollectionState, McpCapability, McpCollectionDefinition, McpCollectionSortOrder, McpConnectionFailedError, McpConnectionState, McpError, McpResourceURI, McpServerCacheState, McpServerContainers, McpServerDefinition, McpServerDefinitionVariableReplacement, McpServerEditorTab, McpServerInstallState, McpServerLaunch, McpServerTransportType, McpServersGalleryEnabledContext, McpToolName, MpcResponseError, extensionMcpCollectionPrefix, extensionPrefixedIdentifier, isMcpResourceTemplate, mcpPromptPrefix, mcpPromptReplaceSpecialChars
|
|
316
|
+
export { HasInstalledMcpServersContext, InstalledMcpServersViewId, LazyCollectionState, McpCapability, McpCollectionDefinition, McpCollectionSortOrder, McpConnectionFailedError, McpConnectionState, McpError, McpResourceURI, McpServerCacheState, McpServerContainers, McpServerDefinition, McpServerDefinitionVariableReplacement, McpServerEditorTab, McpServerInstallState, McpServerLaunch, McpServerTransportType, McpServerTrust, McpServersGalleryEnabledContext, McpStartServerInteraction, McpToolName, MpcResponseError, extensionMcpCollectionPrefix, extensionPrefixedIdentifier, isMcpResourceTemplate, mcpPromptPrefix, mcpPromptReplaceSpecialChars };
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
|
+
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
3
4
|
import { IObservable } from "../../../../base/common/observable.js";
|
|
4
5
|
import { URI } from "../../../../base/common/uri.js";
|
|
5
6
|
import { IQueryOptions } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement";
|
|
6
|
-
import {
|
|
7
|
+
import { IWorkbenchLocalMcpServer, IWorkbencMcpServerInstallOptions } from "@codingame/monaco-vscode-mcp-service-override/vscode/vs/workbench/services/mcp/common/mcpWorkbenchManagementService";
|
|
7
8
|
import { IMcpServerSamplingConfiguration } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration";
|
|
8
|
-
import { IMcpServer, LazyCollectionState, type IMcpConfigPath, type IMcpServerEditorOptions, type IMcpToolCallContext, type ISamplingOptions, type ISamplingResult, type IWorkbenchMcpServer } from "./mcpTypes.js";
|
|
9
|
+
import { IMcpServer, LazyCollectionState, McpCollectionDefinition, type IMcpConfigPath, type IMcpServerEditorOptions, type IMcpToolCallContext, type ISamplingOptions, type ISamplingResult, type IWorkbenchMcpServer } from "./mcpTypes.js";
|
|
9
10
|
import { MCP } from "./modelContextProtocol.js";
|
|
10
11
|
export declare const IMcpService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IMcpService>;
|
|
11
12
|
export interface IMcpService {
|
|
12
13
|
_serviceBrand: undefined;
|
|
13
14
|
readonly servers: IObservable<readonly IMcpServer[]>;
|
|
14
15
|
resetCaches(): void;
|
|
15
|
-
|
|
16
|
+
resetTrust(): void;
|
|
17
|
+
readonly lazyCollectionState: IObservable<{
|
|
18
|
+
state: LazyCollectionState;
|
|
19
|
+
collections: McpCollectionDefinition[];
|
|
20
|
+
}>;
|
|
21
|
+
autostart(token?: CancellationToken): Promise<void>;
|
|
16
22
|
activateCollections(): Promise<void>;
|
|
17
23
|
}
|
|
18
24
|
export declare const IMcpWorkbenchService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IMcpWorkbenchService>;
|
|
@@ -21,8 +27,10 @@ export interface IMcpWorkbenchService {
|
|
|
21
27
|
readonly onChange: Event<IWorkbenchMcpServer | undefined>;
|
|
22
28
|
readonly onReset: Event<void>;
|
|
23
29
|
readonly local: readonly IWorkbenchMcpServer[];
|
|
30
|
+
getEnabledLocalMcpServers(): IWorkbenchLocalMcpServer[];
|
|
24
31
|
queryLocal(): Promise<IWorkbenchMcpServer[]>;
|
|
25
32
|
queryGallery(options?: IQueryOptions, token?: CancellationToken): Promise<IWorkbenchMcpServer[]>;
|
|
33
|
+
canInstall(mcpServer: IWorkbenchMcpServer): true | IMarkdownString;
|
|
26
34
|
install(server: IWorkbenchMcpServer, installOptions?: IWorkbencMcpServerInstallOptions): Promise<IWorkbenchMcpServer>;
|
|
27
35
|
uninstall(mcpServer: IWorkbenchMcpServer): Promise<void>;
|
|
28
36
|
getMcpConfigPath(arg: IWorkbenchLocalMcpServer): IMcpConfigPath | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
2
2
|
import { URI } from "../../../../base/common/uri.js";
|
|
3
|
-
import { IMultiDiffSourceResolver, IResolvedMultiDiffSource } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IMultiDiffSourceResolver, IResolvedMultiDiffSource } from "@codingame/monaco-vscode-0af61f78-dfc5-57ba-8d32-66268c8de38d-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService";
|
|
4
4
|
export declare const IMultiDiffSourceResolverService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IMultiDiffSourceResolverService>;
|
|
5
5
|
export interface IMultiDiffSourceResolverService {
|
|
6
6
|
readonly _serviceBrand: undefined;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CodeWindow } from "../../../../../base/browser/window.js";
|
|
|
3
3
|
import { Event } from "../../../../../base/common/event.js";
|
|
4
4
|
import { URI } from "../../../../../base/common/uri.js";
|
|
5
5
|
import { type ServicesAccessor } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
6
|
-
import { INotebookEditorCreationOptions, INotebookEditor } from "@codingame/monaco-vscode-
|
|
6
|
+
import { INotebookEditorCreationOptions, INotebookEditor } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
7
7
|
import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
8
8
|
import { IBorrowValue } from "./notebookEditorService.js";
|
|
9
9
|
export declare const INotebookEditorService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<INotebookEditorService>;
|