@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
|
@@ -74,6 +74,7 @@ export interface IEnvironmentalOptions {
|
|
|
74
74
|
readonly inputMode: "insert" | "overtype";
|
|
75
75
|
readonly accessibilitySupport: AccessibilitySupport;
|
|
76
76
|
readonly glyphMarginDecorationLaneCount: number;
|
|
77
|
+
readonly editContextSupported: boolean;
|
|
77
78
|
}
|
|
78
79
|
export declare class ComputeOptionsMemory {
|
|
79
80
|
stableMinimapLayoutInput: IMinimapLayoutInput | null;
|
|
@@ -721,20 +722,20 @@ export declare enum EditorOption {
|
|
|
721
722
|
}
|
|
722
723
|
export declare const EditorOptions: {
|
|
723
724
|
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
|
|
724
|
-
acceptSuggestionOnEnter: IEditorOption<EditorOption.acceptSuggestionOnEnter, "
|
|
725
|
+
acceptSuggestionOnEnter: IEditorOption<EditorOption.acceptSuggestionOnEnter, "on" | "off" | "smart">;
|
|
725
726
|
accessibilitySupport: IEditorOption<EditorOption.accessibilitySupport, AccessibilitySupport>;
|
|
726
727
|
accessibilityPageSize: IEditorOption<EditorOption.accessibilityPageSize, number>;
|
|
727
728
|
ariaLabel: IEditorOption<EditorOption.ariaLabel, string>;
|
|
728
729
|
ariaRequired: IEditorOption<EditorOption.ariaRequired, boolean>;
|
|
729
730
|
screenReaderAnnounceInlineSuggestion: IEditorOption<EditorOption.screenReaderAnnounceInlineSuggestion, boolean>;
|
|
730
|
-
autoClosingBrackets: IEditorOption<EditorOption.autoClosingBrackets, "always" | "
|
|
731
|
-
autoClosingComments: IEditorOption<EditorOption.autoClosingComments, "always" | "
|
|
731
|
+
autoClosingBrackets: IEditorOption<EditorOption.autoClosingBrackets, "always" | "languageDefined" | "beforeWhitespace" | "never">;
|
|
732
|
+
autoClosingComments: IEditorOption<EditorOption.autoClosingComments, "always" | "languageDefined" | "beforeWhitespace" | "never">;
|
|
732
733
|
autoClosingDelete: IEditorOption<EditorOption.autoClosingDelete, "auto" | "always" | "never">;
|
|
733
734
|
autoClosingOvertype: IEditorOption<EditorOption.autoClosingOvertype, "auto" | "always" | "never">;
|
|
734
|
-
autoClosingQuotes: IEditorOption<EditorOption.autoClosingQuotes, "always" | "
|
|
735
|
+
autoClosingQuotes: IEditorOption<EditorOption.autoClosingQuotes, "always" | "languageDefined" | "beforeWhitespace" | "never">;
|
|
735
736
|
autoIndent: IEditorOption<EditorOption.autoIndent, EditorAutoIndentStrategy>;
|
|
736
737
|
automaticLayout: IEditorOption<EditorOption.automaticLayout, boolean>;
|
|
737
|
-
autoSurround: IEditorOption<EditorOption.autoSurround, "quotes" | "
|
|
738
|
+
autoSurround: IEditorOption<EditorOption.autoSurround, "quotes" | "languageDefined" | "never" | "brackets">;
|
|
738
739
|
bracketPairColorization: IEditorOption<EditorOption.bracketPairColorization, Readonly<Required<IBracketPairColorizationOptions>>>;
|
|
739
740
|
bracketPairGuides: IEditorOption<EditorOption.guides, Readonly<Required<IGuidesOptions>>>;
|
|
740
741
|
stickyTabStops: IEditorOption<EditorOption.stickyTabStops, boolean>;
|
|
@@ -742,14 +743,14 @@ export declare const EditorOptions: {
|
|
|
742
743
|
codeLensFontFamily: IEditorOption<EditorOption.codeLensFontFamily, string>;
|
|
743
744
|
codeLensFontSize: IEditorOption<EditorOption.codeLensFontSize, number>;
|
|
744
745
|
colorDecorators: IEditorOption<EditorOption.colorDecorators, boolean>;
|
|
745
|
-
colorDecoratorActivatedOn: IEditorOption<EditorOption.colorDecoratorsActivatedOn, "click" | "
|
|
746
|
+
colorDecoratorActivatedOn: IEditorOption<EditorOption.colorDecoratorsActivatedOn, "click" | "hover" | "clickAndHover">;
|
|
746
747
|
colorDecoratorsLimit: IEditorOption<EditorOption.colorDecoratorsLimit, number>;
|
|
747
748
|
columnSelection: IEditorOption<EditorOption.columnSelection, boolean>;
|
|
748
749
|
comments: IEditorOption<EditorOption.comments, Readonly<Required<IEditorCommentsOptions>>>;
|
|
749
750
|
contextmenu: IEditorOption<EditorOption.contextmenu, boolean>;
|
|
750
751
|
copyWithSyntaxHighlighting: IEditorOption<EditorOption.copyWithSyntaxHighlighting, boolean>;
|
|
751
752
|
cursorBlinking: IEditorOption<EditorOption.cursorBlinking, TextEditorCursorBlinkingStyle>;
|
|
752
|
-
cursorSmoothCaretAnimation: IEditorOption<EditorOption.cursorSmoothCaretAnimation, "
|
|
753
|
+
cursorSmoothCaretAnimation: IEditorOption<EditorOption.cursorSmoothCaretAnimation, "on" | "off" | "explicit">;
|
|
753
754
|
cursorStyle: IEditorOption<EditorOption.cursorStyle, TextEditorCursorStyle>;
|
|
754
755
|
overtypeCursorStyle: IEditorOption<EditorOption.overtypeCursorStyle, TextEditorCursorStyle>;
|
|
755
756
|
cursorSurroundingLines: IEditorOption<EditorOption.cursorSurroundingLines, number>;
|
|
@@ -763,8 +764,8 @@ export declare const EditorOptions: {
|
|
|
763
764
|
dropIntoEditor: IEditorOption<EditorOption.dropIntoEditor, Readonly<Required<IDropIntoEditorOptions>>>;
|
|
764
765
|
experimentalEditContextEnabled: IEditorOption<EditorOption.experimentalEditContextEnabled, boolean>;
|
|
765
766
|
stickyScroll: IEditorOption<EditorOption.stickyScroll, Readonly<Required<IEditorStickyScrollOptions>>>;
|
|
766
|
-
experimentalGpuAcceleration: IEditorOption<EditorOption.experimentalGpuAcceleration, "
|
|
767
|
-
experimentalWhitespaceRendering: IEditorOption<EditorOption.experimentalWhitespaceRendering, "
|
|
767
|
+
experimentalGpuAcceleration: IEditorOption<EditorOption.experimentalGpuAcceleration, "on" | "off">;
|
|
768
|
+
experimentalWhitespaceRendering: IEditorOption<EditorOption.experimentalWhitespaceRendering, "svg" | "font" | "off">;
|
|
768
769
|
extraEditorClassName: IEditorOption<EditorOption.extraEditorClassName, string>;
|
|
769
770
|
fastScrollSensitivity: IEditorOption<EditorOption.fastScrollSensitivity, number>;
|
|
770
771
|
find: IEditorOption<EditorOption.find, Readonly<Required<IEditorFindOptions>>>;
|
|
@@ -798,12 +799,12 @@ export declare const EditorOptions: {
|
|
|
798
799
|
links: IEditorOption<EditorOption.links, boolean>;
|
|
799
800
|
matchBrackets: IEditorOption<EditorOption.matchBrackets, "always" | "never" | "near">;
|
|
800
801
|
minimap: IEditorOption<EditorOption.minimap, Readonly<Required<IEditorMinimapOptions>>>;
|
|
801
|
-
mouseStyle: IEditorOption<EditorOption.mouseStyle, "
|
|
802
|
+
mouseStyle: IEditorOption<EditorOption.mouseStyle, "text" | "copy" | "default">;
|
|
802
803
|
mouseWheelScrollSensitivity: IEditorOption<EditorOption.mouseWheelScrollSensitivity, number>;
|
|
803
804
|
mouseWheelZoom: IEditorOption<EditorOption.mouseWheelZoom, boolean>;
|
|
804
805
|
multiCursorMergeOverlapping: IEditorOption<EditorOption.multiCursorMergeOverlapping, boolean>;
|
|
805
|
-
multiCursorModifier: IEditorOption<EditorOption.multiCursorModifier, "
|
|
806
|
-
multiCursorPaste: IEditorOption<EditorOption.multiCursorPaste, "
|
|
806
|
+
multiCursorModifier: IEditorOption<EditorOption.multiCursorModifier, "ctrlKey" | "altKey" | "metaKey">;
|
|
807
|
+
multiCursorPaste: IEditorOption<EditorOption.multiCursorPaste, "spread" | "full">;
|
|
807
808
|
multiCursorLimit: IEditorOption<EditorOption.multiCursorLimit, number>;
|
|
808
809
|
occurrencesHighlight: IEditorOption<EditorOption.occurrencesHighlight, "off" | "singleFile" | "multiFile">;
|
|
809
810
|
occurrencesHighlightDelay: IEditorOption<EditorOption.occurrencesHighlightDelay, number>;
|
|
@@ -822,11 +823,11 @@ export declare const EditorOptions: {
|
|
|
822
823
|
readOnlyMessage: IEditorOption<EditorOption.readOnlyMessage, IMarkdownString | undefined>;
|
|
823
824
|
renameOnType: IEditorOption<EditorOption.renameOnType, boolean>;
|
|
824
825
|
renderControlCharacters: IEditorOption<EditorOption.renderControlCharacters, boolean>;
|
|
825
|
-
renderFinalNewline: IEditorOption<EditorOption.renderFinalNewline, "
|
|
826
|
-
renderLineHighlight: IEditorOption<EditorOption.renderLineHighlight, "
|
|
826
|
+
renderFinalNewline: IEditorOption<EditorOption.renderFinalNewline, "on" | "off" | "dimmed">;
|
|
827
|
+
renderLineHighlight: IEditorOption<EditorOption.renderLineHighlight, "line" | "all" | "none" | "gutter">;
|
|
827
828
|
renderLineHighlightOnlyWhenFocus: IEditorOption<EditorOption.renderLineHighlightOnlyWhenFocus, boolean>;
|
|
828
|
-
renderValidationDecorations: IEditorOption<EditorOption.renderValidationDecorations, "
|
|
829
|
-
renderWhitespace: IEditorOption<EditorOption.renderWhitespace, "all" | "none" | "
|
|
829
|
+
renderValidationDecorations: IEditorOption<EditorOption.renderValidationDecorations, "on" | "off" | "editable">;
|
|
830
|
+
renderWhitespace: IEditorOption<EditorOption.renderWhitespace, "all" | "none" | "selection" | "boundary" | "trailing">;
|
|
830
831
|
revealHorizontalRightPadding: IEditorOption<EditorOption.revealHorizontalRightPadding, number>;
|
|
831
832
|
roundedSelection: IEditorOption<EditorOption.roundedSelection, boolean>;
|
|
832
833
|
rulers: IEditorOption<EditorOption.rulers, IRulerOption[]>;
|
|
@@ -841,7 +842,7 @@ export declare const EditorOptions: {
|
|
|
841
842
|
showUnused: IEditorOption<EditorOption.showUnused, boolean>;
|
|
842
843
|
showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>;
|
|
843
844
|
inlayHints: IEditorOption<EditorOption.inlayHints, Readonly<Required<IEditorInlayHintsOptions>>>;
|
|
844
|
-
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "
|
|
845
|
+
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "top" | "bottom" | "none" | "inline">;
|
|
845
846
|
smartSelect: IEditorOption<EditorOption.smartSelect, Readonly<Required<ISmartSelectOptions>>>;
|
|
846
847
|
smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
|
|
847
848
|
stopRenderingLineAfter: IEditorOption<EditorOption.stopRenderingLineAfter, number>;
|
|
@@ -852,21 +853,21 @@ export declare const EditorOptions: {
|
|
|
852
853
|
suggestLineHeight: IEditorOption<EditorOption.suggestLineHeight, number>;
|
|
853
854
|
suggestOnTriggerCharacters: IEditorOption<EditorOption.suggestOnTriggerCharacters, boolean>;
|
|
854
855
|
suggestSelection: IEditorOption<EditorOption.suggestSelection, "first" | "recentlyUsed" | "recentlyUsedByPrefix">;
|
|
855
|
-
tabCompletion: IEditorOption<EditorOption.tabCompletion, "
|
|
856
|
+
tabCompletion: IEditorOption<EditorOption.tabCompletion, "on" | "off" | "onlySnippets">;
|
|
856
857
|
tabIndex: IEditorOption<EditorOption.tabIndex, number>;
|
|
857
858
|
unicodeHighlight: IEditorOption<EditorOption.unicodeHighlighting, Required<Readonly<IUnicodeHighlightOptions>>>;
|
|
858
|
-
unusualLineTerminators: IEditorOption<EditorOption.unusualLineTerminators, "
|
|
859
|
+
unusualLineTerminators: IEditorOption<EditorOption.unusualLineTerminators, "prompt" | "auto" | "off">;
|
|
859
860
|
useShadowDOM: IEditorOption<EditorOption.useShadowDOM, boolean>;
|
|
860
861
|
useTabStops: IEditorOption<EditorOption.useTabStops, boolean>;
|
|
861
862
|
wordBreak: IEditorOption<EditorOption.wordBreak, "normal" | "keepAll">;
|
|
862
863
|
wordSegmenterLocales: IEditorOption<EditorOption.wordSegmenterLocales, string[]>;
|
|
863
864
|
wordSeparators: IEditorOption<EditorOption.wordSeparators, string>;
|
|
864
|
-
wordWrap: IEditorOption<EditorOption.wordWrap, "
|
|
865
|
+
wordWrap: IEditorOption<EditorOption.wordWrap, "on" | "off" | "wordWrapColumn" | "bounded">;
|
|
865
866
|
wordWrapBreakAfterCharacters: IEditorOption<EditorOption.wordWrapBreakAfterCharacters, string>;
|
|
866
867
|
wordWrapBreakBeforeCharacters: IEditorOption<EditorOption.wordWrapBreakBeforeCharacters, string>;
|
|
867
868
|
wordWrapColumn: IEditorOption<EditorOption.wordWrapColumn, number>;
|
|
868
|
-
wordWrapOverride1: IEditorOption<EditorOption.wordWrapOverride1, "
|
|
869
|
-
wordWrapOverride2: IEditorOption<EditorOption.wordWrapOverride2, "
|
|
869
|
+
wordWrapOverride1: IEditorOption<EditorOption.wordWrapOverride1, "on" | "inherit" | "off">;
|
|
870
|
+
wordWrapOverride2: IEditorOption<EditorOption.wordWrapOverride2, "on" | "inherit" | "off">;
|
|
870
871
|
effectiveCursorStyle: IEditorOption<EditorOption.effectiveCursorStyle, TextEditorCursorStyle>;
|
|
871
872
|
editorClassName: IEditorOption<EditorOption.editorClassName, string>;
|
|
872
873
|
defaultColorDecorators: IEditorOption<EditorOption.defaultColorDecorators, "auto" | "always" | "never">;
|
|
@@ -875,7 +876,7 @@ export declare const EditorOptions: {
|
|
|
875
876
|
layoutInfo: IEditorOption<EditorOption.layoutInfo, EditorLayoutInfo>;
|
|
876
877
|
wrappingInfo: IEditorOption<EditorOption.wrappingInfo, EditorWrappingInfo>;
|
|
877
878
|
wrappingIndent: IEditorOption<EditorOption.wrappingIndent, WrappingIndent>;
|
|
878
|
-
wrappingStrategy: IEditorOption<EditorOption.wrappingStrategy, "
|
|
879
|
+
wrappingStrategy: IEditorOption<EditorOption.wrappingStrategy, "simple" | "advanced">;
|
|
879
880
|
effectiveExperimentalEditContextEnabled: IEditorOption<EditorOption.effectiveExperimentalEditContextEnabled, boolean>;
|
|
880
881
|
};
|
|
881
882
|
type EditorOptionsType = typeof EditorOptions;
|
|
@@ -8,7 +8,7 @@ import { EDITOR_MODEL_DEFAULTS } from '../core/textModelDefaults.js';
|
|
|
8
8
|
import { USUAL_WORD_SEPARATORS } from '../core/wordHelper.js';
|
|
9
9
|
import { localize } from '../../../nls.js';
|
|
10
10
|
import { AccessibilitySupport } from '../../../platform/accessibility/common/accessibility.js';
|
|
11
|
-
import product
|
|
11
|
+
import product from '../../../platform/product/common/product.js';
|
|
12
12
|
|
|
13
13
|
var EditorAutoIndentStrategy;
|
|
14
14
|
(function (EditorAutoIndentStrategy) {
|
|
@@ -667,8 +667,7 @@ class EffectiveExperimentalEditContextEnabled extends ComputedEditorOption {
|
|
|
667
667
|
super(EditorOption.effectiveExperimentalEditContextEnabled);
|
|
668
668
|
}
|
|
669
669
|
compute(env, options) {
|
|
670
|
-
|
|
671
|
-
return editContextSupported && options.get(EditorOption.experimentalEditContextEnabled);
|
|
670
|
+
return env.editContextSupported && options.get(EditorOption.experimentalEditContextEnabled);
|
|
672
671
|
}
|
|
673
672
|
}
|
|
674
673
|
class EditorFontSize extends SimpleEditorOption {
|
|
@@ -3560,7 +3559,7 @@ const EditorOptions = {
|
|
|
3560
3559
|
experimentalEditContextEnabled: register(( new EditorBooleanOption(
|
|
3561
3560
|
EditorOption.experimentalEditContextEnabled,
|
|
3562
3561
|
'experimentalEditContextEnabled',
|
|
3563
|
-
product
|
|
3562
|
+
product.quality !== 'stable',
|
|
3564
3563
|
{
|
|
3565
3564
|
description: ( localize(
|
|
3566
3565
|
537,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OffsetRange } from "./offsetRange.js";
|
|
2
|
+
import { Range } from "./range.js";
|
|
3
|
+
export declare class ColumnRange {
|
|
4
|
+
readonly startColumn: number;
|
|
5
|
+
readonly endColumnExclusive: number;
|
|
6
|
+
static fromOffsetRange(offsetRange: OffsetRange): ColumnRange;
|
|
7
|
+
constructor(startColumn: number, endColumnExclusive: number);
|
|
8
|
+
toRange(lineNumber: number): Range;
|
|
9
|
+
equals(other: ColumnRange): boolean;
|
|
10
|
+
toZeroBasedOffsetRange(): OffsetRange;
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import { BugIndicatingError } from '../../../base/common/errors.js';
|
|
3
|
+
import { OffsetRange } from './offsetRange.js';
|
|
4
|
+
import { Range } from './range.js';
|
|
5
|
+
|
|
6
|
+
class ColumnRange {
|
|
7
|
+
static fromOffsetRange(offsetRange) {
|
|
8
|
+
return ( new ColumnRange(offsetRange.start + 1, offsetRange.endExclusive + 1));
|
|
9
|
+
}
|
|
10
|
+
constructor(
|
|
11
|
+
startColumn, endColumnExclusive) {
|
|
12
|
+
this.startColumn = startColumn;
|
|
13
|
+
this.endColumnExclusive = endColumnExclusive;
|
|
14
|
+
if (startColumn > endColumnExclusive) {
|
|
15
|
+
throw ( new BugIndicatingError(
|
|
16
|
+
`startColumn ${startColumn} cannot be after endColumnExclusive ${endColumnExclusive}`
|
|
17
|
+
));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
toRange(lineNumber) {
|
|
21
|
+
return ( new Range(lineNumber, this.startColumn, lineNumber, this.endColumnExclusive));
|
|
22
|
+
}
|
|
23
|
+
equals(other) {
|
|
24
|
+
return this.startColumn === other.startColumn
|
|
25
|
+
&& this.endColumnExclusive === other.endColumnExclusive;
|
|
26
|
+
}
|
|
27
|
+
toZeroBasedOffsetRange() {
|
|
28
|
+
return ( new OffsetRange(this.startColumn - 1, this.endColumnExclusive - 1));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ColumnRange };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OffsetRange } from "./offsetRange.js";
|
|
2
2
|
export declare class OffsetEdit {
|
|
3
3
|
readonly edits: readonly SingleOffsetEdit[];
|
|
4
|
+
static join(edits: readonly OffsetEdit[]): OffsetEdit;
|
|
4
5
|
static readonly empty: OffsetEdit;
|
|
5
6
|
static fromJson(data: IOffsetEdit): OffsetEdit;
|
|
6
7
|
static replace(range: OffsetRange, newText: string): OffsetEdit;
|
|
@@ -3,6 +3,16 @@ import { BugIndicatingError } from '../../../base/common/errors.js';
|
|
|
3
3
|
import { OffsetRange } from './offsetRange.js';
|
|
4
4
|
|
|
5
5
|
class OffsetEdit {
|
|
6
|
+
static join(edits) {
|
|
7
|
+
if (edits.length === 0) {
|
|
8
|
+
return OffsetEdit.empty;
|
|
9
|
+
}
|
|
10
|
+
let result = edits[0];
|
|
11
|
+
for (let i = 1; i < edits.length; i++) {
|
|
12
|
+
result = result.compose(edits[i]);
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
6
16
|
static { this.empty = ( new OffsetEdit([])); }
|
|
7
17
|
static fromJson(data) {
|
|
8
18
|
return ( new OffsetEdit(( data.map(SingleOffsetEdit.fromJson))));
|
|
@@ -37,6 +37,7 @@ export declare class OffsetRange implements IOffsetRange {
|
|
|
37
37
|
}
|
|
38
38
|
export declare class OffsetRangeSet {
|
|
39
39
|
private readonly _sortedRanges;
|
|
40
|
+
get ranges(): OffsetRange[];
|
|
40
41
|
addRange(range: OffsetRange): void;
|
|
41
42
|
toString(): string;
|
|
42
43
|
intersectsStrict(other: OffsetRange): boolean;
|
|
@@ -148,6 +148,9 @@ class OffsetRangeSet {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
this._sortedRanges = [];
|
|
150
150
|
}
|
|
151
|
+
get ranges() {
|
|
152
|
+
return [...this._sortedRanges];
|
|
153
|
+
}
|
|
151
154
|
addRange(range) {
|
|
152
155
|
let i = 0;
|
|
153
156
|
while (i < this._sortedRanges.length && this._sortedRanges[i].endExclusive < range.start) {
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
+
import { ITextModel } from "../model.js";
|
|
2
|
+
import { OffsetEdit, SingleOffsetEdit } from "./offsetEdit.js";
|
|
1
3
|
import { OffsetRange } from "./offsetRange.js";
|
|
2
4
|
import { Position } from "./position.js";
|
|
3
5
|
import { Range } from "./range.js";
|
|
6
|
+
import { SingleTextEdit, TextEdit } from "./textEdit.js";
|
|
4
7
|
import { TextLength } from "./textLength.js";
|
|
5
|
-
export declare class
|
|
8
|
+
export declare abstract class PositionOffsetTransformerBase {
|
|
9
|
+
abstract getOffset(position: Position): number;
|
|
10
|
+
getOffsetRange(range: Range): OffsetRange;
|
|
11
|
+
abstract getPosition(offset: number): Position;
|
|
12
|
+
getRange(offsetRange: OffsetRange): Range;
|
|
13
|
+
getOffsetEdit(edit: TextEdit): OffsetEdit;
|
|
14
|
+
getSingleOffsetEdit(edit: SingleTextEdit): SingleOffsetEdit;
|
|
15
|
+
getSingleTextEdit(edit: SingleOffsetEdit): SingleTextEdit;
|
|
16
|
+
getTextEdit(edit: OffsetEdit): TextEdit;
|
|
17
|
+
}
|
|
18
|
+
export declare class PositionOffsetTransformer extends PositionOffsetTransformerBase {
|
|
6
19
|
readonly text: string;
|
|
7
20
|
private readonly lineStartOffsetByLineIdx;
|
|
8
21
|
private readonly lineEndOffsetByLineIdx;
|
|
9
22
|
constructor(text: string);
|
|
10
23
|
getOffset(position: Position): number;
|
|
11
24
|
private _validatePosition;
|
|
12
|
-
getOffsetRange(range: Range): OffsetRange;
|
|
13
25
|
getPosition(offset: number): Position;
|
|
14
|
-
getRange(offsetRange: OffsetRange): Range;
|
|
15
26
|
getTextLength(offsetRange: OffsetRange): TextLength;
|
|
16
27
|
get textLength(): TextLength;
|
|
17
28
|
getLineLength(lineNumber: number): number;
|
|
18
29
|
}
|
|
30
|
+
export declare function getPositionOffsetTransformerFromTextModel(textModel: ITextModel): PositionOffsetTransformerBase;
|
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
|
|
2
2
|
import { findLastIdxMonotonous } from '../../../base/common/arraysFind.js';
|
|
3
|
+
import { OffsetEdit, SingleOffsetEdit } from './offsetEdit.js';
|
|
3
4
|
import { OffsetRange } from './offsetRange.js';
|
|
4
5
|
import { Position } from './position.js';
|
|
5
6
|
import { Range } from './range.js';
|
|
7
|
+
import { SingleTextEdit, TextEdit } from './textEdit.js';
|
|
6
8
|
import { TextLength } from './textLength.js';
|
|
7
9
|
|
|
8
|
-
class
|
|
10
|
+
class PositionOffsetTransformerBase {
|
|
11
|
+
getOffsetRange(range) {
|
|
12
|
+
return ( new OffsetRange(
|
|
13
|
+
this.getOffset(range.getStartPosition()),
|
|
14
|
+
this.getOffset(range.getEndPosition())
|
|
15
|
+
));
|
|
16
|
+
}
|
|
17
|
+
getRange(offsetRange) {
|
|
18
|
+
return Range.fromPositions(this.getPosition(offsetRange.start), this.getPosition(offsetRange.endExclusive));
|
|
19
|
+
}
|
|
20
|
+
getOffsetEdit(edit) {
|
|
21
|
+
const edits = ( edit.edits.map(e => this.getSingleOffsetEdit(e)));
|
|
22
|
+
return ( new OffsetEdit(edits));
|
|
23
|
+
}
|
|
24
|
+
getSingleOffsetEdit(edit) {
|
|
25
|
+
return ( new SingleOffsetEdit(this.getOffsetRange(edit.range), edit.text));
|
|
26
|
+
}
|
|
27
|
+
getSingleTextEdit(edit) {
|
|
28
|
+
return ( new SingleTextEdit(this.getRange(edit.replaceRange), edit.newText));
|
|
29
|
+
}
|
|
30
|
+
getTextEdit(edit) {
|
|
31
|
+
const edits = ( edit.edits.map(e => this.getSingleTextEdit(e)));
|
|
32
|
+
return ( new TextEdit(edits));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
class PositionOffsetTransformer extends PositionOffsetTransformerBase {
|
|
9
36
|
constructor(text) {
|
|
37
|
+
super();
|
|
10
38
|
this.text = text;
|
|
11
39
|
this.lineStartOffsetByLineIdx = [];
|
|
12
40
|
this.lineEndOffsetByLineIdx = [];
|
|
@@ -46,21 +74,12 @@ class PositionOffsetTransformer {
|
|
|
46
74
|
}
|
|
47
75
|
return position;
|
|
48
76
|
}
|
|
49
|
-
getOffsetRange(range) {
|
|
50
|
-
return ( new OffsetRange(
|
|
51
|
-
this.getOffset(range.getStartPosition()),
|
|
52
|
-
this.getOffset(range.getEndPosition())
|
|
53
|
-
));
|
|
54
|
-
}
|
|
55
77
|
getPosition(offset) {
|
|
56
78
|
const idx = findLastIdxMonotonous(this.lineStartOffsetByLineIdx, i => i <= offset);
|
|
57
79
|
const lineNumber = idx + 1;
|
|
58
80
|
const column = offset - this.lineStartOffsetByLineIdx[idx] + 1;
|
|
59
81
|
return ( new Position(lineNumber, column));
|
|
60
82
|
}
|
|
61
|
-
getRange(offsetRange) {
|
|
62
|
-
return Range.fromPositions(this.getPosition(offsetRange.start), this.getPosition(offsetRange.endExclusive));
|
|
63
|
-
}
|
|
64
83
|
getTextLength(offsetRange) {
|
|
65
84
|
return TextLength.ofRange(this.getRange(offsetRange));
|
|
66
85
|
}
|
|
@@ -72,5 +91,20 @@ class PositionOffsetTransformer {
|
|
|
72
91
|
return this.lineEndOffsetByLineIdx[lineNumber - 1] - this.lineStartOffsetByLineIdx[lineNumber - 1];
|
|
73
92
|
}
|
|
74
93
|
}
|
|
94
|
+
function getPositionOffsetTransformerFromTextModel(textModel) {
|
|
95
|
+
return ( new PositionOffsetTransformerWithTextModel(textModel));
|
|
96
|
+
}
|
|
97
|
+
class PositionOffsetTransformerWithTextModel extends PositionOffsetTransformerBase {
|
|
98
|
+
constructor(_textModel) {
|
|
99
|
+
super();
|
|
100
|
+
this._textModel = _textModel;
|
|
101
|
+
}
|
|
102
|
+
getOffset(position) {
|
|
103
|
+
return this._textModel.getOffsetAt(position);
|
|
104
|
+
}
|
|
105
|
+
getPosition(offset) {
|
|
106
|
+
return this._textModel.getPositionAt(offset);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
75
109
|
|
|
76
|
-
export { PositionOffsetTransformer };
|
|
110
|
+
export { PositionOffsetTransformer, PositionOffsetTransformerBase, getPositionOffsetTransformerFromTextModel };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnRange } from "./columnRange.js";
|
|
2
|
+
import { Range } from "./range.js";
|
|
3
|
+
export declare class RangeSingleLine {
|
|
4
|
+
readonly lineNumber: number;
|
|
5
|
+
readonly columnRange: ColumnRange;
|
|
6
|
+
static fromRange(range: Range): RangeSingleLine | undefined;
|
|
7
|
+
constructor(lineNumber: number, columnRange: ColumnRange);
|
|
8
|
+
toRange(): Range;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
import { ColumnRange } from './columnRange.js';
|
|
3
|
+
import { Range } from './range.js';
|
|
4
|
+
|
|
5
|
+
class RangeSingleLine {
|
|
6
|
+
static fromRange(range) {
|
|
7
|
+
if (range.endLineNumber !== range.startLineNumber) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
return ( new RangeSingleLine(range.startLineNumber, ( new ColumnRange(range.startColumn, range.endColumn))));
|
|
11
|
+
}
|
|
12
|
+
constructor(
|
|
13
|
+
lineNumber, columnRange) {
|
|
14
|
+
this.lineNumber = lineNumber;
|
|
15
|
+
this.columnRange = columnRange;
|
|
16
|
+
}
|
|
17
|
+
toRange() {
|
|
18
|
+
return ( new Range(
|
|
19
|
+
this.lineNumber,
|
|
20
|
+
this.columnRange.startColumn,
|
|
21
|
+
this.lineNumber,
|
|
22
|
+
this.columnRange.endColumnExclusive
|
|
23
|
+
));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RangeSingleLine };
|
|
@@ -22,6 +22,7 @@ export declare class TextEdit {
|
|
|
22
22
|
getNewRanges(): Range[];
|
|
23
23
|
toSingle(text: AbstractText): SingleTextEdit;
|
|
24
24
|
equals(other: TextEdit): boolean;
|
|
25
|
+
toString(text: AbstractText | string | undefined): string;
|
|
25
26
|
}
|
|
26
27
|
export declare class SingleTextEdit {
|
|
27
28
|
readonly range: Range;
|
|
@@ -168,6 +168,47 @@ class TextEdit {
|
|
|
168
168
|
equals(other) {
|
|
169
169
|
return equals(this.edits, other.edits, (a, b) => a.equals(b));
|
|
170
170
|
}
|
|
171
|
+
toString(text) {
|
|
172
|
+
if (text === undefined) {
|
|
173
|
+
return ( this.edits.map(edit => ( edit.toString()))).join('\n');
|
|
174
|
+
}
|
|
175
|
+
if (typeof text === 'string') {
|
|
176
|
+
return ( this.toString(( new StringText(text))));
|
|
177
|
+
}
|
|
178
|
+
if (this.edits.length === 0) {
|
|
179
|
+
return '';
|
|
180
|
+
}
|
|
181
|
+
return ( this.edits.map(edit => {
|
|
182
|
+
const maxLength = 10;
|
|
183
|
+
const originalText = text.getValueOfRange(edit.range);
|
|
184
|
+
const beforeRange = Range.fromPositions(( new Position(Math.max(1, edit.range.startLineNumber - 1), 1)), edit.range.getStartPosition());
|
|
185
|
+
let beforeText = text.getValueOfRange(beforeRange);
|
|
186
|
+
if (beforeText.length > maxLength) {
|
|
187
|
+
beforeText = '...' + beforeText.substring(beforeText.length - maxLength);
|
|
188
|
+
}
|
|
189
|
+
const afterRange = Range.fromPositions(edit.range.getEndPosition(), ( new Position(edit.range.endLineNumber + 1, 1)));
|
|
190
|
+
let afterText = text.getValueOfRange(afterRange);
|
|
191
|
+
if (afterText.length > maxLength) {
|
|
192
|
+
afterText = afterText.substring(0, maxLength) + '...';
|
|
193
|
+
}
|
|
194
|
+
let replacedText = originalText;
|
|
195
|
+
if (replacedText.length > maxLength) {
|
|
196
|
+
const halfMax = Math.floor(maxLength / 2);
|
|
197
|
+
replacedText = replacedText.substring(0, halfMax) + '...' +
|
|
198
|
+
replacedText.substring(replacedText.length - halfMax);
|
|
199
|
+
}
|
|
200
|
+
let newText = edit.text;
|
|
201
|
+
if (newText.length > maxLength) {
|
|
202
|
+
const halfMax = Math.floor(maxLength / 2);
|
|
203
|
+
newText = newText.substring(0, halfMax) + '...' +
|
|
204
|
+
newText.substring(newText.length - halfMax);
|
|
205
|
+
}
|
|
206
|
+
if (replacedText.length === 0) {
|
|
207
|
+
return `${beforeText}❰${newText}❱${afterText}`;
|
|
208
|
+
}
|
|
209
|
+
return `${beforeText}❰${replacedText}↦${newText}❱${afterText}`;
|
|
210
|
+
})).join('\n');
|
|
211
|
+
}
|
|
171
212
|
}
|
|
172
213
|
class SingleTextEdit {
|
|
173
214
|
static joinEdits(edits, initialValue) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { ILanguageExtensionPoint } from "./language.js";
|
|
3
|
-
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
3
|
+
import { Disposable, IDisposable } from "../../../base/common/lifecycle.js";
|
|
4
4
|
export declare const Extensions: {
|
|
5
5
|
ModesRegistry: string;
|
|
6
6
|
};
|
|
7
|
-
export declare class EditorModesRegistry {
|
|
7
|
+
export declare class EditorModesRegistry extends Disposable {
|
|
8
8
|
private readonly _languages;
|
|
9
9
|
private readonly _onDidChangeLanguages;
|
|
10
10
|
readonly onDidChangeLanguages: Event<void>;
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
import { localize } from '../../../nls.js';
|
|
3
3
|
import { Emitter } from '../../../base/common/event.js';
|
|
4
4
|
import { Registry } from '../../../platform/registry/common/platform.js';
|
|
5
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
5
6
|
import { Mimes } from '../../../base/common/mime.js';
|
|
6
7
|
import { Extensions as Extensions$1 } from '../../../platform/configuration/common/configurationRegistry.js';
|
|
7
8
|
|
|
8
9
|
const Extensions = {
|
|
9
10
|
ModesRegistry: 'editor.modesRegistry'
|
|
10
11
|
};
|
|
11
|
-
class EditorModesRegistry {
|
|
12
|
+
class EditorModesRegistry extends Disposable {
|
|
12
13
|
constructor() {
|
|
13
|
-
|
|
14
|
+
super();
|
|
15
|
+
this._onDidChangeLanguages = this._register(( new Emitter()));
|
|
14
16
|
this.onDidChangeLanguages = this._onDidChangeLanguages.event;
|
|
15
17
|
this._languages = [];
|
|
16
18
|
}
|
|
@@ -291,11 +291,16 @@ export interface InlineCompletion {
|
|
|
291
291
|
readonly showInlineEditMenu?: boolean;
|
|
292
292
|
readonly showRange?: IRange;
|
|
293
293
|
readonly warning?: InlineCompletionWarning;
|
|
294
|
+
readonly displayLocation?: InlineCompletionDisplayLocation;
|
|
294
295
|
}
|
|
295
296
|
export interface InlineCompletionWarning {
|
|
296
297
|
message: IMarkdownString | string;
|
|
297
298
|
icon?: IconPath;
|
|
298
299
|
}
|
|
300
|
+
export interface InlineCompletionDisplayLocation {
|
|
301
|
+
range: IRange;
|
|
302
|
+
label: string;
|
|
303
|
+
}
|
|
299
304
|
export type IconPath = ThemeIcon;
|
|
300
305
|
export interface InlineCompletions<TItem extends InlineCompletion = InlineCompletion> {
|
|
301
306
|
readonly items: readonly TItem[];
|
|
@@ -310,13 +315,29 @@ export interface InlineCompletionsProvider<T extends InlineCompletions = InlineC
|
|
|
310
315
|
handleItemDidShow?(completions: T, item: T["items"][number], updatedInsertText: string): void;
|
|
311
316
|
handlePartialAccept?(completions: T, item: T["items"][number], acceptedCharacters: number, info: PartialAcceptInfo): void;
|
|
312
317
|
handleRejection?(completions: T, item: T["items"][number]): void;
|
|
318
|
+
handleEndOfLifetime?(completions: T, item: T["items"][number], reason: InlineCompletionEndOfLifeReason<T["items"][number]>): void;
|
|
313
319
|
freeInlineCompletions(completions: T): void;
|
|
320
|
+
onDidChangeInlineCompletions?: Event<void>;
|
|
314
321
|
groupId?: InlineCompletionProviderGroupId;
|
|
315
322
|
yieldsToGroupIds?: InlineCompletionProviderGroupId[];
|
|
316
323
|
displayName?: string;
|
|
317
324
|
debounceDelayMs?: number;
|
|
318
325
|
toString?(): string;
|
|
319
326
|
}
|
|
327
|
+
export declare enum InlineCompletionEndOfLifeReasonKind {
|
|
328
|
+
Accepted = 0,
|
|
329
|
+
Rejected = 1,
|
|
330
|
+
Ignored = 2
|
|
331
|
+
}
|
|
332
|
+
export type InlineCompletionEndOfLifeReason<TInlineCompletion = InlineCompletion> = {
|
|
333
|
+
kind: InlineCompletionEndOfLifeReasonKind.Accepted;
|
|
334
|
+
} | {
|
|
335
|
+
kind: InlineCompletionEndOfLifeReasonKind.Rejected;
|
|
336
|
+
} | {
|
|
337
|
+
kind: InlineCompletionEndOfLifeReasonKind.Ignored;
|
|
338
|
+
supersededBy?: TInlineCompletion;
|
|
339
|
+
userTypingDisagreed: boolean;
|
|
340
|
+
};
|
|
320
341
|
export interface CodeAction {
|
|
321
342
|
title: string;
|
|
322
343
|
command?: Command;
|
|
@@ -759,7 +780,7 @@ export interface CommentThread<T = IRange> {
|
|
|
759
780
|
onDidChangeInitialCollapsibleState: Event<CommentThreadCollapsibleState | undefined>;
|
|
760
781
|
state?: CommentThreadState;
|
|
761
782
|
applicability?: CommentThreadApplicability;
|
|
762
|
-
canReply: boolean;
|
|
783
|
+
canReply: boolean | CommentAuthorInformation;
|
|
763
784
|
input?: CommentInput;
|
|
764
785
|
onDidChangeInput: Event<CommentInput | undefined>;
|
|
765
786
|
onDidChangeLabel: Event<string | undefined>;
|
|
@@ -224,6 +224,12 @@ class SelectedSuggestionInfo {
|
|
|
224
224
|
&& this.isSnippetText === other.isSnippetText;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
+
var InlineCompletionEndOfLifeReasonKind;
|
|
228
|
+
(function (InlineCompletionEndOfLifeReasonKind) {
|
|
229
|
+
InlineCompletionEndOfLifeReasonKind[InlineCompletionEndOfLifeReasonKind["Accepted"] = 0] = "Accepted";
|
|
230
|
+
InlineCompletionEndOfLifeReasonKind[InlineCompletionEndOfLifeReasonKind["Rejected"] = 1] = "Rejected";
|
|
231
|
+
InlineCompletionEndOfLifeReasonKind[InlineCompletionEndOfLifeReasonKind["Ignored"] = 2] = "Ignored";
|
|
232
|
+
})(InlineCompletionEndOfLifeReasonKind || (InlineCompletionEndOfLifeReasonKind = {}));
|
|
227
233
|
var CodeActionTriggerType;
|
|
228
234
|
(function (CodeActionTriggerType) {
|
|
229
235
|
CodeActionTriggerType[CodeActionTriggerType["Invoke"] = 1] = "Invoke";
|
|
@@ -507,4 +513,4 @@ var InlineEditTriggerKind;
|
|
|
507
513
|
InlineEditTriggerKind[InlineEditTriggerKind["Automatic"] = 1] = "Automatic";
|
|
508
514
|
})(InlineEditTriggerKind || (InlineEditTriggerKind = {}));
|
|
509
515
|
|
|
510
|
-
export { CodeActionTriggerType, Command, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadState, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemKinds, CompletionItemTag, CompletionTriggerKind, DocumentHighlightKind, DocumentPasteTriggerKind, EncodedTokenizationResult, ExternalUriOpenerPriority, FoldingRangeKind, HoverVerbosityAction, InlayHintKind, InlineCompletionTriggerKind, InlineEditTriggerKind, LazyTokenizationSupport, NewSymbolNameTag, NewSymbolNameTriggerKind, PartialAcceptTriggerKind, SelectedSuggestionInfo, SignatureHelpTriggerKind, SymbolKind, SymbolKinds, SymbolTag, TextEdit, Token, TokenizationRegistry, TokenizationResult, TreeSitterTokenizationRegistry, getAriaLabelForSymbol, isLocation, isLocationLink, symbolKindNames };
|
|
516
|
+
export { CodeActionTriggerType, Command, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadState, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemKinds, CompletionItemTag, CompletionTriggerKind, DocumentHighlightKind, DocumentPasteTriggerKind, EncodedTokenizationResult, ExternalUriOpenerPriority, FoldingRangeKind, HoverVerbosityAction, InlayHintKind, InlineCompletionEndOfLifeReasonKind, InlineCompletionTriggerKind, InlineEditTriggerKind, LazyTokenizationSupport, NewSymbolNameTag, NewSymbolNameTriggerKind, PartialAcceptTriggerKind, SelectedSuggestionInfo, SignatureHelpTriggerKind, SymbolKind, SymbolKinds, SymbolTag, TextEdit, Token, TokenizationRegistry, TokenizationResult, TreeSitterTokenizationRegistry, getAriaLabelForSymbol, isLocation, isLocationLink, symbolKindNames };
|
|
@@ -16,7 +16,7 @@ import { ILanguageService } from "../languages/language.service.js";
|
|
|
16
16
|
import { ILanguageConfigurationService } from "../languages/languageConfigurationRegistry.service.js";
|
|
17
17
|
import * as model from "../model.js";
|
|
18
18
|
import { IBracketPairsTextModelPart } from "../textModelBracketPairs.js";
|
|
19
|
-
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelOptionsChangedEvent, InternalModelContentChangeEvent, ModelInjectedTextChangedEvent } from "../textModelEvents.js";
|
|
19
|
+
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelOptionsChangedEvent, InternalModelContentChangeEvent, ModelInjectedTextChangedEvent, ModelLineHeightChangedEvent } from "../textModelEvents.js";
|
|
20
20
|
import { IGuidesTextModelPart } from "../textModelGuides.js";
|
|
21
21
|
import { ITokenizationTextModelPart } from "../tokenizationTextModelPart.js";
|
|
22
22
|
import { IInstantiationService } from "../../../platform/instantiation/common/instantiation.js";
|
|
@@ -61,6 +61,8 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
61
61
|
private readonly _onDidChangeAttached;
|
|
62
62
|
readonly onDidChangeAttached: Event<void>;
|
|
63
63
|
private readonly _onDidChangeInjectedText;
|
|
64
|
+
private readonly _onDidChangeLineHeight;
|
|
65
|
+
readonly onDidChangeLineHeight: Event<ModelLineHeightChangedEvent>;
|
|
64
66
|
private readonly _eventEmitter;
|
|
65
67
|
onDidChangeContent(listener: (e: IModelContentChangedEvent) => void): IDisposable;
|
|
66
68
|
onDidChangeContentOrInjectedText(listener: (e: InternalModelContentChangeEvent | ModelInjectedTextChangedEvent) => void): IDisposable;
|
|
@@ -201,6 +203,7 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
201
203
|
getDecorationsInRange(range: IRange, ownerId?: number, filterOutValidation?: boolean, onlyMinimapDecorations?: boolean, onlyMarginDecorations?: boolean): model.IModelDecoration[];
|
|
202
204
|
getOverviewRulerDecorations(ownerId?: number, filterOutValidation?: boolean): model.IModelDecoration[];
|
|
203
205
|
getInjectedTextDecorations(ownerId?: number): model.IModelDecoration[];
|
|
206
|
+
getCustomLineHeightsDecorations(ownerId?: number): model.IModelDecoration[];
|
|
204
207
|
private _getInjectedTextInLine;
|
|
205
208
|
getAllDecorations(ownerId?: number, filterOutValidation?: boolean): model.IModelDecoration[];
|
|
206
209
|
getAllMarginDecorations(ownerId?: number): model.IModelDecoration[];
|
|
@@ -283,6 +286,7 @@ export declare class ModelDecorationOptions implements model.IModelDecorationOpt
|
|
|
283
286
|
readonly hoverMessage: IMarkdownString | IMarkdownString[] | null;
|
|
284
287
|
readonly glyphMarginHoverMessage: IMarkdownString | IMarkdownString[] | null;
|
|
285
288
|
readonly isWholeLine: boolean;
|
|
289
|
+
readonly lineHeight: number | null;
|
|
286
290
|
readonly showIfCollapsed: boolean;
|
|
287
291
|
readonly collapseOnReplaceEdit: boolean;
|
|
288
292
|
readonly overviewRuler: ModelDecorationOverviewRulerOptions | null;
|