@codingame/monaco-vscode-api 16.1.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +107 -2
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +7 -18
- package/vscode/src/vs/base/browser/dom.d.ts +1 -0
- package/vscode/src/vs/base/browser/dom.js +6 -1
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +2 -0
- package/vscode/src/vs/base/browser/mouseEvent.js +1 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +2 -3
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +6 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +1 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +17 -4
- package/vscode/src/vs/base/common/arrays.d.ts +1 -0
- package/vscode/src/vs/base/common/arrays.js +5 -2
- package/vscode/src/vs/base/common/async.js +9 -2
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/color.d.ts +1 -0
- package/vscode/src/vs/base/common/color.js +10 -0
- package/vscode/src/vs/base/common/comparers.d.ts +2 -2
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.js +10 -1
- package/vscode/src/vs/base/common/marshallingIds.d.ts +2 -1
- package/vscode/src/vs/base/common/marshallingIds.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +6 -8
- package/vscode/src/vs/base/common/observableInternal/autorun.js +15 -11
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -10
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +23 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +30 -0
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +18 -13
- package/vscode/src/vs/base/common/observableInternal/derived.js +47 -18
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +6 -5
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +65 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.js +36 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +19 -11
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +26 -0
- package/vscode/src/vs/base/common/sseParser.js +134 -0
- package/vscode/src/vs/base/common/stopwatch.js +2 -2
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +8 -19
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -0
- package/vscode/src/vs/base/common/ternarySearchTree.js +55 -13
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +6 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +86 -54
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +12 -8
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -6
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +3 -3
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +8 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +6 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.js +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +13 -6
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +4 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -5
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +0 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +5 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +19 -15
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +20 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +24 -23
- package/vscode/src/vs/editor/common/config/editorOptions.js +3 -4
- package/vscode/src/vs/editor/common/core/columnRange.d.ts +11 -0
- package/vscode/src/vs/editor/common/core/columnRange.js +32 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +10 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +15 -3
- package/vscode/src/vs/editor/common/core/positionToOffset.js +45 -11
- package/vscode/src/vs/editor/common/core/rangeSingleLine.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/rangeSingleLine.js +27 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.d.ts +2 -2
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +4 -2
- package/vscode/src/vs/editor/common/languages.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages.js +7 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +5 -1
- package/vscode/src/vs/editor/common/model/textModel.js +80 -18
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +5 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +7 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +11 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +14 -1
- package/vscode/src/vs/editor/common/tokens/common.d.ts +7 -0
- package/vscode/src/vs/editor/common/tokens/common.js +18 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +2 -1
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +9 -4
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +4 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +25 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +73 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +35 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +339 -0
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +8 -6
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +42 -49
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +6 -3
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +16 -5
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +44 -7
- package/vscode/src/vs/editor/common/viewModel.d.ts +5 -0
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -14
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +4 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +5 -11
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +1 -7
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -15
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -23
- 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 +5 -5
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +14 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -21
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +0 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +29 -41
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +31 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +16 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +156 -202
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +21 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +135 -431
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +98 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +487 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +34 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +141 -132
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +2 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +19 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +17 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +5 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +139 -188
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +8 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +23 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +157 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +37 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +28 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +215 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
- 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 +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.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 +17 -17
- 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 +23 -49
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.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/stickyScroll/browser/stickyScrollController.js +8 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +24 -14
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -18
- 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 +5 -10
- 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/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +23 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +17 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +6 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +3 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +15 -13
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +5 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +6 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +8 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +94 -4
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +7 -6
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -8
- 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/jsonschemas/common/jsonContributionRegistry.js +5 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +2 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +5 -5
- package/vscode/src/vs/platform/markers/common/markers.d.ts +7 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.service.d.ts +2 -7
- package/vscode/src/vs/platform/native/common/native.d.ts +168 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +6 -2
- package/vscode/src/vs/platform/notification/common/notification.js +3 -2
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +2 -3
- package/vscode/src/vs/platform/product/common/product.js +93 -48
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +4 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +6 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +33 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +6 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +25 -18
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.d.ts +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +58 -43
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/registry/common/platform.js +9 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +14 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +14 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -2
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +7 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +12 -4
- 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 +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.d.ts +2 -0
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +49 -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 +10 -8
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +0 -8
- package/vscode/src/vs/platform/theme/common/themeService.js +4 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/window/common/window.d.ts +4 -0
- package/vscode/src/vs/platform/window/common/window.js +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -20
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +54 -19
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +30 -17
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +15 -4
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +31 -6
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +60 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +15 -9
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +279 -82
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
- 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.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +27 -9
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +201 -29
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +67 -27
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +79 -28
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +34 -9
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +1 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +33 -33
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +10 -16
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -71
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +13 -9
- 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 +164 -147
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +245 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +435 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +51 -49
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +16 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +585 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1179 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +211 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +33 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +14 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +28 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +8 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +11 -97
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -3
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +127 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -10
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +77 -16
- 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/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +17 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js +10 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +13 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +61 -12
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +25 -29
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -4
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +2 -1
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +5 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +6 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +31 -23
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +64 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +560 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +165 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +74 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +12 -2
- 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 +12 -12
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +204 -9
- package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +84 -5
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +1 -1
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +1 -1
- package/vscode-dts/vscode.proposed.d.ts +2 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +46 -8
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +106 -16
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +115 -21
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +7 -3
- package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +23 -1
- package/vscode-dts/vscode.proposed.toolProgress.d.ts +25 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
- package/workbench.d.ts +1 -1
- package/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts +0 -8
- package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +0 -170
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { timeout } from '../../../../../../base/common/async.js';
|
|
4
|
+
import { BugIndicatingError } from '../../../../../../base/common/errors.js';
|
|
5
|
+
import { Disposable, MutableDisposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
6
|
+
import '../../../../../../base/common/observableInternal/index.js';
|
|
7
|
+
import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
|
|
8
|
+
import { StorageScope, StorageTarget } from '../../../../../../platform/storage/common/storage.js';
|
|
9
|
+
import { IStorageService } from '../../../../../../platform/storage/common/storage.service.js';
|
|
10
|
+
import { runOnChangeWithCancellationToken, runOnChange } from '../../../../../../base/common/observableInternal/utils.js';
|
|
11
|
+
import { observableValue } from '../../../../../../base/common/observableInternal/base.js';
|
|
12
|
+
import { derived } from '../../../../../../base/common/observableInternal/derived.js';
|
|
13
|
+
import { autorun, autorunWithStore } from '../../../../../../base/common/observableInternal/autorun.js';
|
|
14
|
+
|
|
15
|
+
var UserKind;
|
|
16
|
+
(function (UserKind) {
|
|
17
|
+
UserKind["FirstTime"] = "firstTime";
|
|
18
|
+
UserKind["SecondTime"] = "secondTime";
|
|
19
|
+
UserKind["Active"] = "active";
|
|
20
|
+
})(UserKind || (UserKind = {}));
|
|
21
|
+
let InlineEditsOnboardingExperience = class InlineEditsOnboardingExperience extends Disposable {
|
|
22
|
+
constructor(_host, _model, _indicator, _collapsedView, _storageService, _configurationService) {
|
|
23
|
+
super();
|
|
24
|
+
this._host = _host;
|
|
25
|
+
this._model = _model;
|
|
26
|
+
this._indicator = _indicator;
|
|
27
|
+
this._collapsedView = _collapsedView;
|
|
28
|
+
this._storageService = _storageService;
|
|
29
|
+
this._configurationService = _configurationService;
|
|
30
|
+
this._disposables = this._register(( new MutableDisposable()));
|
|
31
|
+
this._setupDone = observableValue({ name: 'setupDone' }, false);
|
|
32
|
+
this._activeCompletionId = derived(reader => {
|
|
33
|
+
const model = this._model.read(reader);
|
|
34
|
+
if (!model) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (!this._setupDone.read(reader)) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
const indicator = this._indicator.read(reader);
|
|
41
|
+
if (!indicator || !indicator.isVisible.read(reader)) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
return model.inlineEdit.inlineCompletion.identity.id;
|
|
45
|
+
});
|
|
46
|
+
this._register(this._initializeDebugSetting());
|
|
47
|
+
this._disposables.value = this.setupNewUserExperience();
|
|
48
|
+
this._setupDone.set(true, undefined);
|
|
49
|
+
}
|
|
50
|
+
setupNewUserExperience() {
|
|
51
|
+
if (this.getNewUserType() === UserKind.Active) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const disposableStore = ( new DisposableStore());
|
|
55
|
+
let userHasHoveredOverIcon = false;
|
|
56
|
+
let inlineEditHasBeenAccepted = false;
|
|
57
|
+
let firstTimeUserAnimationCount = 0;
|
|
58
|
+
let secondTimeUserAnimationCount = 0;
|
|
59
|
+
disposableStore.add(runOnChangeWithCancellationToken(this._activeCompletionId, async (id, _, __, token) => {
|
|
60
|
+
if (id === undefined) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
let userType = this.getNewUserType();
|
|
64
|
+
switch (userType) {
|
|
65
|
+
case UserKind.FirstTime: {
|
|
66
|
+
if (firstTimeUserAnimationCount++ >= 5 || userHasHoveredOverIcon) {
|
|
67
|
+
userType = UserKind.SecondTime;
|
|
68
|
+
this.setNewUserType(userType);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case UserKind.SecondTime: {
|
|
73
|
+
if (secondTimeUserAnimationCount++ >= 3 && inlineEditHasBeenAccepted) {
|
|
74
|
+
userType = UserKind.Active;
|
|
75
|
+
this.setNewUserType(userType);
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
switch (userType) {
|
|
81
|
+
case UserKind.FirstTime: {
|
|
82
|
+
for (let i = 0; i < 3 && !token.isCancellationRequested; i++) {
|
|
83
|
+
await this._indicator.get()?.triggerAnimation();
|
|
84
|
+
await timeout(500);
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
case UserKind.SecondTime: {
|
|
89
|
+
this._indicator.get()?.triggerAnimation();
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
94
|
+
disposableStore.add(autorun(reader => {
|
|
95
|
+
if (this._collapsedView.isVisible.read(reader)) {
|
|
96
|
+
if (this.getNewUserType() !== UserKind.Active) {
|
|
97
|
+
this._collapsedView.triggerAnimation();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
disposableStore.add(autorunWithStore((reader, store) => {
|
|
102
|
+
const indicator = this._indicator.read(reader);
|
|
103
|
+
if (!indicator) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
store.add(runOnChange(indicator.isHoveredOverIcon, async (isHovered) => {
|
|
107
|
+
if (isHovered) {
|
|
108
|
+
userHasHoveredOverIcon = true;
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
}));
|
|
112
|
+
disposableStore.add(autorunWithStore((reader, store) => {
|
|
113
|
+
const host = this._host.read(reader);
|
|
114
|
+
if (!host) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
store.add(host.onDidAccept(() => {
|
|
118
|
+
inlineEditHasBeenAccepted = true;
|
|
119
|
+
}));
|
|
120
|
+
}));
|
|
121
|
+
return disposableStore;
|
|
122
|
+
}
|
|
123
|
+
getNewUserType() {
|
|
124
|
+
return this._storageService.get('inlineEditsGutterIndicatorUserKind', StorageScope.APPLICATION, UserKind.FirstTime);
|
|
125
|
+
}
|
|
126
|
+
setNewUserType(value) {
|
|
127
|
+
switch (value) {
|
|
128
|
+
case UserKind.FirstTime:
|
|
129
|
+
throw ( new BugIndicatingError('UserKind should not be set to first time'));
|
|
130
|
+
case UserKind.SecondTime:
|
|
131
|
+
break;
|
|
132
|
+
case UserKind.Active:
|
|
133
|
+
this._disposables.clear();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
this._storageService.store('inlineEditsGutterIndicatorUserKind', value, StorageScope.APPLICATION, StorageTarget.USER);
|
|
137
|
+
}
|
|
138
|
+
_initializeDebugSetting() {
|
|
139
|
+
const hiddenDebugSetting = 'editor.inlineSuggest.edits.resetNewUserExperience';
|
|
140
|
+
if (this._configurationService.getValue(hiddenDebugSetting)) {
|
|
141
|
+
this._storageService.remove('inlineEditsGutterIndicatorUserKind', StorageScope.APPLICATION);
|
|
142
|
+
}
|
|
143
|
+
const disposable = this._configurationService.onDidChangeConfiguration(e => {
|
|
144
|
+
if (e.affectsConfiguration(hiddenDebugSetting) && this._configurationService.getValue(hiddenDebugSetting)) {
|
|
145
|
+
this._storageService.remove('inlineEditsGutterIndicatorUserKind', StorageScope.APPLICATION);
|
|
146
|
+
this._disposables.value = this.setupNewUserExperience();
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
return disposable;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
InlineEditsOnboardingExperience = ( __decorate([
|
|
153
|
+
( __param(4, IStorageService)),
|
|
154
|
+
( __param(5, IConfigurationService))
|
|
155
|
+
], InlineEditsOnboardingExperience));
|
|
156
|
+
|
|
157
|
+
export { InlineEditsOnboardingExperience };
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ICodeEditor } from "../../../../../browser/editorBrowser.js";
|
|
|
5
5
|
import { InlineEditsGutterIndicator } from "./components/gutterIndicatorView.js";
|
|
6
6
|
import { GhostTextIndicator, InlineEditHost, InlineEditModel } from "./inlineEditsModel.js";
|
|
7
7
|
import { InlineEditsCollapsedView } from "./inlineEditsViews/inlineEditsCollapsedView.js";
|
|
8
|
+
import { InlineEditsCustomView } from "./inlineEditsViews/inlineEditsCustomView.js";
|
|
8
9
|
import { InlineEditsDeletionView } from "./inlineEditsViews/inlineEditsDeletionView.js";
|
|
9
10
|
import { InlineEditsInsertionView } from "./inlineEditsViews/inlineEditsInsertionView.js";
|
|
10
11
|
import { InlineEditsLineReplacementView } from "./inlineEditsViews/inlineEditsLineReplacementView.js";
|
|
@@ -36,6 +37,7 @@ export declare class InlineEditsView extends Disposable {
|
|
|
36
37
|
protected readonly _insertion: InlineEditsInsertionView;
|
|
37
38
|
private readonly _inlineDiffViewState;
|
|
38
39
|
protected readonly _inlineCollapsedView: InlineEditsCollapsedView;
|
|
40
|
+
protected readonly _customView: InlineEditsCustomView;
|
|
39
41
|
protected readonly _inlineDiffView: OriginalEditorInlineDiffView;
|
|
40
42
|
protected readonly _wordReplacementViews: IObservable<readonly InlineEditsWordReplacementView[]>;
|
|
41
43
|
protected readonly _lineReplacementView: InlineEditsLineReplacementView;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
CHANGED
|
@@ -16,8 +16,10 @@ import { TextLength } from '../../../../../common/core/textLength.js';
|
|
|
16
16
|
import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../common/diff/rangeMapping.js';
|
|
17
17
|
import { TextModel } from '../../../../../common/model/textModel.js';
|
|
18
18
|
import { InlineEditsGutterIndicator } from './components/gutterIndicatorView.js';
|
|
19
|
+
import { InlineEditsOnboardingExperience } from './inlineEditsNewUsers.js';
|
|
19
20
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
20
21
|
import { InlineEditsCollapsedView } from './inlineEditsViews/inlineEditsCollapsedView.js';
|
|
22
|
+
import { InlineEditsCustomView } from './inlineEditsViews/inlineEditsCustomView.js';
|
|
21
23
|
import { InlineEditsDeletionView } from './inlineEditsViews/inlineEditsDeletionView.js';
|
|
22
24
|
import { InlineEditsInsertionView } from './inlineEditsViews/inlineEditsInsertionView.js';
|
|
23
25
|
import { InlineEditsLineReplacementView } from './inlineEditsViews/inlineEditsLineReplacementView.js';
|
|
@@ -26,9 +28,9 @@ import { InlineEditsWordReplacementView } from './inlineEditsViews/inlineEditsWo
|
|
|
26
28
|
import { OriginalEditorInlineDiffView } from './inlineEditsViews/originalEditorInlineDiffView.js';
|
|
27
29
|
import { createReindentEdit, applyEditToModifiedRangeMappings } from './utils/utils.js';
|
|
28
30
|
import * as view from './view.css';
|
|
29
|
-
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils.js';
|
|
30
31
|
import { derived, derivedWithStore, derivedOpts } from '../../../../../../base/common/observableInternal/derived.js';
|
|
31
32
|
import { observableValue } from '../../../../../../base/common/observableInternal/base.js';
|
|
33
|
+
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils.js';
|
|
32
34
|
import { autorunWithStore } from '../../../../../../base/common/observableInternal/autorun.js';
|
|
33
35
|
|
|
34
36
|
registerCss(view);
|
|
@@ -54,8 +56,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
54
56
|
let mappings = RangeMapping.fromEdit(inlineEdit.edit);
|
|
55
57
|
let newText = inlineEdit.edit.apply(inlineEdit.originalText);
|
|
56
58
|
let diff = lineRangeMappingFromRangeMappings(mappings, inlineEdit.originalText, ( new StringText(newText)));
|
|
57
|
-
|
|
58
|
-
let state = this.determineRenderState(model, reader, diff, ( new StringText(newText)), originalDisplayRange);
|
|
59
|
+
let state = this.determineRenderState(model, reader, diff, ( new StringText(newText)));
|
|
59
60
|
if (!state) {
|
|
60
61
|
model.abort(`unable to determine view: tried to render ${this._previousView?.view}`);
|
|
61
62
|
return undefined;
|
|
@@ -80,7 +81,6 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
80
81
|
edit: inlineEdit,
|
|
81
82
|
newText,
|
|
82
83
|
newTextLineCount: inlineEdit.modifiedLineRange.length,
|
|
83
|
-
originalDisplayRange: originalDisplayRange,
|
|
84
84
|
};
|
|
85
85
|
});
|
|
86
86
|
this._previewTextModel = this._register(this._instantiationService.createInstance(TextModel, '', this._editor.getModel().getLanguageId(), { ...TextModel.DEFAULT_CREATION_OPTIONS, bracketPairColorizationOptions: { enabled: true, independentColorPoolPerBracketType: false } }, null));
|
|
@@ -95,10 +95,20 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
95
95
|
return ghostTextIndicator.lineRange;
|
|
96
96
|
}
|
|
97
97
|
const state = this._uiState.read(reader);
|
|
98
|
-
if (state
|
|
98
|
+
if (!state) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (state.state?.kind === 'custom') {
|
|
102
|
+
const range = state.state.displayLocation?.range;
|
|
103
|
+
if (!range) {
|
|
104
|
+
throw ( new BugIndicatingError('custom view should have a range'));
|
|
105
|
+
}
|
|
106
|
+
return ( new LineRange(range.startLineNumber, range.endLineNumber));
|
|
107
|
+
}
|
|
108
|
+
if (state.state?.kind === 'insertionMultiLine') {
|
|
99
109
|
return this._insertion.originalLines.read(reader);
|
|
100
110
|
}
|
|
101
|
-
return state
|
|
111
|
+
return state.edit.displayRange;
|
|
102
112
|
});
|
|
103
113
|
const modelWithGhostTextSupport = derived(this, reader => {
|
|
104
114
|
const model = this._model.read(reader);
|
|
@@ -111,7 +121,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
111
121
|
}
|
|
112
122
|
return model;
|
|
113
123
|
});
|
|
114
|
-
return store.add(this._instantiationService.createInstance(InlineEditsGutterIndicator, this._editorObs, indicatorDisplayRange, this._gutterIndicatorOffset,
|
|
124
|
+
return store.add(this._instantiationService.createInstance(InlineEditsGutterIndicator, this._editorObs, indicatorDisplayRange, this._gutterIndicatorOffset, modelWithGhostTextSupport, this._inlineEditsIsHovered, this._focusIsInMenu));
|
|
115
125
|
});
|
|
116
126
|
this._inlineEditsIsHovered = derived(this, reader => {
|
|
117
127
|
return this._sideBySide.isHovered.read(reader)
|
|
@@ -119,7 +129,8 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
119
129
|
|| this._deletion.isHovered.read(reader)
|
|
120
130
|
|| this._inlineDiffView.isHovered.read(reader)
|
|
121
131
|
|| this._lineReplacementView.isHovered.read(reader)
|
|
122
|
-
|| this._insertion.isHovered.read(reader)
|
|
132
|
+
|| this._insertion.isHovered.read(reader)
|
|
133
|
+
|| this._customView.isHovered.read(reader);
|
|
123
134
|
});
|
|
124
135
|
this._gutterIndicatorOffset = derived(this, reader => {
|
|
125
136
|
if (this._uiState.read(reader)?.state?.kind === 'insertionMultiLine') {
|
|
@@ -129,7 +140,6 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
129
140
|
});
|
|
130
141
|
this._sideBySide = this._register(this._instantiationService.createInstance(InlineEditsSideBySideView, this._editor, ( this._model.map(m => m?.inlineEdit)), this._previewTextModel, ( this._uiState.map(s => s && s.state?.kind === 'sideBySide' ? ({
|
|
131
142
|
newTextLineCount: s.newTextLineCount,
|
|
132
|
-
originalDisplayRange: s.originalDisplayRange,
|
|
133
143
|
}) : undefined)), this._tabAction));
|
|
134
144
|
this._deletion = this._register(this._instantiationService.createInstance(InlineEditsDeletionView, this._editor, ( this._model.map(m => m?.inlineEdit)), ( this._uiState.map(s => s && s.state?.kind === 'deletion' ? ({
|
|
135
145
|
originalRange: s.state.originalRange,
|
|
@@ -145,7 +155,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
145
155
|
if (!e || !e.state) {
|
|
146
156
|
return undefined;
|
|
147
157
|
}
|
|
148
|
-
if (e.state.kind === 'wordReplacements' || e.state.kind === 'lineReplacement' || e.state.kind === 'insertionMultiLine' || e.state.kind === 'collapsed') {
|
|
158
|
+
if (e.state.kind === 'wordReplacements' || e.state.kind === 'lineReplacement' || e.state.kind === 'insertionMultiLine' || e.state.kind === 'collapsed' || e.state.kind === 'custom') {
|
|
149
159
|
return undefined;
|
|
150
160
|
}
|
|
151
161
|
return {
|
|
@@ -158,6 +168,9 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
158
168
|
this._inlineCollapsedView = this._register(this._instantiationService.createInstance(InlineEditsCollapsedView, this._editor, ( this._model.map(
|
|
159
169
|
(m, reader) => this._uiState.read(reader)?.state?.kind === 'collapsed' ? m?.inlineEdit : undefined
|
|
160
170
|
))));
|
|
171
|
+
this._customView = this._register(this._instantiationService.createInstance(InlineEditsCustomView, this._editor, ( this._model.map(
|
|
172
|
+
(m, reader) => this._uiState.read(reader)?.state?.kind === 'custom' ? m?.displayLocation : undefined
|
|
173
|
+
)), this._tabAction));
|
|
161
174
|
this._inlineDiffView = this._register(( new OriginalEditorInlineDiffView(this._editor, this._inlineDiffViewState, this._previewTextModel)));
|
|
162
175
|
this._wordReplacementViews = mapObservableArrayCached(this, ( this._uiState.map(s => s?.state?.kind === 'wordReplacements' ? s.state.replacements : [])), (e, store) => {
|
|
163
176
|
return store.add(this._instantiationService.createInstance(InlineEditsWordReplacementView, this._editorObs, e, this._tabAction));
|
|
@@ -176,7 +189,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
176
189
|
if (!model) {
|
|
177
190
|
return;
|
|
178
191
|
}
|
|
179
|
-
store.add(Event.any(this._sideBySide.onDidClick, this._deletion.onDidClick, this._lineReplacementView.onDidClick, this._insertion.onDidClick, ...( this._wordReplacementViews.read(reader).map(w => w.onDidClick)), this._inlineDiffView.onDidClick)(e => {
|
|
192
|
+
store.add(Event.any(this._sideBySide.onDidClick, this._deletion.onDidClick, this._lineReplacementView.onDidClick, this._insertion.onDidClick, ...( this._wordReplacementViews.read(reader).map(w => w.onDidClick)), this._inlineDiffView.onDidClick, this._customView.onDidClick)(e => {
|
|
180
193
|
if (this._viewHasBeenShownLongerThan(350)) {
|
|
181
194
|
e.preventDefault();
|
|
182
195
|
model.accept();
|
|
@@ -186,16 +199,13 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
186
199
|
this._indicator.recomputeInitiallyAndOnChange(this._store);
|
|
187
200
|
this._wordReplacementViews.recomputeInitiallyAndOnChange(this._store);
|
|
188
201
|
this._indicatorCyclicDependencyCircuitBreaker.set(true, undefined);
|
|
202
|
+
this._register(this._instantiationService.createInstance(InlineEditsOnboardingExperience, this._host, this._model, this._indicator, this._inlineCollapsedView));
|
|
189
203
|
this._constructorDone.set(true, undefined);
|
|
190
204
|
}
|
|
191
205
|
getCacheId(model) {
|
|
192
|
-
|
|
193
|
-
if (this._host.get()?.inPartialAcceptFlow.get()) {
|
|
194
|
-
return `${inlineEdit.inlineCompletion.id}_${( inlineEdit.edit.edits.map(innerEdit => ( innerEdit.range.toString()) + innerEdit.text)).join(',')}`;
|
|
195
|
-
}
|
|
196
|
-
return inlineEdit.inlineCompletion.id;
|
|
206
|
+
return model.inlineEdit.inlineCompletion.identity.id;
|
|
197
207
|
}
|
|
198
|
-
determineView(model, reader, diff, newText
|
|
208
|
+
determineView(model, reader, diff, newText) {
|
|
199
209
|
const inlineEdit = model.inlineEdit;
|
|
200
210
|
const canUseCache = this._previousView?.id === this.getCacheId(model);
|
|
201
211
|
const reconsiderViewEditorWidthChange = this._previousView?.editorWidth !== this._editorObs.layoutInfoWidth.read(reader) &&
|
|
@@ -204,6 +214,9 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
204
214
|
if (canUseCache && !reconsiderViewEditorWidthChange) {
|
|
205
215
|
return this._previousView.view;
|
|
206
216
|
}
|
|
217
|
+
if (model.displayLocation) {
|
|
218
|
+
return 'custom';
|
|
219
|
+
}
|
|
207
220
|
const inner = diff.flatMap(d => d.innerChanges ?? []);
|
|
208
221
|
const isSingleInnerEdit = inner.length === 1;
|
|
209
222
|
if (isSingleInnerEdit
|
|
@@ -232,18 +245,22 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
232
245
|
}
|
|
233
246
|
}
|
|
234
247
|
if (numOriginalLines > 0 && numModifiedLines > 0) {
|
|
235
|
-
if (
|
|
248
|
+
if (numOriginalLines === 1 && numModifiedLines === 1) {
|
|
249
|
+
return 'lineReplacement';
|
|
250
|
+
}
|
|
251
|
+
if (this._renderSideBySide.read(reader) !== 'never' && InlineEditsSideBySideView.fitsInsideViewport(this._editor, this._previewTextModel, inlineEdit, reader)) {
|
|
236
252
|
return 'sideBySide';
|
|
237
253
|
}
|
|
238
254
|
return 'lineReplacement';
|
|
239
255
|
}
|
|
240
256
|
return 'sideBySide';
|
|
241
257
|
}
|
|
242
|
-
determineRenderState(model, reader, diff, newText
|
|
258
|
+
determineRenderState(model, reader, diff, newText) {
|
|
243
259
|
const inlineEdit = model.inlineEdit;
|
|
244
|
-
const view = this.determineView(model, reader, diff, newText
|
|
260
|
+
const view = this.determineView(model, reader, diff, newText);
|
|
245
261
|
this._previousView = { id: this.getCacheId(model), view, editorWidth: this._editor.getLayoutInfo().width, timestamp: Date.now() };
|
|
246
262
|
switch (view) {
|
|
263
|
+
case 'custom': return { kind: 'custom', displayLocation: model.displayLocation };
|
|
247
264
|
case 'insertionInline': return { kind: 'insertionInline' };
|
|
248
265
|
case 'sideBySide': return { kind: 'sideBySide' };
|
|
249
266
|
case 'collapsed': return { kind: 'collapsed' };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMouseEvent } from "../../../../../../base/browser/mouseEvent.js";
|
|
2
2
|
import { Event } from "../../../../../../base/common/event.js";
|
|
3
3
|
import { IObservable } from "../../../../../../base/common/observable.js";
|
|
4
|
-
import { Command } from "../../../../../common/languages.js";
|
|
4
|
+
import { Command, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
5
5
|
import { InlineEditWithChanges } from "./inlineEditWithChanges.js";
|
|
6
6
|
export declare enum InlineEditTabAction {
|
|
7
7
|
Jump = "jump",
|
|
@@ -13,8 +13,8 @@ export interface IInlineEditsView {
|
|
|
13
13
|
onDidClick: Event<IMouseEvent>;
|
|
14
14
|
}
|
|
15
15
|
export interface IInlineEditHost {
|
|
16
|
+
readonly onDidAccept: Event<void>;
|
|
16
17
|
inAcceptFlow: IObservable<boolean>;
|
|
17
|
-
inPartialAcceptFlow: IObservable<boolean>;
|
|
18
18
|
}
|
|
19
19
|
export interface IInlineEditModel {
|
|
20
20
|
displayName: string;
|
|
@@ -23,6 +23,7 @@ export interface IInlineEditModel {
|
|
|
23
23
|
inlineEdit: InlineEditWithChanges;
|
|
24
24
|
tabAction: IObservable<InlineEditTabAction>;
|
|
25
25
|
showCollapsed: IObservable<boolean>;
|
|
26
|
+
displayLocation: InlineCompletionDisplayLocation | undefined;
|
|
26
27
|
handleInlineEditShown(): void;
|
|
27
28
|
accept(): void;
|
|
28
29
|
jump(): void;
|
|
@@ -38,12 +38,11 @@ let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extend
|
|
|
38
38
|
if (!textModel) {
|
|
39
39
|
return undefined;
|
|
40
40
|
}
|
|
41
|
-
const editOffset = model.inlineEditState.get()?.inlineCompletion.updatedEdit
|
|
41
|
+
const editOffset = model.inlineEditState.get()?.inlineCompletion.updatedEdit;
|
|
42
42
|
if (!editOffset) {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
const edits = ( offsetEdits.map(e => {
|
|
45
|
+
const edits = ( editOffset.edits.map(e => {
|
|
47
46
|
const innerEditRange = Range.fromPositions(textModel.getPositionAt(e.replaceRange.start), textModel.getPositionAt(e.replaceRange.endExclusive));
|
|
48
47
|
return ( new SingleTextEdit(innerEditRange, e.newText));
|
|
49
48
|
}));
|
|
@@ -99,7 +98,7 @@ let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extend
|
|
|
99
98
|
if (!inlineCompletion) {
|
|
100
99
|
return undefined;
|
|
101
100
|
}
|
|
102
|
-
if (!inlineCompletion.
|
|
101
|
+
if (!inlineCompletion.showInlineEditMenu) {
|
|
103
102
|
return undefined;
|
|
104
103
|
}
|
|
105
104
|
const lineRange = LineRange.ofLength(state.primaryGhostText.lineNumber, 1);
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { IMouseEvent } from "../../../../../../../base/browser/mouseEvent.js";
|
|
2
2
|
import { Disposable } from "../../../../../../../base/common/lifecycle.js";
|
|
3
3
|
import { IObservable } from "../../../../../../../base/common/observable.js";
|
|
4
|
+
import { IAccessibilityService } from "../../../../../../../platform/accessibility/common/accessibility.service.js";
|
|
4
5
|
import { ICodeEditor } from "../../../../../../browser/editorBrowser.js";
|
|
5
6
|
import { IInlineEditsView } from "../inlineEditsViewInterface.js";
|
|
6
7
|
import { InlineEditWithChanges } from "../inlineEditWithChanges.js";
|
|
7
8
|
export declare class InlineEditsCollapsedView extends Disposable implements IInlineEditsView {
|
|
8
9
|
private readonly _editor;
|
|
9
10
|
private readonly _edit;
|
|
11
|
+
private readonly _accessibilityService;
|
|
10
12
|
private readonly _onDidClick;
|
|
11
13
|
readonly onDidClick: import("../../../../../../../base/common/event.js").Event<IMouseEvent>;
|
|
12
14
|
private readonly _editorObs;
|
|
13
|
-
|
|
15
|
+
private readonly _iconRef;
|
|
16
|
+
readonly isVisible: IObservable<boolean>;
|
|
17
|
+
constructor(_editor: ICodeEditor, _edit: IObservable<InlineEditWithChanges | undefined>, _accessibilityService: IAccessibilityService);
|
|
18
|
+
triggerAnimation(): Promise<Animation>;
|
|
14
19
|
private getCollapsedIndicator;
|
|
15
20
|
private createIconPath;
|
|
16
21
|
readonly isHovered: IObservable<boolean>;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
3
|
import '../../../../../../../base/browser/dom.js';
|
|
3
4
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
4
5
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
5
6
|
import '../../../../../../../base/common/observableInternal/index.js';
|
|
7
|
+
import { IAccessibilityService } from '../../../../../../../platform/accessibility/common/accessibility.service.js';
|
|
6
8
|
import { asCssVariable } from '../../../../../../../platform/theme/common/colorUtils.js';
|
|
7
9
|
import { observableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';
|
|
8
10
|
import { Point } from '../../../../../../browser/point.js';
|
|
9
11
|
import { singleTextRemoveCommonPrefix } from '../../../model/singleTextEditHelpers.js';
|
|
10
12
|
import { inlineEditIndicatorPrimaryBorder } from '../theme.js';
|
|
11
13
|
import { PathBuilder } from '../utils/utils.js';
|
|
12
|
-
import { constObservable } from '../../../../../../../base/common/observableInternal/utils.js';
|
|
13
14
|
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
15
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/utils.js';
|
|
14
16
|
import { derived } from '../../../../../../../base/common/observableInternal/derived.js';
|
|
15
17
|
|
|
16
|
-
class InlineEditsCollapsedView extends Disposable {
|
|
17
|
-
constructor(_editor, _edit) {
|
|
18
|
+
let InlineEditsCollapsedView = class InlineEditsCollapsedView extends Disposable {
|
|
19
|
+
constructor(_editor, _edit, _accessibilityService) {
|
|
18
20
|
super();
|
|
19
21
|
this._editor = _editor;
|
|
20
22
|
this._edit = _edit;
|
|
23
|
+
this._accessibilityService = _accessibilityService;
|
|
21
24
|
this._onDidClick = this._register(( new Emitter()));
|
|
22
25
|
this.onDidClick = this._onDidClick.event;
|
|
26
|
+
this._iconRef = n.ref();
|
|
23
27
|
this.isHovered = constObservable(false);
|
|
24
28
|
this._editorObs = observableCodeEditor(this._editor);
|
|
25
29
|
const firstEdit = ( this._edit.map(inlineEdit => inlineEdit?.edit.edits[0] ?? null));
|
|
@@ -43,7 +47,6 @@ class InlineEditsCollapsedView extends Disposable {
|
|
|
43
47
|
overflow: 'visible',
|
|
44
48
|
top: '0px',
|
|
45
49
|
left: '0px',
|
|
46
|
-
zIndex: '0',
|
|
47
50
|
display: 'block',
|
|
48
51
|
},
|
|
49
52
|
}, [
|
|
@@ -55,6 +58,22 @@ class InlineEditsCollapsedView extends Disposable {
|
|
|
55
58
|
allowEditorOverflow: false,
|
|
56
59
|
minContentWidthInPx: constObservable(0),
|
|
57
60
|
}));
|
|
61
|
+
this.isVisible = ( this._edit.map((inlineEdit, reader) => !!inlineEdit && startPoint.read(reader) !== null));
|
|
62
|
+
}
|
|
63
|
+
triggerAnimation() {
|
|
64
|
+
if (this._accessibilityService.isMotionReduced()) {
|
|
65
|
+
return ( new Animation(null, null)).finished;
|
|
66
|
+
}
|
|
67
|
+
const animation = this._iconRef.element.animate([
|
|
68
|
+
{ offset: 0.00, transform: 'translateY(-3px)', },
|
|
69
|
+
{ offset: 0.20, transform: 'translateY(1px)', },
|
|
70
|
+
{ offset: 0.36, transform: 'translateY(-1px)', },
|
|
71
|
+
{ offset: 0.52, transform: 'translateY(1px)', },
|
|
72
|
+
{ offset: 0.68, transform: 'translateY(-1px)', },
|
|
73
|
+
{ offset: 0.84, transform: 'translateY(1px)', },
|
|
74
|
+
{ offset: 1.00, transform: 'translateY(0px)', },
|
|
75
|
+
], { duration: 2000 });
|
|
76
|
+
return animation.finished;
|
|
58
77
|
}
|
|
59
78
|
getCollapsedIndicator(startPoint) {
|
|
60
79
|
const contentLeft = this._editorObs.layoutInfoContentLeft;
|
|
@@ -62,6 +81,7 @@ class InlineEditsCollapsedView extends Disposable {
|
|
|
62
81
|
const iconPath = this.createIconPath(startPointTranslated);
|
|
63
82
|
return n.svg({
|
|
64
83
|
class: 'collapsedView',
|
|
84
|
+
ref: this._iconRef,
|
|
65
85
|
style: {
|
|
66
86
|
position: 'absolute',
|
|
67
87
|
top: 0,
|
|
@@ -102,6 +122,9 @@ class InlineEditsCollapsedView extends Disposable {
|
|
|
102
122
|
.build();
|
|
103
123
|
}));
|
|
104
124
|
}
|
|
105
|
-
}
|
|
125
|
+
};
|
|
126
|
+
InlineEditsCollapsedView = ( __decorate([
|
|
127
|
+
( __param(2, IAccessibilityService))
|
|
128
|
+
], InlineEditsCollapsedView));
|
|
106
129
|
|
|
107
130
|
export { InlineEditsCollapsedView };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IMouseEvent } from "../../../../../../../base/browser/mouseEvent.js";
|
|
2
|
+
import { Disposable } from "../../../../../../../base/common/lifecycle.js";
|
|
3
|
+
import { IObservable } from "../../../../../../../base/common/observable.js";
|
|
4
|
+
import { IThemeService } from "../../../../../../../platform/theme/common/themeService.service.js";
|
|
5
|
+
import { ICodeEditor } from "../../../../../../browser/editorBrowser.js";
|
|
6
|
+
import { InlineCompletionDisplayLocation } from "../../../../../../common/languages.js";
|
|
7
|
+
import { ILanguageService } from "../../../../../../common/languages/language.service.js";
|
|
8
|
+
import { IInlineEditsView, InlineEditTabAction } from "../inlineEditsViewInterface.js";
|
|
9
|
+
export declare class InlineEditsCustomView extends Disposable implements IInlineEditsView {
|
|
10
|
+
private readonly _editor;
|
|
11
|
+
private readonly _languageService;
|
|
12
|
+
private readonly _onDidClick;
|
|
13
|
+
readonly onDidClick: import("../../../../../../../base/common/event.js").Event<IMouseEvent>;
|
|
14
|
+
private readonly _isHovered;
|
|
15
|
+
readonly isHovered: IObservable<boolean>;
|
|
16
|
+
private readonly _viewRef;
|
|
17
|
+
private readonly _editorObs;
|
|
18
|
+
constructor(_editor: ICodeEditor, displayLocation: IObservable<InlineCompletionDisplayLocation | undefined>, tabAction: IObservable<InlineEditTabAction>, themeService: IThemeService, _languageService: ILanguageService);
|
|
19
|
+
private getState;
|
|
20
|
+
private getRendering;
|
|
21
|
+
}
|