@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
|
@@ -97,8 +97,8 @@ let InlineCompletionsHintsWidget = class InlineCompletionsHintsWidget extends Di
|
|
|
97
97
|
InlineCompletionsHintsWidget = ( __decorate([
|
|
98
98
|
( __param(2, IInstantiationService))
|
|
99
99
|
], InlineCompletionsHintsWidget));
|
|
100
|
-
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(
|
|
101
|
-
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(
|
|
100
|
+
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(1293, 'Icon for show next parameter hint.')));
|
|
101
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(1294, 'Icon for show previous parameter hint.')));
|
|
102
102
|
let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
|
|
103
103
|
static { InlineSuggestionHintsContentWidget_1 = this; }
|
|
104
104
|
static { this.hot = createHotClass(InlineSuggestionHintsContentWidget_1); }
|
|
@@ -116,7 +116,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
116
116
|
const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
|
|
117
117
|
let tooltip = label;
|
|
118
118
|
if (kb) {
|
|
119
|
-
tooltip = ( localize(
|
|
119
|
+
tooltip = ( localize(1295, '{0} ({1})', label, kb.getLabel()));
|
|
120
120
|
}
|
|
121
121
|
action.tooltip = tooltip;
|
|
122
122
|
return action;
|
|
@@ -164,9 +164,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
164
164
|
this._warningMessageNode.element,
|
|
165
165
|
h('div@toolBar'),
|
|
166
166
|
]);
|
|
167
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(
|
|
167
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(1296, 'Previous')), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
168
168
|
this.availableSuggestionCountAction = this._register(( new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false)));
|
|
169
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(
|
|
169
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(1297, 'Next')), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
170
170
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
171
171
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(( new RunOnceScheduler(() => {
|
|
172
172
|
this.availableSuggestionCountAction.label = '';
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { SuggestItemInfo } from "./suggestWidgetAdapter.js";
|
|
|
20
20
|
import { ICodeEditorService } from "../../../../browser/services/codeEditorService.service.js";
|
|
21
21
|
import { InlineCompletionViewData, InlineCompletionViewKind } from "../view/inlineEdits/inlineEditsViewInterface.js";
|
|
22
22
|
import { IInlineCompletionsService } from "../../../../browser/services/inlineCompletionsService.service.js";
|
|
23
|
+
import { URI } from "../../../../../base/common/uri.js";
|
|
23
24
|
export declare class InlineCompletionsModel extends Disposable {
|
|
24
25
|
readonly textModel: ITextModel;
|
|
25
26
|
private readonly _selectedSuggestItem;
|
|
@@ -57,6 +58,8 @@ export declare class InlineCompletionsModel extends Disposable {
|
|
|
57
58
|
private readonly _inlineEditsEnabled;
|
|
58
59
|
private readonly _inlineEditsShowCollapsedEnabled;
|
|
59
60
|
private readonly _triggerCommandOnProviderChange;
|
|
61
|
+
private readonly _minShowDelay;
|
|
62
|
+
private readonly _showOnSuggestConflict;
|
|
60
63
|
constructor(textModel: ITextModel, _selectedSuggestItem: IObservable<SuggestItemInfo | undefined>, _textModelVersionId: IObservableWithChange<number | null, IModelContentChangedEvent | undefined>, _positions: IObservable<readonly Position[]>, _debounceValue: IFeatureDebounceInformation, _enabled: IObservable<boolean>, _editor: ICodeEditor, _instantiationService: IInstantiationService, _commandService: ICommandService, _languageConfigurationService: ILanguageConfigurationService, _accessibilityService: IAccessibilityService, _languageFeaturesService: ILanguageFeaturesService, _codeEditorService: ICodeEditorService, _inlineCompletionsService: IInlineCompletionsService);
|
|
61
64
|
private _lastShownInlineCompletionInfo;
|
|
62
65
|
private _lastAcceptedInlineCompletionInfo;
|
|
@@ -70,6 +73,7 @@ export declare class InlineCompletionsModel extends Disposable {
|
|
|
70
73
|
private _getReason;
|
|
71
74
|
readonly dontRefetchSignal: import("../../../../../base/common/observable.js").IObservableSignal<void>;
|
|
72
75
|
private readonly _fetchInlineCompletionsPromise;
|
|
76
|
+
private getAvailableProviders;
|
|
73
77
|
trigger(tx?: ITransaction, options?: {
|
|
74
78
|
onlyFetchInlineEdits?: boolean;
|
|
75
79
|
noDelay?: boolean;
|
|
@@ -84,6 +88,7 @@ export declare class InlineCompletionsModel extends Disposable {
|
|
|
84
88
|
readonly lastTriggerKind: IObservable<InlineCompletionTriggerKind | undefined>;
|
|
85
89
|
readonly inlineCompletionsCount: IObservableWithChange<number | undefined, void>;
|
|
86
90
|
private readonly _hasVisiblePeekWidgets;
|
|
91
|
+
private readonly _shouldShowOnSuggestConflict;
|
|
87
92
|
readonly state: IObservable<{
|
|
88
93
|
kind: "ghostText";
|
|
89
94
|
edits: readonly TextReplacement[];
|
|
@@ -97,6 +102,7 @@ export declare class InlineCompletionsModel extends Disposable {
|
|
|
97
102
|
inlineEdit: InlineEdit;
|
|
98
103
|
inlineCompletion: InlineEditItem;
|
|
99
104
|
cursorAtInlineEdit: IObservable<boolean>;
|
|
105
|
+
nextEditUri: URI | undefined;
|
|
100
106
|
} | undefined>;
|
|
101
107
|
readonly status: IObservableWithChange<"loading" | "ghostText" | "inlineEdit" | "noSuggestion", void>;
|
|
102
108
|
readonly inlineCompletionState: IObservableWithChange<{
|
|
@@ -113,6 +119,7 @@ export declare class InlineCompletionsModel extends Disposable {
|
|
|
113
119
|
inlineEdit: InlineEdit;
|
|
114
120
|
inlineCompletion: InlineEditItem;
|
|
115
121
|
cursorAtInlineEdit: IObservable<boolean>;
|
|
122
|
+
nextEditUri: URI | undefined;
|
|
116
123
|
} | undefined, void>;
|
|
117
124
|
readonly inlineEditAvailable: IObservableWithChange<boolean, void>;
|
|
118
125
|
private _computeAugmentation;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js
CHANGED
|
@@ -41,6 +41,7 @@ import { IInlineCompletionsService } from '../../../../browser/services/inlineCo
|
|
|
41
41
|
import { TypingInterval } from './typingSpeed.js';
|
|
42
42
|
import { StringReplacement } from '../../../../common/core/edits/stringEdit.js';
|
|
43
43
|
import { OffsetRange } from '../../../../common/core/ranges/offsetRange.js';
|
|
44
|
+
import { URI } from '../../../../../base/common/uri.js';
|
|
44
45
|
import { derived, derivedHandleChanges, derivedOpts } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
45
46
|
import { transaction, subtransaction } from '../../../../../base/common/observableInternal/transaction.js';
|
|
46
47
|
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
@@ -178,7 +179,10 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
178
179
|
}
|
|
179
180
|
this._textModelVersionId.read(reader);
|
|
180
181
|
const suggestWidgetInlineCompletions = this._source.suggestWidgetInlineCompletions.get();
|
|
181
|
-
|
|
182
|
+
let suggestItem = this._selectedSuggestItem.read(reader);
|
|
183
|
+
if (this._shouldShowOnSuggestConflict.get()) {
|
|
184
|
+
suggestItem = undefined;
|
|
185
|
+
}
|
|
182
186
|
if (suggestWidgetInlineCompletions && !suggestItem) {
|
|
183
187
|
this._source.seedInlineCompletionsWithSuggestWidget();
|
|
184
188
|
}
|
|
@@ -216,6 +220,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
216
220
|
includeInlineCompletions: !changeSummary.onlyRequestInlineEdits,
|
|
217
221
|
includeInlineEdits: this._inlineEditsEnabled.read(reader),
|
|
218
222
|
requestIssuedDateTime: requestInfo.startTime,
|
|
223
|
+
earliestShownDateTime: requestInfo.startTime + (changeSummary.inlineCompletionTriggerKind === InlineCompletionTriggerKind.Explicit || this.inAcceptFlow.get() ? 0 : this._minShowDelay.get()),
|
|
219
224
|
};
|
|
220
225
|
if (context.triggerKind === InlineCompletionTriggerKind.Automatic && changeSummary.textChange) {
|
|
221
226
|
if (this.textModel.getAlternativeVersionId() === this._lastShownInlineCompletionInfo?.alternateTextModelVersionId) {
|
|
@@ -235,9 +240,8 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
235
240
|
const providers = changeSummary.provider
|
|
236
241
|
? { providers: [changeSummary.provider], label: 'single:' + changeSummary.provider.providerId?.toString() }
|
|
237
242
|
: { providers: this._languageFeaturesService.inlineCompletionsProvider.all(this.textModel), label: undefined };
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
return this._source.fetch(availableProviders, providers.label, context, itemToPreserve?.identity, changeSummary.shouldDebounce, userJumpedToActiveCompletion, !!changeSummary.provider, requestInfo);
|
|
243
|
+
const availableProviders = this.getAvailableProviders(providers.providers);
|
|
244
|
+
return this._source.fetch(availableProviders, providers.label, context, itemToPreserve?.identity, changeSummary.shouldDebounce, userJumpedToActiveCompletion, requestInfo);
|
|
241
245
|
});
|
|
242
246
|
this._inlineCompletionItems = derivedOpts({ owner: this }, reader => {
|
|
243
247
|
const c = this._source.inlineCompletions.read(reader);
|
|
@@ -295,6 +299,23 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
295
299
|
}
|
|
296
300
|
});
|
|
297
301
|
this._hasVisiblePeekWidgets = derived(this, reader => this._editorObs.openedPeekWidgets.read(reader) > 0);
|
|
302
|
+
this._shouldShowOnSuggestConflict = derived(this, reader => {
|
|
303
|
+
const showOnSuggestConflict = this._showOnSuggestConflict.read(reader);
|
|
304
|
+
if (showOnSuggestConflict !== 'never') {
|
|
305
|
+
const hasInlineCompletion = !!this.selectedInlineCompletion.read(reader);
|
|
306
|
+
if (hasInlineCompletion) {
|
|
307
|
+
const item = this._selectedSuggestItem.read(reader);
|
|
308
|
+
if (!item) {
|
|
309
|
+
return false;
|
|
310
|
+
}
|
|
311
|
+
if (showOnSuggestConflict === 'whenSuggestListIsIncomplete') {
|
|
312
|
+
return item.listIncomplete;
|
|
313
|
+
}
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return false;
|
|
318
|
+
});
|
|
298
319
|
this.state = derivedOpts({
|
|
299
320
|
owner: this,
|
|
300
321
|
equalsFn: (a, b) => {
|
|
@@ -328,10 +349,12 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
328
349
|
const inlineEdit = ( new InlineEdit(edit, commands ?? [], inlineEditResult));
|
|
329
350
|
const edits = inlineEditResult.updatedEdit;
|
|
330
351
|
const e = edits ? TextEdit.fromStringEdit(edits, ( new TextModelText(this.textModel))).replacements : [edit];
|
|
331
|
-
|
|
352
|
+
const nextEditUri = (item.inlineEdit?.command?.id === 'vscode.open' || item.inlineEdit?.command?.id === '_workbench.open') &&
|
|
353
|
+
item.inlineEdit?.command.arguments?.length ? ( URI.from(item.inlineEdit?.command.arguments[0])) : undefined;
|
|
354
|
+
return { kind: 'inlineEdit', inlineEdit, inlineCompletion: inlineEditResult, edits: e, cursorAtInlineEdit, nextEditUri };
|
|
332
355
|
}
|
|
333
356
|
const suggestItem = this._selectedSuggestItem.read(reader);
|
|
334
|
-
if (suggestItem) {
|
|
357
|
+
if (!this._shouldShowOnSuggestConflict.read(reader) && suggestItem) {
|
|
335
358
|
const suggestCompletionEdit = singleTextRemoveCommonPrefix(suggestItem.getSingleTextEdit(), model);
|
|
336
359
|
const augmentation = this._computeAugmentation(suggestCompletionEdit, reader);
|
|
337
360
|
const isSuggestionPreviewEnabled = this._suggestPreviewEnabled.read(reader);
|
|
@@ -509,13 +532,17 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
509
532
|
this._source = this._register(this._instantiationService.createInstance(InlineCompletionsSource, this.textModel, this._textModelVersionId, this._debounceValue, this.primaryPosition));
|
|
510
533
|
this.lastTriggerKind = ( this._source.inlineCompletions.map(this, v => v?.request?.context.triggerKind));
|
|
511
534
|
this._editorObs = observableCodeEditor(this._editor);
|
|
512
|
-
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
535
|
+
const suggest = this._editorObs.getOption(EditorOption.suggest);
|
|
536
|
+
this._suggestPreviewEnabled = ( suggest.map(v => v.preview));
|
|
537
|
+
this._suggestPreviewMode = ( suggest.map(v => v.previewMode));
|
|
538
|
+
const inlineSuggest = this._editorObs.getOption(EditorOption.inlineSuggest);
|
|
539
|
+
this._inlineSuggestMode = ( inlineSuggest.map(v => v.mode));
|
|
540
|
+
this._suppressedInlineCompletionGroupIds = ( inlineSuggest.map(v => ( new Set(v.experimental.suppressInlineSuggestions.split(',')))));
|
|
541
|
+
this._inlineEditsEnabled = ( inlineSuggest.map(v => !!v.edits.enabled));
|
|
542
|
+
this._inlineEditsShowCollapsedEnabled = ( inlineSuggest.map(s => s.edits.showCollapsed));
|
|
543
|
+
this._triggerCommandOnProviderChange = ( inlineSuggest.map(s => s.triggerCommandOnProviderChange));
|
|
544
|
+
this._minShowDelay = ( inlineSuggest.map(s => s.minShowDelay));
|
|
545
|
+
this._showOnSuggestConflict = ( inlineSuggest.map(s => s.experimental.showOnSuggestConflict));
|
|
519
546
|
this._typing = this._register(( new TypingInterval(this.textModel)));
|
|
520
547
|
this._register(this._inlineCompletionsService.onDidChangeIsSnoozing((isSnoozing) => {
|
|
521
548
|
if (isSnoozing) {
|
|
@@ -532,6 +559,11 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
532
559
|
: this.isInDiffEditor ? InlineCompletionEditorType.DiffEditor
|
|
533
560
|
: InlineCompletionEditorType.TextEditor;
|
|
534
561
|
}
|
|
562
|
+
this._register(recomputeInitiallyAndOnChange(this.state, (s) => {
|
|
563
|
+
if (s && s.inlineCompletion) {
|
|
564
|
+
this._inlineCompletionsService.reportNewCompletion(s.inlineCompletion.requestUuid);
|
|
565
|
+
}
|
|
566
|
+
}));
|
|
535
567
|
this._register(recomputeInitiallyAndOnChange(this._fetchInlineCompletionsPromise));
|
|
536
568
|
this._register(autorun(reader => {
|
|
537
569
|
this._editorObs.versionId.read(reader);
|
|
@@ -625,6 +657,22 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
625
657
|
}
|
|
626
658
|
return VersionIdChangeReason.Other;
|
|
627
659
|
}
|
|
660
|
+
getAvailableProviders(providers) {
|
|
661
|
+
const suppressedProviderGroupIds = this._suppressedInlineCompletionGroupIds.get();
|
|
662
|
+
const unsuppressedProviders = providers.filter(provider => !(provider.groupId && ( suppressedProviderGroupIds.has(provider.groupId))));
|
|
663
|
+
const excludedGroupIds = ( new Set());
|
|
664
|
+
for (const provider of unsuppressedProviders) {
|
|
665
|
+
provider.excludesGroupIds?.forEach(p => excludedGroupIds.add(p));
|
|
666
|
+
}
|
|
667
|
+
const availableProviders = [];
|
|
668
|
+
for (const provider of unsuppressedProviders) {
|
|
669
|
+
if (provider.groupId && ( excludedGroupIds.has(provider.groupId))) {
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
availableProviders.push(provider);
|
|
673
|
+
}
|
|
674
|
+
return availableProviders;
|
|
675
|
+
}
|
|
628
676
|
async trigger(tx, options) {
|
|
629
677
|
subtransaction(tx, tx => {
|
|
630
678
|
if (options?.onlyFetchInlineEdits) {
|
|
@@ -686,12 +734,13 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
686
734
|
}
|
|
687
735
|
async next() { await this._deltaSelectedInlineCompletionIndex(1); }
|
|
688
736
|
async previous() { await this._deltaSelectedInlineCompletionIndex(-1); }
|
|
689
|
-
_getMetadata(completion, type = undefined) {
|
|
737
|
+
_getMetadata(completion, languageId, type = undefined) {
|
|
690
738
|
if (type) {
|
|
691
739
|
return EditSources.inlineCompletionPartialAccept({
|
|
692
740
|
nes: completion.isInlineEdit,
|
|
693
741
|
requestUuid: completion.requestUuid,
|
|
694
742
|
providerId: completion.source.provider.providerId,
|
|
743
|
+
languageId,
|
|
695
744
|
type,
|
|
696
745
|
});
|
|
697
746
|
}
|
|
@@ -700,6 +749,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
700
749
|
nes: completion.isInlineEdit,
|
|
701
750
|
requestUuid: completion.requestUuid,
|
|
702
751
|
providerId: completion.source.provider.providerId,
|
|
752
|
+
languageId
|
|
703
753
|
});
|
|
704
754
|
}
|
|
705
755
|
}
|
|
@@ -708,6 +758,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
708
758
|
throw ( new BugIndicatingError());
|
|
709
759
|
}
|
|
710
760
|
let completion;
|
|
761
|
+
let isNextEditUri = false;
|
|
711
762
|
const state = this.state.get();
|
|
712
763
|
if (state?.kind === 'ghostText') {
|
|
713
764
|
if (!state || state.primaryGhostText.isEmpty() || !state.inlineCompletion) {
|
|
@@ -717,6 +768,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
717
768
|
}
|
|
718
769
|
else if (state?.kind === 'inlineEdit') {
|
|
719
770
|
completion = state.inlineCompletion;
|
|
771
|
+
isNextEditUri = !!state.nextEditUri;
|
|
720
772
|
}
|
|
721
773
|
else {
|
|
722
774
|
return;
|
|
@@ -724,11 +776,13 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
724
776
|
completion.addRef();
|
|
725
777
|
try {
|
|
726
778
|
editor.pushUndoStop();
|
|
727
|
-
if (
|
|
779
|
+
if (isNextEditUri) {
|
|
780
|
+
}
|
|
781
|
+
else if (completion.snippetInfo) {
|
|
728
782
|
const mainEdit = TextReplacement.delete(completion.editRange);
|
|
729
783
|
const additionalEdits = ( completion.additionalTextEdits.map(e => ( new TextReplacement(Range.lift(e.range), e.text ?? ''))));
|
|
730
784
|
const edit = TextEdit.fromParallelReplacementsUnsorted([mainEdit, ...additionalEdits]);
|
|
731
|
-
editor.edit(edit, this._getMetadata(completion));
|
|
785
|
+
editor.edit(edit, this._getMetadata(completion, this.textModel.getLanguageId()));
|
|
732
786
|
editor.setPosition(completion.snippetInfo.range.getStartPosition(), 'inlineCompletionAccept');
|
|
733
787
|
SnippetController2.get(editor)?.insert(completion.snippetInfo.snippet, { undoStopBefore: false });
|
|
734
788
|
}
|
|
@@ -741,7 +795,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
741
795
|
const selections = ( getEndPositionsAfterApplying(minimalEdits).map(p => Selection.fromPositions(p)));
|
|
742
796
|
const additionalEdits = ( completion.additionalTextEdits.map(e => ( new TextReplacement(Range.lift(e.range), e.text ?? ''))));
|
|
743
797
|
const edit = TextEdit.fromParallelReplacementsUnsorted([...edits, ...additionalEdits]);
|
|
744
|
-
editor.edit(edit, this._getMetadata(completion));
|
|
798
|
+
editor.edit(edit, this._getMetadata(completion, this.textModel.getLanguageId()));
|
|
745
799
|
if (completion.displayLocation === undefined) {
|
|
746
800
|
editor.setSelections(state.kind === 'inlineEdit' ? selections.slice(-1) : selections, 'inlineCompletionAccept');
|
|
747
801
|
}
|
|
@@ -849,7 +903,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
849
903
|
const acceptedRange = Range.fromPositions(completion.editRange.getStartPosition(), TextLength.ofText(partialGhostTextVal).addToPosition(ghostTextPos));
|
|
850
904
|
const text = editor.getModel().getValueInRange(acceptedRange, EndOfLinePreference.LF);
|
|
851
905
|
const acceptedLength = text.length;
|
|
852
|
-
completion.reportPartialAccept(acceptedLength, { kind, acceptedLength: acceptedLength });
|
|
906
|
+
completion.reportPartialAccept(acceptedLength, { kind, acceptedLength: acceptedLength }, { characters: acceptUntilIndexExclusive, ratio: acceptUntilIndexExclusive / ghostTextVal.length, count: 1 });
|
|
853
907
|
}
|
|
854
908
|
finally {
|
|
855
909
|
completion.removeRef();
|
|
@@ -866,6 +920,10 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
866
920
|
augmentedCompletion.completion.reportPartialAccept(itemEdit.text.length, {
|
|
867
921
|
kind: PartialAcceptTriggerKind.Suggest,
|
|
868
922
|
acceptedLength,
|
|
923
|
+
}, {
|
|
924
|
+
characters: itemEdit.text.length,
|
|
925
|
+
count: 1,
|
|
926
|
+
ratio: 1
|
|
869
927
|
});
|
|
870
928
|
}
|
|
871
929
|
extractReproSample() {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare class InlineCompletionsSource extends Disposable {
|
|
|
33
33
|
private _log;
|
|
34
34
|
private readonly _loadingCount;
|
|
35
35
|
readonly loading: IObservable<boolean>;
|
|
36
|
-
fetch(providers: InlineCompletionsProvider[], providersLabel: string | undefined, context: InlineCompletionContextWithoutUuid, activeInlineCompletion: InlineSuggestionIdentity | undefined, withDebounce: boolean, userJumpedToActiveCompletion: IObservable<boolean>,
|
|
36
|
+
fetch(providers: InlineCompletionsProvider[], providersLabel: string | undefined, context: InlineCompletionContextWithoutUuid, activeInlineCompletion: InlineSuggestionIdentity | undefined, withDebounce: boolean, userJumpedToActiveCompletion: IObservable<boolean>, requestInfo: InlineSuggestRequestInfo): Promise<boolean>;
|
|
37
37
|
clear(tx: ITransaction): void;
|
|
38
38
|
seedInlineCompletionsWithSuggestWidget(): void;
|
|
39
39
|
clearSuggestWidgetInlineCompletions(tx: ITransaction): void;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js
CHANGED
|
@@ -88,11 +88,11 @@ let InlineCompletionsSource = class InlineCompletionsSource extends Disposable {
|
|
|
88
88
|
}
|
|
89
89
|
this._structuredFetchLogger.log(entry);
|
|
90
90
|
}
|
|
91
|
-
fetch(providers, providersLabel, context, activeInlineCompletion, withDebounce, userJumpedToActiveCompletion,
|
|
91
|
+
fetch(providers, providersLabel, context, activeInlineCompletion, withDebounce, userJumpedToActiveCompletion, requestInfo) {
|
|
92
92
|
const position = this._cursorPosition.get();
|
|
93
93
|
const request = ( new UpdateRequest(position, context, this._textModel.getVersionId(), ( new Set(providers))));
|
|
94
94
|
const target = context.selectedSuggestionInfo ? this.suggestWidgetInlineCompletions.get() : this.inlineCompletions.get();
|
|
95
|
-
if (
|
|
95
|
+
if (this._updateOperation.value?.request.satisfies(request)) {
|
|
96
96
|
return this._updateOperation.value.promise;
|
|
97
97
|
}
|
|
98
98
|
else if (target?.request?.satisfies(request)) {
|
|
@@ -172,6 +172,10 @@ let InlineCompletionsSource = class InlineCompletionsSource extends Disposable {
|
|
|
172
172
|
})));
|
|
173
173
|
this._log({ sourceId: 'InlineCompletions.fetch', kind: 'end', requestId, durationMs: (Date.now() - startTime.getTime()), error, result, time: Date.now(), didAllProvidersReturn });
|
|
174
174
|
}
|
|
175
|
+
const remainingTimeToWait = context.earliestShownDateTime - Date.now();
|
|
176
|
+
if (remainingTimeToWait > 0) {
|
|
177
|
+
await wait(remainingTimeToWait, source.token);
|
|
178
|
+
}
|
|
175
179
|
if (source.token.isCancellationRequested || this._store.isDisposed || this._textModel.getVersionId() !== request.versionId
|
|
176
180
|
|| userJumpedToActiveCompletion.get() ) {
|
|
177
181
|
return false;
|
|
@@ -338,8 +342,8 @@ class InlineCompletionsState extends Disposable {
|
|
|
338
342
|
let item;
|
|
339
343
|
if (oldItem && oldItem !== i) {
|
|
340
344
|
item = i.withIdentity(oldItem.identity);
|
|
345
|
+
i.setIsPreceeded(oldItem);
|
|
341
346
|
oldItem.setEndOfLifeReason({ kind: InlineCompletionEndOfLifeReasonKind.Ignored, userTypingDisagreed: false, supersededBy: i.getSourceCompletion() });
|
|
342
|
-
i.setIsPreceeded();
|
|
343
347
|
}
|
|
344
348
|
else {
|
|
345
349
|
item = i;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { Position } from "../../../../common/core/position.js";
|
|
|
6
6
|
import { PositionOffsetTransformerBase } from "../../../../common/core/text/positionToOffset.js";
|
|
7
7
|
import { Range } from "../../../../common/core/range.js";
|
|
8
8
|
import { TextReplacement } from "../../../../common/core/edits/textEdit.js";
|
|
9
|
-
import { InlineCompletion, Command, InlineCompletionWarning, PartialAcceptInfo, InlineCompletionEndOfLifeReason } from "../../../../common/languages.js";
|
|
9
|
+
import { InlineCompletion, Command, InlineCompletionWarning, PartialAcceptInfo, InlineCompletionEndOfLifeReason, InlineCompletionDisplayLocationKind } from "../../../../common/languages.js";
|
|
10
10
|
import { ITextModel } from "../../../../common/model.js";
|
|
11
|
-
import { IDisplayLocation, InlineSuggestData, InlineSuggestionList, SnippetInfo } from "./provideInlineCompletions.js";
|
|
11
|
+
import { IDisplayLocation, InlineSuggestData, InlineSuggestionList, PartialAcceptance, SnippetInfo } from "./provideInlineCompletions.js";
|
|
12
12
|
import { InlineCompletionViewData, InlineCompletionViewKind } from "../view/inlineEdits/inlineEditsViewInterface.js";
|
|
13
13
|
export type InlineSuggestionItem = InlineEditItem | InlineCompletionItem;
|
|
14
14
|
export declare namespace InlineSuggestionItem {
|
|
@@ -38,6 +38,7 @@ declare abstract class InlineSuggestionItemBase {
|
|
|
38
38
|
/** @deprecated */
|
|
39
39
|
get shownCommand(): Command | undefined;
|
|
40
40
|
get requestUuid(): string;
|
|
41
|
+
get partialAccepts(): PartialAcceptance;
|
|
41
42
|
/**
|
|
42
43
|
* A reference to the original inline completion this inline completion has been constructed from.
|
|
43
44
|
* Used for event data to ensure referential equality.
|
|
@@ -50,11 +51,11 @@ declare abstract class InlineSuggestionItemBase {
|
|
|
50
51
|
addRef(): void;
|
|
51
52
|
removeRef(): void;
|
|
52
53
|
reportInlineEditShown(commandService: ICommandService, viewKind: InlineCompletionViewKind, viewData: InlineCompletionViewData): void;
|
|
53
|
-
reportPartialAccept(acceptedCharacters: number, info: PartialAcceptInfo): void;
|
|
54
|
+
reportPartialAccept(acceptedCharacters: number, info: PartialAcceptInfo, partialAcceptance: PartialAcceptance): void;
|
|
54
55
|
reportEndOfLife(reason: InlineCompletionEndOfLifeReason): void;
|
|
55
56
|
setEndOfLifeReason(reason: InlineCompletionEndOfLifeReason): void;
|
|
56
57
|
reportInlineEditError(reason: string): void;
|
|
57
|
-
setIsPreceeded(): void;
|
|
58
|
+
setIsPreceeded(item: InlineSuggestionItem): void;
|
|
58
59
|
/**
|
|
59
60
|
* Avoid using this method. Instead introduce getters for the needed properties.
|
|
60
61
|
*/
|
|
@@ -72,6 +73,7 @@ export declare class InlineSuggestionIdentity {
|
|
|
72
73
|
declare class InlineSuggestDisplayLocation implements IDisplayLocation {
|
|
73
74
|
readonly range: Range;
|
|
74
75
|
readonly label: string;
|
|
76
|
+
readonly kind: InlineCompletionDisplayLocationKind;
|
|
75
77
|
static create(displayLocation: IDisplayLocation): InlineSuggestDisplayLocation;
|
|
76
78
|
private constructor();
|
|
77
79
|
withEdit(edit: StringEdit, positionOffsetTransformer: PositionOffsetTransformerBase): InlineSuggestDisplayLocation | undefined;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js
CHANGED
|
@@ -54,6 +54,7 @@ class InlineSuggestionItemBase {
|
|
|
54
54
|
}
|
|
55
55
|
get shownCommand() { return this._sourceInlineCompletion.shownCommand; }
|
|
56
56
|
get requestUuid() { return this._data.context.requestUuid; }
|
|
57
|
+
get partialAccepts() { return this._data.partialAccepts; }
|
|
57
58
|
get _sourceInlineCompletion() { return this._data.sourceInlineCompletion; }
|
|
58
59
|
addRef() {
|
|
59
60
|
this.identity.addRef();
|
|
@@ -66,8 +67,8 @@ class InlineSuggestionItemBase {
|
|
|
66
67
|
reportInlineEditShown(commandService, viewKind, viewData) {
|
|
67
68
|
this._data.reportInlineEditShown(commandService, this.insertText, viewKind, viewData);
|
|
68
69
|
}
|
|
69
|
-
reportPartialAccept(acceptedCharacters, info) {
|
|
70
|
-
this._data.reportPartialAccept(acceptedCharacters, info);
|
|
70
|
+
reportPartialAccept(acceptedCharacters, info, partialAcceptance) {
|
|
71
|
+
this._data.reportPartialAccept(acceptedCharacters, info, partialAcceptance);
|
|
71
72
|
}
|
|
72
73
|
reportEndOfLife(reason) {
|
|
73
74
|
this._data.reportEndOfLife(reason);
|
|
@@ -78,8 +79,8 @@ class InlineSuggestionItemBase {
|
|
|
78
79
|
reportInlineEditError(reason) {
|
|
79
80
|
this._data.reportInlineEditError(reason);
|
|
80
81
|
}
|
|
81
|
-
setIsPreceeded() {
|
|
82
|
-
this._data.setIsPreceeded();
|
|
82
|
+
setIsPreceeded(item) {
|
|
83
|
+
this._data.setIsPreceeded(item.partialAccepts);
|
|
83
84
|
}
|
|
84
85
|
getSourceCompletion() {
|
|
85
86
|
return this._sourceInlineCompletion;
|
|
@@ -105,11 +106,12 @@ class InlineSuggestionIdentity {
|
|
|
105
106
|
}
|
|
106
107
|
class InlineSuggestDisplayLocation {
|
|
107
108
|
static create(displayLocation) {
|
|
108
|
-
return ( new InlineSuggestDisplayLocation(displayLocation.range, displayLocation.label));
|
|
109
|
+
return ( new InlineSuggestDisplayLocation(displayLocation.range, displayLocation.label, displayLocation.kind));
|
|
109
110
|
}
|
|
110
|
-
constructor(range, label) {
|
|
111
|
+
constructor(range, label, kind) {
|
|
111
112
|
this.range = range;
|
|
112
113
|
this.label = label;
|
|
114
|
+
this.kind = kind;
|
|
113
115
|
}
|
|
114
116
|
withEdit(edit, positionOffsetTransformer) {
|
|
115
117
|
const offsetRange = ( new OffsetRange(
|
|
@@ -121,7 +123,7 @@ class InlineSuggestDisplayLocation {
|
|
|
121
123
|
return undefined;
|
|
122
124
|
}
|
|
123
125
|
const newRange = positionOffsetTransformer.getRange(newOffsetRange);
|
|
124
|
-
return ( new InlineSuggestDisplayLocation(newRange, this.label));
|
|
126
|
+
return ( new InlineSuggestDisplayLocation(newRange, this.label, this.kind));
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
class InlineCompletionItem extends InlineSuggestionItemBase {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ISingleEditOperation } from "../../../../common/core/editOperation.js";
|
|
|
6
6
|
import { Position } from "../../../../common/core/position.js";
|
|
7
7
|
import { Range } from "../../../../common/core/range.js";
|
|
8
8
|
import { TextReplacement } from "../../../../common/core/edits/textEdit.js";
|
|
9
|
-
import { InlineCompletionEndOfLifeReason, InlineCompletion, InlineCompletionContext, InlineCompletions, InlineCompletionsProvider, PartialAcceptInfo, InlineCompletionsDisposeReason } from "../../../../common/languages.js";
|
|
9
|
+
import { InlineCompletionEndOfLifeReason, InlineCompletionDisplayLocationKind, InlineCompletion, InlineCompletionContext, InlineCompletions, InlineCompletionsProvider, PartialAcceptInfo, InlineCompletionsDisposeReason } from "../../../../common/languages.js";
|
|
10
10
|
import { ILanguageConfigurationService } from "../../../../common/languages/languageConfigurationRegistry.service.js";
|
|
11
11
|
import { ITextModel } from "../../../../common/model.js";
|
|
12
12
|
import { InlineCompletionViewData, InlineCompletionViewKind } from "../view/inlineEdits/inlineEditsViewInterface.js";
|
|
@@ -27,6 +27,15 @@ export type InlineSuggestRequestInfo = {
|
|
|
27
27
|
typingInterval: number;
|
|
28
28
|
typingIntervalCharacterCount: number;
|
|
29
29
|
};
|
|
30
|
+
export type InlineSuggestProviderRequestInfo = {
|
|
31
|
+
startTime: number;
|
|
32
|
+
endTime: number;
|
|
33
|
+
};
|
|
34
|
+
export type PartialAcceptance = {
|
|
35
|
+
characters: number;
|
|
36
|
+
count: number;
|
|
37
|
+
ratio: number;
|
|
38
|
+
};
|
|
30
39
|
export type InlineSuggestViewData = {
|
|
31
40
|
editorType: InlineCompletionEditorType;
|
|
32
41
|
renderData?: InlineCompletionViewData;
|
|
@@ -44,6 +53,8 @@ export declare class InlineSuggestData {
|
|
|
44
53
|
readonly context: InlineCompletionContext;
|
|
45
54
|
readonly isInlineEdit: boolean;
|
|
46
55
|
private readonly _requestInfo;
|
|
56
|
+
private readonly _providerRequestInfo;
|
|
57
|
+
private readonly _correlationId;
|
|
47
58
|
private _didShow;
|
|
48
59
|
private _timeUntilShown;
|
|
49
60
|
private _showStartTime;
|
|
@@ -55,11 +66,13 @@ export declare class InlineSuggestData {
|
|
|
55
66
|
private _lastSetEndOfLifeReason;
|
|
56
67
|
private _isPreceeded;
|
|
57
68
|
private _partiallyAcceptedCount;
|
|
58
|
-
|
|
69
|
+
private _partiallyAcceptedSinceOriginal;
|
|
70
|
+
constructor(range: Range, insertText: string, snippetInfo: SnippetInfo | undefined, displayLocation: IDisplayLocation | undefined, additionalTextEdits: readonly ISingleEditOperation[], sourceInlineCompletion: InlineCompletion, source: InlineSuggestionList, context: InlineCompletionContext, isInlineEdit: boolean, _requestInfo: InlineSuggestRequestInfo, _providerRequestInfo: InlineSuggestProviderRequestInfo, _correlationId: string | undefined);
|
|
59
71
|
get showInlineEditMenu(): boolean;
|
|
72
|
+
get partialAccepts(): PartialAcceptance;
|
|
60
73
|
getSingleTextEdit(): TextReplacement;
|
|
61
74
|
reportInlineEditShown(commandService: ICommandService, updatedInsertText: string, viewKind: InlineCompletionViewKind, viewData: InlineCompletionViewData): Promise<void>;
|
|
62
|
-
reportPartialAccept(acceptedCharacters: number, info: PartialAcceptInfo): void;
|
|
75
|
+
reportPartialAccept(acceptedCharacters: number, info: PartialAcceptInfo, partialAcceptance: PartialAcceptance): void;
|
|
63
76
|
/**
|
|
64
77
|
* Sends the end of life event to the provider.
|
|
65
78
|
* If no reason is provided, the last set reason is used.
|
|
@@ -67,7 +80,7 @@ export declare class InlineSuggestData {
|
|
|
67
80
|
*/
|
|
68
81
|
reportEndOfLife(reason?: InlineCompletionEndOfLifeReason): void;
|
|
69
82
|
reportInlineEditError(message: string): void;
|
|
70
|
-
setIsPreceeded(): void;
|
|
83
|
+
setIsPreceeded(partialAccepts: PartialAcceptance): void;
|
|
71
84
|
/**
|
|
72
85
|
* Sets the end of life reason, but does not send the event to the provider yet.
|
|
73
86
|
*/
|
|
@@ -82,6 +95,7 @@ export interface SnippetInfo {
|
|
|
82
95
|
export interface IDisplayLocation {
|
|
83
96
|
range: Range;
|
|
84
97
|
label: string;
|
|
98
|
+
kind: InlineCompletionDisplayLocationKind;
|
|
85
99
|
}
|
|
86
100
|
export declare enum InlineCompletionEditorType {
|
|
87
101
|
TextEditor = "textEditor",
|