@codingame/monaco-vscode-api 20.5.0 → 21.0.1
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 +136 -50
- package/package.json +8 -8
- package/services.d.ts +8 -4
- package/services.js +8 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +23 -11
- package/vscode/src/vs/base/browser/domSanitize.js +86 -7
- package/vscode/src/vs/base/browser/domStylesheets.js +2 -2
- package/vscode/src/vs/base/browser/event.d.ts +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +8 -4
- package/vscode/src/vs/base/browser/markdownRenderer.js +72 -126
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +10 -10
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +32 -7
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +4 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +6 -6
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +6 -6
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +5 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +4 -4
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +3 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -3
- package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +21 -16
- package/vscode/src/vs/base/browser/ui/resizable/resizable.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -2
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/sash/sash.js +16 -22
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +3 -3
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -12
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/actions.d.ts +3 -3
- package/vscode/src/vs/base/common/actions.js +3 -3
- package/vscode/src/vs/base/common/async.d.ts +18 -7
- package/vscode/src/vs/base/common/async.js +71 -14
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/defaultAccount.d.ts +23 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -12
- package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -33
- package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.js +2 -2
- package/vscode/src/vs/base/common/lazy.d.ts +1 -1
- package/vscode/src/vs/base/common/lazy.js +14 -4
- package/vscode/src/vs/base/common/lifecycle.d.ts +7 -11
- package/vscode/src/vs/base/common/lifecycle.js +19 -2
- package/vscode/src/vs/base/common/marshallingIds.d.ts +5 -4
- package/vscode/src/vs/base/common/marshallingIds.js +5 -4
- package/vscode/src/vs/base/common/mime.d.ts +4 -0
- package/vscode/src/vs/base/common/mime.js +4 -1
- package/vscode/src/vs/base/common/network.d.ts +5 -0
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/oauth.d.ts +18 -2
- package/vscode/src/vs/base/common/oauth.js +114 -19
- package/vscode/src/vs/base/common/observableInternal/debugLocation.d.ts +20 -0
- package/vscode/src/vs/base/common/observableInternal/debugLocation.js +63 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/reducer.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +15 -33
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.d.ts +0 -7
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +1 -42
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/derived.js +12 -11
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +10 -8
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +5 -4
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.js +7 -6
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.js +4 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +11 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +27 -7
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.js +1 -0
- package/vscode/src/vs/base/common/policy.d.ts +29 -0
- package/vscode/src/vs/base/common/product.d.ts +15 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -6
- package/vscode/src/vs/base/common/strings.js +1 -8
- package/vscode/src/vs/base/common/types.js +1 -4
- package/vscode/src/vs/base/common/uuid.d.ts +2 -0
- package/vscode/src/vs/base/common/uuid.js +4 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +9 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.d.ts +2 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +10 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +2 -3
- package/vscode/src/vs/editor/browser/editorDom.d.ts +1 -0
- package/vscode/src/vs/editor/browser/editorDom.js +7 -4
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +2 -2
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -4
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +3 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +14 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +12 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -1
- 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 +31 -44
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -10
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +6 -4
- package/vscode/src/vs/editor/common/config/editorOptions.js +302 -275
- package/vscode/src/vs/editor/common/core/2d/rect.js +5 -2
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +9 -3
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/text/textLength.js +6 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +19 -1
- package/vscode/src/vs/editor/common/languages.js +77 -57
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +19 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +4 -4
- package/vscode/src/vs/editor/common/model/textModel.js +4 -4
- package/vscode/src/vs/editor/common/model/textModelStringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +7 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +13 -10
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +4 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +6 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +48 -2
- package/vscode/src/vs/editor/common/textModelEditSource.js +54 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -18
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +6 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- 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 +28 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- 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/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -3
- 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 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +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.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -21
- 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/contentHoverComputer.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +2 -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/hoverOperation.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +9 -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/inlayHintsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -8
- 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/inlineCompletionsModel.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +76 -18
- 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 +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +6 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +9 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +18 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +31 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +6 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +11 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +3 -3
- 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 +36 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +1 -0
- 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 +17 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +10 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +7 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +15 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +49 -13
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +8 -3
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +11 -14
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- 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/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +26 -15
- 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.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +4 -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.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/floatingMenu.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +11 -11
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -6
- package/vscode/src/vs/platform/actions/browser/toolbar.js +3 -6
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -1
- 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/assignment/common/assignment.d.ts +70 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -8
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -3
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -2
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +11 -10
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.d.ts +14 -0
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.js +15 -0
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.d.ts +2 -2
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.js +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.d.ts +1 -0
- 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.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +21 -19
- 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 +11 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -1
- 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/instantiation/common/instantiation.d.ts +1 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
- package/vscode/src/vs/platform/log/common/log.js +7 -7
- 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/mcpGalleryManifest.d.ts +18 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +28 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js +6 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +8 -4
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +4 -4
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +15 -20
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -28
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +3 -42
- package/vscode/src/vs/platform/policy/common/policy.d.ts +3 -3
- 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/progress/common/progress.d.ts +0 -12
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +5 -17
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +3 -6
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +1 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +5 -30
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +0 -3
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +2 -6
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +53 -26
- package/vscode/src/vs/platform/request/common/request.d.ts +2 -0
- package/vscode/src/vs/platform/request/common/request.js +25 -19
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -0
- 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.js +5 -5
- package/vscode/src/vs/platform/window/common/window.d.ts +6 -2
- package/vscode/src/vs/platform/window/common/window.js +3 -2
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +37 -9
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +53 -26
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +7 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +6 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +67 -13
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +23 -30
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +12 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +73 -12
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +27 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +8 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +39 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +52 -84
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +36 -33
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +5 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +69 -53
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +14 -12
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +93 -20
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.d.ts +19 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.js +37 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +31 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.js +91 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +27 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.d.ts +11 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.js +44 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.js +65 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.d.ts +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.js +229 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.d.ts +29 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.js +169 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.d.ts +26 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.js +137 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.js +76 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.js +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +13 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +28 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +45 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.js +75 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.d.ts +24 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.js +82 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.d.ts +99 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.js +146 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +86 -420
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +65 -1186
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
- 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.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +13 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +7 -0
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +74 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +157 -157
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +13 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -56
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +71 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +49 -22
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +24 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +15 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +36 -18
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +46 -36
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +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/tools/confirmationTool.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +205 -107
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +14 -8
- 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/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +1 -0
- 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/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -7
- 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/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/mcpTypes.d.ts +10 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.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 +7 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.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/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -21
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +34 -6
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.service.d.ts +1 -1
- 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/authentication/browser/authenticationUsageService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +48 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +7 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +7 -6
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +94 -86
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.js +6 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +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 +4 -0
- 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/workingCopyFileService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +218 -2
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +161 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +47 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +3 -1
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +28 -108
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +101 -12
- package/vscode-dts/vscode.proposed.contribSecondarySidebar.d.ts +6 -0
- package/vscode-dts/vscode.proposed.d.ts +3 -0
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +31 -0
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +2 -2
- package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
- package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +16 -5
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +7 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +0 -114
- package/vscode/src/vs/base/common/hotReload.js +0 -80
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +0 -6
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +0 -7
|
@@ -17,8 +17,9 @@ import { ChatAgentVoteDirection } from '../../contrib/chat/common/chatService.js
|
|
|
17
17
|
import { ChatAgentLocation } from '../../contrib/chat/common/constants.js';
|
|
18
18
|
import { checkProposedApiEnabled, isProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
19
19
|
import { MainContext } from './extHost.protocol.js';
|
|
20
|
-
import { ChatResponseWarningPart, ChatResponseReferencePart, ChatTaskResult, ChatTask, ChatResponseProgressPart, ChatResponseAnchorPart as ChatResponseAnchorPart$1, ChatPrepareToolInvocationPart as ChatPrepareToolInvocationPart$1, ChatResponsePart, ChatResponseConfirmationPart as ChatResponseConfirmationPart$1, ChatResponseNotebookEditPart as ChatResponseNotebookEditPart$1, ChatResponseTextEditPart as ChatResponseTextEditPart$1, ChatResponseCodeCitationPart as ChatResponseCodeCitationPart$1, ChatResponseCommandButtonPart as ChatResponseCommandButtonPart$1, ChatResponseFilesPart, ChatResponseCodeblockUriPart as ChatResponseCodeblockUriPart$1, ChatResponseMarkdownWithVulnerabilitiesPart as ChatResponseMarkdownWithVulnerabilitiesPart$1, ChatResponseMarkdownPart as ChatResponseMarkdownPart$1, ChatRequestDraft, ChatAgentRequest, ChatLocation, Selection, Range, ChatAgentResult, ChatLanguageModelToolReference, ChatPromptReference, ChatFollowup, ChatAgentUserActionEvent, ChatAgentCompletionItem, MarkdownString as MarkdownString$1 } from './extHostTypeConverters.js';
|
|
21
|
-
import {
|
|
20
|
+
import { ChatResponseWarningPart, ChatResponseReferencePart, ChatTaskResult, ChatTask, ChatResponseProgressPart, ChatResponseThinkingProgressPart as ChatResponseThinkingProgressPart$1, ChatResponseAnchorPart as ChatResponseAnchorPart$1, ChatPrepareToolInvocationPart as ChatPrepareToolInvocationPart$1, ChatResponsePart, ChatResponseConfirmationPart as ChatResponseConfirmationPart$1, ChatResponseNotebookEditPart as ChatResponseNotebookEditPart$1, ChatResponseTextEditPart as ChatResponseTextEditPart$1, ChatResponseCodeCitationPart as ChatResponseCodeCitationPart$1, ChatResponseCommandButtonPart as ChatResponseCommandButtonPart$1, ChatResponseFilesPart, ChatResponseCodeblockUriPart as ChatResponseCodeblockUriPart$1, ChatResponseMarkdownWithVulnerabilitiesPart as ChatResponseMarkdownWithVulnerabilitiesPart$1, ChatResponseMarkdownPart as ChatResponseMarkdownPart$1, ChatRequestDraft, ChatAgentRequest, ChatLocation, Selection, Range, ChatAgentResult, ChatLanguageModelToolReference, ChatPromptReference, ChatFollowup, ChatAgentUserActionEvent, ChatAgentCompletionItem, MarkdownString as MarkdownString$1 } from './extHostTypeConverters.js';
|
|
21
|
+
import { ChatResponseTextEditPart, ChatResponseNotebookEditPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseWarningPart as ChatResponseWarningPart$1, ChatResponseConfirmationPart, ChatResponseCodeCitationPart, ChatResponseMovePart, ChatResponseExtensionsPart, ChatResponseThinkingProgressPart, ChatResponsePullRequestPart, ChatResponseProgressPart2, ChatResponseReferencePart as ChatResponseReferencePart$1, ChatResponseAnchorPart, ChatPrepareToolInvocationPart, ChatResponseCommandButtonPart, ChatResponseFileTreePart, ChatResponseCodeblockUriPart, ChatResponseMarkdownPart, ChatRequestEditorData, ChatRequestNotebookData, LanguageModelError, ChatRequestTurn, ChatResponseTurn, ChatResultFeedbackKind, ThemeIcon } from './extHostTypes.js';
|
|
22
|
+
import { MarkdownString } from './extHostTypes/markdownString.js';
|
|
22
23
|
|
|
23
24
|
class ChatAgentResponseStream {
|
|
24
25
|
constructor(_extension, _request, _proxy, _commandsConverter, _sessionDisposables) {
|
|
@@ -152,6 +153,14 @@ class ChatAgentResponseStream {
|
|
|
152
153
|
_report(dto, task);
|
|
153
154
|
return this;
|
|
154
155
|
},
|
|
156
|
+
thinkingProgress(thinkingDelta) {
|
|
157
|
+
throwIfDone(this.thinkingProgress);
|
|
158
|
+
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
159
|
+
const part = new ChatResponseThinkingProgressPart(thinkingDelta.text ?? '', thinkingDelta.id, thinkingDelta.metadata);
|
|
160
|
+
const dto = ChatResponseThinkingProgressPart$1.from(part);
|
|
161
|
+
_report(dto);
|
|
162
|
+
return this;
|
|
163
|
+
},
|
|
155
164
|
warning(value) {
|
|
156
165
|
throwIfDone(this.progress);
|
|
157
166
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
@@ -244,6 +253,7 @@ class ChatAgentResponseStream {
|
|
|
244
253
|
part instanceof ChatResponseCodeCitationPart ||
|
|
245
254
|
part instanceof ChatResponseMovePart ||
|
|
246
255
|
part instanceof ChatResponseExtensionsPart ||
|
|
256
|
+
part instanceof ChatResponseThinkingProgressPart ||
|
|
247
257
|
part instanceof ChatResponsePullRequestPart ||
|
|
248
258
|
part instanceof ChatResponseProgressPart2) {
|
|
249
259
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
@@ -255,6 +265,10 @@ class ChatAgentResponseStream {
|
|
|
255
265
|
const dto = part.task ? ChatTask.from(part) : ChatResponseProgressPart.from(part);
|
|
256
266
|
_report(dto, part.task);
|
|
257
267
|
}
|
|
268
|
+
else if (part instanceof ChatResponseThinkingProgressPart) {
|
|
269
|
+
const dto = ChatResponseThinkingProgressPart$1.from(part);
|
|
270
|
+
_report(dto);
|
|
271
|
+
}
|
|
258
272
|
else if (part instanceof ChatResponseAnchorPart) {
|
|
259
273
|
const dto = ChatResponseAnchorPart$1.from(part);
|
|
260
274
|
if (part.resolve) {
|
|
@@ -370,7 +384,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
370
384
|
}
|
|
371
385
|
const { request, location, history } = await this._createRequest(requestDto, context, detector.extension);
|
|
372
386
|
const model = await this.getModelForRequest(request, detector.extension);
|
|
373
|
-
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(detector.extension), this.getToolsForRequest(detector.extension, request), detector.extension, this._logService);
|
|
387
|
+
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(detector.extension), this.getToolsForRequest(detector.extension, request.userSelectedTools), detector.extension, this._logService);
|
|
374
388
|
return detector.provider.provideParticipantDetection(extRequest, { history }, { participants: options.participants, location: ChatLocation.to(options.location) }, token);
|
|
375
389
|
}
|
|
376
390
|
async _createRequest(requestDto, context, extension) {
|
|
@@ -401,17 +415,6 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
401
415
|
}
|
|
402
416
|
return model;
|
|
403
417
|
}
|
|
404
|
-
async $setRequestPaused(handle, requestId, isPaused) {
|
|
405
|
-
const agent = this._agents.get(handle);
|
|
406
|
-
if (!agent) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
const inFlight = Iterable.find(this._inFlightRequests, r => r.requestId === requestId);
|
|
410
|
-
if (!inFlight) {
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
agent.setChatRequestPauseState({ request: inFlight.extRequest, isPaused });
|
|
414
|
-
}
|
|
415
418
|
async $setRequestTools(requestId, tools) {
|
|
416
419
|
const request = [...this._inFlightRequests].find(r => r.requestId === requestId);
|
|
417
420
|
if (!request) {
|
|
@@ -447,7 +450,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
447
450
|
sessionDisposables
|
|
448
451
|
));
|
|
449
452
|
const model = await this.getModelForRequest(request, agent.extension);
|
|
450
|
-
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(agent.extension), this.getToolsForRequest(agent.extension, request), agent.extension, this._logService);
|
|
453
|
+
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(agent.extension), this.getToolsForRequest(agent.extension, request.userSelectedTools), agent.extension, this._logService);
|
|
451
454
|
inFlightRequest = { requestId: requestDto.requestId, extRequest, extension: agent.extension };
|
|
452
455
|
this._inFlightRequests.add(inFlightRequest);
|
|
453
456
|
const task = agent.invoke(extRequest, { history }, stream.apiObject, token);
|
|
@@ -469,7 +472,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
469
472
|
responseIsIncomplete: true
|
|
470
473
|
};
|
|
471
474
|
}
|
|
472
|
-
if (errorDetails?.responseIsRedacted || errorDetails?.isQuotaExceeded || errorDetails?.confirmationButtons) {
|
|
475
|
+
if (errorDetails?.responseIsRedacted || errorDetails?.isQuotaExceeded || errorDetails?.confirmationButtons || errorDetails?.code) {
|
|
473
476
|
checkProposedApiEnabled(agent.extension, 'chatParticipantPrivate');
|
|
474
477
|
}
|
|
475
478
|
return { errorDetails, timings: stream?.timings, metadata: result?.metadata, nextQuestion: result?.nextQuestion, details: result?.details };
|
|
@@ -496,14 +499,14 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
496
499
|
}
|
|
497
500
|
return this._diagnostics.getDiagnostics();
|
|
498
501
|
}
|
|
499
|
-
getToolsForRequest(extension,
|
|
500
|
-
if (!
|
|
502
|
+
getToolsForRequest(extension, tools) {
|
|
503
|
+
if (!tools) {
|
|
501
504
|
return ( new Map());
|
|
502
505
|
}
|
|
503
506
|
const result = ( new Map());
|
|
504
507
|
for (const tool of this._tools.getTools(extension)) {
|
|
505
|
-
if (typeof
|
|
506
|
-
result.set(tool.name,
|
|
508
|
+
if (typeof tools[tool.name] === 'boolean') {
|
|
509
|
+
result.set(tool.name, tools[tool.name]);
|
|
507
510
|
}
|
|
508
511
|
}
|
|
509
512
|
return result;
|
|
@@ -716,7 +719,6 @@ class ExtHostChatAgent {
|
|
|
716
719
|
themeIcon: this._iconPath instanceof ThemeIcon ? this._iconPath : undefined,
|
|
717
720
|
hasFollowups: this._followupProvider !== undefined,
|
|
718
721
|
helpTextPrefix: (!this._helpTextPrefix || typeof this._helpTextPrefix === 'string') ? this._helpTextPrefix : MarkdownString$1.from(this._helpTextPrefix),
|
|
719
|
-
helpTextVariablesPrefix: (!this._helpTextVariablesPrefix || typeof this._helpTextVariablesPrefix === 'string') ? this._helpTextVariablesPrefix : MarkdownString$1.from(this._helpTextVariablesPrefix),
|
|
720
722
|
helpTextPostfix: (!this._helpTextPostfix || typeof this._helpTextPostfix === 'string') ? this._helpTextPostfix : MarkdownString$1.from(this._helpTextPostfix),
|
|
721
723
|
supportIssueReporting: this._supportIssueReporting,
|
|
722
724
|
requester: this._requester,
|
|
@@ -760,15 +762,6 @@ class ExtHostChatAgent {
|
|
|
760
762
|
that._helpTextPrefix = v;
|
|
761
763
|
updateMetadataSoon();
|
|
762
764
|
},
|
|
763
|
-
get helpTextVariablesPrefix() {
|
|
764
|
-
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
765
|
-
return that._helpTextVariablesPrefix;
|
|
766
|
-
},
|
|
767
|
-
set helpTextVariablesPrefix(v) {
|
|
768
|
-
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
769
|
-
that._helpTextVariablesPrefix = v;
|
|
770
|
-
updateMetadataSoon();
|
|
771
|
-
},
|
|
772
765
|
get helpTextPostfix() {
|
|
773
766
|
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
774
767
|
return that._helpTextPostfix;
|
|
@@ -7,24 +7,32 @@ import { IChatAgentRequest, IChatAgentResult } from "@codingame/monaco-vscode-b9
|
|
|
7
7
|
import { IChatSessionItem } from "../../contrib/chat/common/chatSessionsService.js";
|
|
8
8
|
import { ChatSessionDto, ExtHostChatSessionsShape } from "./extHost.protocol.js";
|
|
9
9
|
import { ExtHostCommands } from "./extHostCommands.js";
|
|
10
|
-
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
11
10
|
import { ExtHostLanguageModels } from "./extHostLanguageModels.js";
|
|
11
|
+
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
12
12
|
export declare class ExtHostChatSessions extends Disposable implements ExtHostChatSessionsShape {
|
|
13
13
|
private readonly commands;
|
|
14
14
|
private readonly _languageModels;
|
|
15
15
|
private readonly _extHostRpc;
|
|
16
16
|
private readonly _logService;
|
|
17
|
+
private static _sessionHandlePool;
|
|
17
18
|
private readonly _proxy;
|
|
18
19
|
private readonly _chatSessionItemProviders;
|
|
19
20
|
private readonly _chatSessionContentProviders;
|
|
20
21
|
private _nextChatSessionItemProviderHandle;
|
|
21
22
|
private _nextChatSessionContentProviderHandle;
|
|
22
|
-
private _sessionMap;
|
|
23
|
-
private static _sessionHandlePool;
|
|
23
|
+
private readonly _sessionMap;
|
|
24
24
|
constructor(commands: ExtHostCommands, _languageModels: ExtHostLanguageModels, _extHostRpc: IExtHostRpcService, _logService: ILogService);
|
|
25
25
|
registerChatSessionItemProvider(extension: IExtensionDescription, chatSessionType: string, provider: vscode.ChatSessionItemProvider): vscode.Disposable;
|
|
26
|
-
registerChatSessionContentProvider(extension: IExtensionDescription, chatSessionType: string, provider: vscode.ChatSessionContentProvider): vscode.Disposable;
|
|
26
|
+
registerChatSessionContentProvider(extension: IExtensionDescription, chatSessionType: string, provider: vscode.ChatSessionContentProvider, capabilities?: vscode.ChatSessionCapabilities): vscode.Disposable;
|
|
27
27
|
showChatSession(_extension: IExtensionDescription, chatSessionType: string, sessionId: string, options: vscode.ChatSessionShowOptions | undefined): Promise<void>;
|
|
28
|
+
private convertChatSessionStatus;
|
|
29
|
+
private convertChatSessionItem;
|
|
30
|
+
$provideNewChatSessionItem(handle: number, options: {
|
|
31
|
+
request: IChatAgentRequest;
|
|
32
|
+
prompt?: string;
|
|
33
|
+
history: any[];
|
|
34
|
+
metadata?: any;
|
|
35
|
+
}, token: CancellationToken): Promise<IChatSessionItem>;
|
|
28
36
|
$provideChatSessionItems(handle: number, token: vscode.CancellationToken): Promise<IChatSessionItem[]>;
|
|
29
37
|
private readonly _extHostChatSessions;
|
|
30
38
|
$provideChatSessionContent(handle: number, id: string, token: CancellationToken): Promise<ChatSessionDto>;
|
|
@@ -5,12 +5,14 @@ import { CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
|
5
5
|
import { Disposable, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
6
6
|
import { MarshalledId } from '../../../base/common/marshallingIds.js';
|
|
7
7
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
8
|
+
import { ChatSessionStatus } from '../../contrib/chat/common/chatSessionsService.js';
|
|
8
9
|
import { ChatAgentLocation } from '../../contrib/chat/common/constants.js';
|
|
9
10
|
import { MainContext } from './extHost.protocol.js';
|
|
10
11
|
import { ChatAgentResponseStream } from './extHostChatAgents2.js';
|
|
11
12
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
12
|
-
import { ViewColumn,
|
|
13
|
+
import { ViewColumn, MarkdownString, ChatAgentRequest, ChatResponsePart } from './extHostTypeConverters.js';
|
|
13
14
|
import { Disposable as Disposable$1, ChatRequestTurn } from './extHostTypes.js';
|
|
15
|
+
import { revive } from '../../../base/common/marshalling.js';
|
|
14
16
|
|
|
15
17
|
var ExtHostChatSessions_1;
|
|
16
18
|
class ExtHostChatSession {
|
|
@@ -54,7 +56,7 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
54
56
|
commands.registerArgumentProcessor({
|
|
55
57
|
processArgument: (arg) => {
|
|
56
58
|
if (arg && arg.$mid === MarshalledId.ChatSessionContext) {
|
|
57
|
-
const id = arg.id;
|
|
59
|
+
const id = arg.session.id;
|
|
58
60
|
const sessionContent = this._sessionMap.get(id);
|
|
59
61
|
if (sessionContent) {
|
|
60
62
|
return sessionContent;
|
|
@@ -75,7 +77,7 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
75
77
|
this._proxy.$registerChatSessionItemProvider(handle, chatSessionType);
|
|
76
78
|
if (provider.onDidChangeChatSessionItems) {
|
|
77
79
|
disposables.add(provider.onDidChangeChatSessionItems(() => {
|
|
78
|
-
this._proxy.$onDidChangeChatSessionItems(
|
|
80
|
+
this._proxy.$onDidChangeChatSessionItems(handle);
|
|
79
81
|
}));
|
|
80
82
|
}
|
|
81
83
|
return {
|
|
@@ -86,10 +88,10 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
|
-
registerChatSessionContentProvider(extension, chatSessionType, provider) {
|
|
91
|
+
registerChatSessionContentProvider(extension, chatSessionType, provider, capabilities) {
|
|
90
92
|
const handle = this._nextChatSessionContentProviderHandle++;
|
|
91
93
|
const disposables = ( new DisposableStore());
|
|
92
|
-
this._chatSessionContentProviders.set(handle, { provider, extension, disposable: disposables });
|
|
94
|
+
this._chatSessionContentProviders.set(handle, { provider, extension, capabilities, disposable: disposables });
|
|
93
95
|
this._proxy.$registerChatSessionContentProvider(handle, chatSessionType);
|
|
94
96
|
return new Disposable$1(() => {
|
|
95
97
|
this._chatSessionContentProviders.delete(handle);
|
|
@@ -100,6 +102,66 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
100
102
|
async showChatSession(_extension, chatSessionType, sessionId, options) {
|
|
101
103
|
await this._proxy.$showChatSession(chatSessionType, sessionId, ViewColumn.from(options?.viewColumn));
|
|
102
104
|
}
|
|
105
|
+
convertChatSessionStatus(status) {
|
|
106
|
+
if (status === undefined) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
switch (status) {
|
|
110
|
+
case 0:
|
|
111
|
+
return ChatSessionStatus.Failed;
|
|
112
|
+
case 1:
|
|
113
|
+
return ChatSessionStatus.Completed;
|
|
114
|
+
case 2:
|
|
115
|
+
return ChatSessionStatus.InProgress;
|
|
116
|
+
default:
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
convertChatSessionItem(sessionContent) {
|
|
121
|
+
return {
|
|
122
|
+
id: sessionContent.id,
|
|
123
|
+
label: sessionContent.label,
|
|
124
|
+
description: sessionContent.description ? MarkdownString.from(sessionContent.description) : undefined,
|
|
125
|
+
status: this.convertChatSessionStatus(sessionContent.status),
|
|
126
|
+
tooltip: MarkdownString.fromStrict(sessionContent.tooltip),
|
|
127
|
+
timing: {
|
|
128
|
+
startTime: sessionContent.timing?.startTime ?? 0,
|
|
129
|
+
endTime: sessionContent.timing?.endTime
|
|
130
|
+
},
|
|
131
|
+
statistics: sessionContent.statistics ? {
|
|
132
|
+
insertions: sessionContent.statistics?.insertions ?? 0,
|
|
133
|
+
deletions: sessionContent.statistics?.deletions ?? 0
|
|
134
|
+
} : undefined
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
async $provideNewChatSessionItem(handle, options, token) {
|
|
138
|
+
const entry = this._chatSessionItemProviders.get(handle);
|
|
139
|
+
if (!entry || !entry.provider.provideNewChatSessionItem) {
|
|
140
|
+
throw ( new Error(
|
|
141
|
+
`No provider registered for handle ${handle} or provider does not support creating sessions`
|
|
142
|
+
));
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
const model = await this.getModelForRequest(options.request, entry.extension);
|
|
146
|
+
const vscodeRequest = ChatAgentRequest.to(revive(options.request), undefined, model, [], ( new Map()), entry.extension, this._logService);
|
|
147
|
+
const vscodeOptions = {
|
|
148
|
+
request: vscodeRequest,
|
|
149
|
+
prompt: options.prompt,
|
|
150
|
+
history: options.history,
|
|
151
|
+
metadata: options.metadata
|
|
152
|
+
};
|
|
153
|
+
const chatSessionItem = await entry.provider.provideNewChatSessionItem(vscodeOptions, token);
|
|
154
|
+
if (!chatSessionItem || !chatSessionItem.id) {
|
|
155
|
+
throw ( new Error('Provider did not create session'));
|
|
156
|
+
}
|
|
157
|
+
this._sessionMap.set(chatSessionItem.id, chatSessionItem);
|
|
158
|
+
return this.convertChatSessionItem(chatSessionItem);
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
this._logService.error(`Error creating chat session: ${error}`);
|
|
162
|
+
throw error;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
103
165
|
async $provideChatSessionItems(handle, token) {
|
|
104
166
|
const entry = this._chatSessionItemProviders.get(handle);
|
|
105
167
|
if (!entry) {
|
|
@@ -114,11 +176,7 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
114
176
|
for (const sessionContent of sessions) {
|
|
115
177
|
if (sessionContent.id) {
|
|
116
178
|
this._sessionMap.set(sessionContent.id, sessionContent);
|
|
117
|
-
response.push(
|
|
118
|
-
id: sessionContent.id,
|
|
119
|
-
label: sessionContent.label,
|
|
120
|
-
iconPath: sessionContent.iconPath
|
|
121
|
-
});
|
|
179
|
+
response.push(this.convertChatSessionItem(sessionContent));
|
|
122
180
|
}
|
|
123
181
|
}
|
|
124
182
|
return response;
|
|
@@ -153,13 +211,15 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
153
211
|
this._proxy.$handleProgressComplete(handle, id, 'ongoing');
|
|
154
212
|
});
|
|
155
213
|
}
|
|
214
|
+
const { capabilities } = provider;
|
|
156
215
|
return {
|
|
157
216
|
id: sessionId + '',
|
|
158
217
|
hasActiveResponseCallback: !!session.activeResponseCallback,
|
|
159
218
|
hasRequestHandler: !!session.requestHandler,
|
|
219
|
+
supportsInterruption: !!capabilities?.supportsInterruptions,
|
|
160
220
|
history: ( session.history.map(turn => {
|
|
161
221
|
if (turn instanceof ChatRequestTurn) {
|
|
162
|
-
return { type: 'request', prompt: turn.prompt };
|
|
222
|
+
return { type: 'request', prompt: turn.prompt, participant: turn.participant };
|
|
163
223
|
}
|
|
164
224
|
else {
|
|
165
225
|
const responseTurn = turn;
|
|
@@ -168,7 +228,8 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
168
228
|
)));
|
|
169
229
|
return {
|
|
170
230
|
type: 'response',
|
|
171
|
-
parts
|
|
231
|
+
parts,
|
|
232
|
+
participant: responseTurn.participant
|
|
172
233
|
};
|
|
173
234
|
}
|
|
174
235
|
}))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
3
|
import { validateConstraint } from '../../../base/common/types.js';
|
|
4
|
-
import { Disposable,
|
|
4
|
+
import { Disposable, CallHierarchyItem, TypeHierarchyItem, TestRunProfileBase } from './extHostTypes.js';
|
|
5
5
|
import { Range as Range$1, Position as Position$1, location, NotebookRange as NotebookRange$1, Selection as Selection$1, CallHierarchyItem as CallHierarchyItem$1, TypeHierarchyItem as TypeHierarchyItem$1, TestItem, TestRunProfile } from './extHostTypeConverters.js';
|
|
6
6
|
import { cloneAndChange } from '../../../base/common/objects.js';
|
|
7
7
|
import { MainContext } from './extHost.protocol.js';
|
|
@@ -23,6 +23,11 @@ import { TelemetryTrustedValue } from '../../../platform/telemetry/common/teleme
|
|
|
23
23
|
import { IExtHostTelemetry } from './extHostTelemetry.js';
|
|
24
24
|
import { generateUuid } from '../../../base/common/uuid.js';
|
|
25
25
|
import { isCancellationError } from '../../../base/common/errors.js';
|
|
26
|
+
import { Position as Position$2 } from './extHostTypes/position.js';
|
|
27
|
+
import { Range as Range$2 } from './extHostTypes/range.js';
|
|
28
|
+
import { Selection } from './extHostTypes/selection.js';
|
|
29
|
+
import { Location } from './extHostTypes/location.js';
|
|
30
|
+
import { NotebookRange } from './extHostTypes/notebooks.js';
|
|
26
31
|
|
|
27
32
|
let ExtHostCommands = class ExtHostCommands {
|
|
28
33
|
#proxy;
|
|
@@ -9,9 +9,10 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
9
9
|
import { CommentThreadCollapsibleState, CommentThreadState as CommentThreadState$1, CommentThreadApplicability as CommentThreadApplicability$1 } from '../../../editor/common/languages.js';
|
|
10
10
|
import { ExtensionIdentifierMap } from '../../../platform/extensions/common/extensions.js';
|
|
11
11
|
import { Range, MarkdownString as MarkdownString$1, pathOrURIToURI } from './extHostTypeConverters.js';
|
|
12
|
-
import {
|
|
12
|
+
import { CommentThreadFocus, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState, CommentThreadApplicability } from './extHostTypes.js';
|
|
13
13
|
import { MainContext } from './extHost.protocol.js';
|
|
14
14
|
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
15
|
+
import { MarkdownString } from './extHostTypes/markdownString.js';
|
|
15
16
|
|
|
16
17
|
function createExtHostComments(mainContext, commands, documents) {
|
|
17
18
|
const proxy = ( mainContext.getProxy(MainContext.MainThreadComments));
|
|
@@ -6,7 +6,7 @@ import { ExtHostDocuments } from "./extHostDocuments.js";
|
|
|
6
6
|
import { IExtensionStoragePaths } from "./extHostStoragePaths.js";
|
|
7
7
|
import { ExtHostWebviews } from "./extHostWebview.js";
|
|
8
8
|
import { ExtHostWebviewPanels } from "./extHostWebviewPanels.js";
|
|
9
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
10
10
|
import type * as vscode from "vscode";
|
|
11
11
|
import * as extHostProtocol from "./extHost.protocol.js";
|
|
12
12
|
export declare class ExtHostCustomEditors implements extHostProtocol.ExtHostCustomEditorsShape {
|
|
@@ -19,9 +19,11 @@ import { IExtHostExtensionService } from './extHostExtensionService.js';
|
|
|
19
19
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
20
20
|
import { IExtHostTesting } from './extHostTesting.js';
|
|
21
21
|
import { DebugTreeItem } from './extHostTypeConverters.js';
|
|
22
|
-
import { SourceBreakpoint, FunctionBreakpoint, DataBreakpoint, DebugConsoleMode, Disposable as Disposable$1, DebugAdapterInlineImplementation,
|
|
22
|
+
import { SourceBreakpoint, FunctionBreakpoint, DataBreakpoint, DebugConsoleMode, Disposable as Disposable$1, DebugAdapterInlineImplementation, setBreakpointId, DebugThread, DebugStackFrame, DebugAdapterExecutable, DebugAdapterServer, DebugAdapterNamedPipeServer, ThemeIcon as ThemeIcon$1 } from './extHostTypes.js';
|
|
23
23
|
import { IExtHostVariableResolverProvider } from './extHostVariableResolverService.js';
|
|
24
24
|
import { IExtHostWorkspace } from './extHostWorkspace.js';
|
|
25
|
+
import { Location } from './extHostTypes/location.js';
|
|
26
|
+
import { Position } from './extHostTypes/position.js';
|
|
25
27
|
|
|
26
28
|
const IExtHostDebugService = ( createDecorator('IExtHostDebugService'));
|
|
27
29
|
let ExtHostDebugServiceBase = class ExtHostDebugServiceBase extends Disposable {
|
|
@@ -4,12 +4,13 @@ import { localize } from '../../../nls.js';
|
|
|
4
4
|
import { MarkerSeverity } from '../../../platform/markers/common/markers.js';
|
|
5
5
|
import { URI } from '../../../base/common/uri.js';
|
|
6
6
|
import { MainContext } from './extHost.protocol.js';
|
|
7
|
-
import
|
|
7
|
+
import './extHostTypes.js';
|
|
8
8
|
import { Diagnostic } from './extHostTypeConverters.js';
|
|
9
9
|
import { DebounceEmitter, Event } from '../../../base/common/event.js';
|
|
10
10
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
11
11
|
import { ResourceMap } from '../../../base/common/map.js';
|
|
12
12
|
import { IExtHostFileSystemInfo } from './extHostFileSystemInfo.js';
|
|
13
|
+
import { DiagnosticSeverity } from './extHostTypes/diagnostic.js';
|
|
13
14
|
|
|
14
15
|
var ExtHostDiagnostics_1;
|
|
15
16
|
class DiagnosticCollection {
|
|
@@ -107,7 +108,7 @@ class DiagnosticCollection {
|
|
|
107
108
|
marker.push({
|
|
108
109
|
severity: MarkerSeverity.Info,
|
|
109
110
|
message: ( localize(
|
|
110
|
-
|
|
111
|
+
2627,
|
|
111
112
|
"Not showing {0} further errors and warnings.",
|
|
112
113
|
diagnostics.length - this._maxDiagnosticsPerFile
|
|
113
114
|
)),
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { URI } from "../../../base/common/uri.js";
|
|
1
|
+
import { URI, UriComponents } from "../../../base/common/uri.js";
|
|
2
2
|
import { MirrorTextModel } from "../../../editor/common/model/mirrorTextModel.js";
|
|
3
|
-
import { MainThreadDocumentsShape } from "./extHost.protocol.js";
|
|
4
|
-
import { Range } from "./extHostTypes.js";
|
|
5
3
|
import type * as vscode from "vscode";
|
|
4
|
+
import { Range } from "./extHostTypes/range.js";
|
|
6
5
|
export declare function setWordDefinitionFor(languageId: string, wordDefinition: RegExp | undefined): void;
|
|
6
|
+
export interface IExtHostDocumentSaveDelegate {
|
|
7
|
+
$trySaveDocument(uri: UriComponents): Promise<boolean>;
|
|
8
|
+
}
|
|
7
9
|
export declare class ExtHostDocumentData extends MirrorTextModel {
|
|
8
10
|
private readonly _proxy;
|
|
9
11
|
private _languageId;
|
|
10
12
|
private _isDirty;
|
|
11
13
|
private _encoding;
|
|
14
|
+
private readonly _strictInstanceofChecks;
|
|
12
15
|
private _document?;
|
|
13
16
|
private _isDisposed;
|
|
14
|
-
constructor(_proxy:
|
|
17
|
+
constructor(_proxy: IExtHostDocumentSaveDelegate, uri: URI, lines: string[], eol: string, versionId: number, _languageId: string, _isDirty: boolean, _encoding: string, _strictInstanceofChecks?: boolean);
|
|
15
18
|
dispose(): void;
|
|
16
19
|
equalLines(lines: readonly string[]): boolean;
|
|
17
20
|
get document(): vscode.TextDocument;
|
|
@@ -4,8 +4,10 @@ import { Schemas } from '../../../base/common/network.js';
|
|
|
4
4
|
import { regExpLeadsToEndlessLoop } from '../../../base/common/strings.js';
|
|
5
5
|
import { MirrorTextModel } from '../../../editor/common/model/mirrorTextModel.js';
|
|
6
6
|
import { getWordAtText, ensureValidWordDefinition } from '../../../editor/common/core/wordHelper.js';
|
|
7
|
-
import { EndOfLine, Position, Range } from './extHostTypes.js';
|
|
8
7
|
import { equals } from '../../../base/common/arrays.js';
|
|
8
|
+
import { EndOfLine } from './extHostTypes/textEdit.js';
|
|
9
|
+
import { Position } from './extHostTypes/position.js';
|
|
10
|
+
import { Range } from './extHostTypes/range.js';
|
|
9
11
|
|
|
10
12
|
const _languageId2WordDefinition = ( new Map());
|
|
11
13
|
function setWordDefinitionFor(languageId, wordDefinition) {
|
|
@@ -20,12 +22,14 @@ function getWordDefinitionFor(languageId) {
|
|
|
20
22
|
return _languageId2WordDefinition.get(languageId);
|
|
21
23
|
}
|
|
22
24
|
class ExtHostDocumentData extends MirrorTextModel {
|
|
23
|
-
constructor(_proxy, uri, lines, eol, versionId, _languageId, _isDirty, _encoding
|
|
25
|
+
constructor(_proxy, uri, lines, eol, versionId, _languageId, _isDirty, _encoding, _strictInstanceofChecks = true
|
|
26
|
+
) {
|
|
24
27
|
super(uri, lines, eol, versionId);
|
|
25
28
|
this._proxy = _proxy;
|
|
26
29
|
this._languageId = _languageId;
|
|
27
30
|
this._isDirty = _isDirty;
|
|
28
31
|
this._encoding = _encoding;
|
|
32
|
+
this._strictInstanceofChecks = _strictInstanceofChecks;
|
|
29
33
|
this._isDisposed = false;
|
|
30
34
|
}
|
|
31
35
|
dispose() {
|
|
@@ -107,6 +111,9 @@ class ExtHostDocumentData extends MirrorTextModel {
|
|
|
107
111
|
else if (typeof lineOrPosition === 'number') {
|
|
108
112
|
line = lineOrPosition;
|
|
109
113
|
}
|
|
114
|
+
else if (!this._strictInstanceofChecks && Position.isPosition(lineOrPosition)) {
|
|
115
|
+
line = lineOrPosition.line;
|
|
116
|
+
}
|
|
110
117
|
if (typeof line !== 'number' || line < 0 || line >= this._lines.length || Math.floor(line) !== line) {
|
|
111
118
|
throw ( new Error('Illegal value for `line`'));
|
|
112
119
|
}
|
|
@@ -126,8 +133,15 @@ class ExtHostDocumentData extends MirrorTextModel {
|
|
|
126
133
|
return ( new Position(out.index, Math.min(out.remainder, lineLength)));
|
|
127
134
|
}
|
|
128
135
|
_validateRange(range) {
|
|
129
|
-
if (
|
|
130
|
-
|
|
136
|
+
if (this._strictInstanceofChecks) {
|
|
137
|
+
if (!(range instanceof Range)) {
|
|
138
|
+
throw ( new Error('Invalid argument'));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
if (!Range.isRange(range)) {
|
|
143
|
+
throw ( new Error('Invalid argument'));
|
|
144
|
+
}
|
|
131
145
|
}
|
|
132
146
|
const start = this._validatePosition(range.start);
|
|
133
147
|
const end = this._validatePosition(range.end);
|
|
@@ -137,8 +151,15 @@ class ExtHostDocumentData extends MirrorTextModel {
|
|
|
137
151
|
return ( new Range(start.line, start.character, end.line, end.character));
|
|
138
152
|
}
|
|
139
153
|
_validatePosition(position) {
|
|
140
|
-
if (
|
|
141
|
-
|
|
154
|
+
if (this._strictInstanceofChecks) {
|
|
155
|
+
if (!(position instanceof Position)) {
|
|
156
|
+
throw ( new Error('Invalid argument'));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
if (!Position.isPosition(position)) {
|
|
161
|
+
throw ( new Error('Invalid argument'));
|
|
162
|
+
}
|
|
142
163
|
}
|
|
143
164
|
if (this._lines.length === 0) {
|
|
144
165
|
return position.with(0, 0);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import { URI } from '../../../base/common/uri.js';
|
|
3
3
|
import { illegalState } from '../../../base/common/errors.js';
|
|
4
|
-
import
|
|
4
|
+
import './extHostTypes.js';
|
|
5
5
|
import { TextDocumentSaveReason, EndOfLine, Range } from './extHostTypeConverters.js';
|
|
6
6
|
import { LinkedList } from '../../../base/common/linkedList.js';
|
|
7
7
|
import { SerializableObjectWithBuffers } from '../../services/extensions/common/proxyIdentifier.js';
|
|
8
|
+
import { TextEdit } from './extHostTypes/textEdit.js';
|
|
8
9
|
|
|
9
10
|
class ExtHostDocumentSaveParticipant {
|
|
10
11
|
constructor(_logService, _documents, _mainThreadBulkEdits, _thresholds = { timeout: 1500, errors: 3 }) {
|
|
@@ -540,7 +540,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
540
540
|
async _doHandleExtensionTests() {
|
|
541
541
|
const { extensionDevelopmentLocationURI, extensionTestsLocationURI } = this._initData.environment;
|
|
542
542
|
if (!extensionDevelopmentLocationURI || !extensionTestsLocationURI) {
|
|
543
|
-
throw ( new Error(( localize(
|
|
543
|
+
throw ( new Error(( localize(2628, "Cannot load test runner."))));
|
|
544
544
|
}
|
|
545
545
|
const extensionDescription = (await this.getExtensionPathIndex()).findSubstr(extensionTestsLocationURI);
|
|
546
546
|
const isESM = this._isESM(extensionDescription, extensionTestsLocationURI.path);
|
|
@@ -549,7 +549,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
549
549
|
: this._loadCommonJSModule(null, extensionTestsLocationURI, ( new ExtensionActivationTimesBuilder(false))));
|
|
550
550
|
if (!testRunner || typeof testRunner.run !== 'function') {
|
|
551
551
|
throw ( new Error(( localize(
|
|
552
|
-
|
|
552
|
+
2629,
|
|
553
553
|
"Path {0} does not point to a valid extension test runner.",
|
|
554
554
|
(extensionTestsLocationURI.toString())
|
|
555
555
|
))));
|
|
@@ -4,11 +4,12 @@ import { parse, GLOBSTAR, GLOB_SPLIT } from '../../../base/common/glob.js';
|
|
|
4
4
|
import { URI } from '../../../base/common/uri.js';
|
|
5
5
|
import { MainContext } from './extHost.protocol.js';
|
|
6
6
|
import { GlobPattern, WorkspaceEdit as WorkspaceEdit$1 } from './extHostTypeConverters.js';
|
|
7
|
-
import { Disposable
|
|
7
|
+
import { Disposable } from './extHostTypes.js';
|
|
8
8
|
import { FileChangeFilter, FileOperation } from '../../../platform/files/common/files.js';
|
|
9
9
|
import { Lazy } from '../../../base/common/lazy.js';
|
|
10
10
|
import { rtrim } from '../../../base/common/strings.js';
|
|
11
11
|
import { normalizeWatcherPattern } from '../../../platform/files/common/watcher.js';
|
|
12
|
+
import { WorkspaceEdit } from './extHostTypes/workspaceEdit.js';
|
|
12
13
|
|
|
13
14
|
class FileSystemWatcher {
|
|
14
15
|
get ignoreCreateEvents() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as vscode from "vscode";
|
|
2
2
|
import { VSBuffer } from "../../../base/common/buffer.js";
|
|
3
3
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
4
|
+
import { Disposable as CoreDisposable } from "../../../base/common/lifecycle.js";
|
|
4
5
|
import { URI, UriComponents } from "../../../base/common/uri.js";
|
|
5
6
|
import { IURITransformer } from "../../../base/common/uriIpc.js";
|
|
6
7
|
import { IPosition } from "../../../editor/common/core/position.js";
|
|
@@ -16,10 +17,11 @@ import { ExtHostDiagnostics } from "./extHostDiagnostics.js";
|
|
|
16
17
|
import { ExtHostDocuments } from "./extHostDocuments.js";
|
|
17
18
|
import { IExtHostTelemetry } from "./extHostTelemetry.js";
|
|
18
19
|
import { Disposable } from "./extHostTypes.js";
|
|
20
|
+
import { IInlineCompletionsUnificationState } from "@codingame/monaco-vscode-base-service-override/vscode/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification";
|
|
19
21
|
export interface CustomCodeAction extends extHostProtocol.ICodeActionDto {
|
|
20
22
|
_isSynthetic?: boolean;
|
|
21
23
|
}
|
|
22
|
-
export declare class ExtHostLanguageFeatures implements extHostProtocol.ExtHostLanguageFeaturesShape {
|
|
24
|
+
export declare class ExtHostLanguageFeatures extends CoreDisposable implements extHostProtocol.ExtHostLanguageFeaturesShape {
|
|
23
25
|
private readonly _uriTransformer;
|
|
24
26
|
private readonly _documents;
|
|
25
27
|
private readonly _commands;
|
|
@@ -30,6 +32,10 @@ export declare class ExtHostLanguageFeatures implements extHostProtocol.ExtHostL
|
|
|
30
32
|
private static _handlePool;
|
|
31
33
|
private readonly _proxy;
|
|
32
34
|
private readonly _adapter;
|
|
35
|
+
private _inlineCompletionsUnificationState;
|
|
36
|
+
get inlineCompletionsUnificationState(): vscode.InlineCompletionsUnificationState;
|
|
37
|
+
private readonly _onDidChangeInlineCompletionsUnificationState;
|
|
38
|
+
readonly onDidChangeInlineCompletionsUnificationState: import("../../../base/common/event.js").Event<void>;
|
|
33
39
|
constructor(mainContext: extHostProtocol.IMainContext, _uriTransformer: IURITransformer, _documents: ExtHostDocuments, _commands: ExtHostCommands, _diagnostics: ExtHostDiagnostics, _logService: ILogService, _apiDeprecation: IExtHostApiDeprecationService, _extensionTelemetry: IExtHostTelemetry);
|
|
34
40
|
private _transformDocumentSelector;
|
|
35
41
|
private _createDisposable;
|
|
@@ -112,6 +118,7 @@ export declare class ExtHostLanguageFeatures implements extHostProtocol.ExtHostL
|
|
|
112
118
|
}>): void;
|
|
113
119
|
$handleInlineCompletionRejection(handle: number, pid: number, idx: number): void;
|
|
114
120
|
$freeInlineCompletionsList(handle: number, pid: number, reason: languages.InlineCompletionsDisposeReason): void;
|
|
121
|
+
$acceptInlineCompletionsUnificationState(state: IInlineCompletionsUnificationState): void;
|
|
115
122
|
registerSignatureHelpProvider(extension: IExtensionDescription, selector: vscode.DocumentSelector, provider: vscode.SignatureHelpProvider, metadataOrTriggerChars: string[] | vscode.SignatureHelpProviderMetadata): vscode.Disposable;
|
|
116
123
|
$provideSignatureHelp(handle: number, resource: UriComponents, position: IPosition, context: extHostProtocol.ISignatureHelpContextDto, token: CancellationToken): Promise<extHostProtocol.ISignatureHelpDto | undefined>;
|
|
117
124
|
$releaseSignatureHelp(handle: number, id: number): void;
|