@codingame/monaco-vscode-api 16.1.1 → 17.1.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 +105 -0
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +3 -3
- package/vscode/product.json.js +3 -0
- 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 +1 -2
- 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 +7 -90
- 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 +31 -31
- 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
|
@@ -21,8 +21,8 @@ export interface IObservableLogger {
|
|
|
21
21
|
handleAutorunDependencyChanged(autorun: AutorunObserver, observable: IObservable<any>, change: unknown): void;
|
|
22
22
|
handleAutorunStarted(autorun: AutorunObserver): void;
|
|
23
23
|
handleAutorunFinished(autorun: AutorunObserver): void;
|
|
24
|
-
handleDerivedDependencyChanged(derived: Derived<any>, observable: IObservable<any>, change: unknown): void;
|
|
25
|
-
handleDerivedCleared(observable: Derived<any>): void;
|
|
24
|
+
handleDerivedDependencyChanged(derived: Derived<any, any, any>, observable: IObservable<any>, change: unknown): void;
|
|
25
|
+
handleDerivedCleared(observable: Derived<any, any, any>): void;
|
|
26
26
|
handleBeginTransaction(transaction: TransactionImpl): void;
|
|
27
27
|
handleEndTransaction(transaction: TransactionImpl): void;
|
|
28
28
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IObservable } from "./base.js";
|
|
2
|
+
export declare class ObservableLazy<T> {
|
|
3
|
+
private readonly _computeValue;
|
|
4
|
+
private readonly _value;
|
|
5
|
+
get cachedValue(): IObservable<T | undefined>;
|
|
6
|
+
constructor(_computeValue: () => T);
|
|
7
|
+
getValue(): T;
|
|
8
|
+
}
|
|
9
|
+
export declare class ObservablePromise<T> {
|
|
10
|
+
static fromFn<T>(fn: () => Promise<T>): ObservablePromise<T>;
|
|
11
|
+
private readonly _value;
|
|
12
|
+
readonly promise: Promise<T>;
|
|
13
|
+
readonly promiseResult: IObservable<PromiseResult<T> | undefined>;
|
|
14
|
+
constructor(promise: Promise<T>);
|
|
15
|
+
}
|
|
16
|
+
export declare class PromiseResult<T> {
|
|
17
|
+
readonly data: T | undefined;
|
|
18
|
+
readonly error: unknown | undefined;
|
|
19
|
+
constructor(data: T | undefined, error: unknown | undefined);
|
|
20
|
+
getDataOrThrow(): T;
|
|
21
|
+
}
|
|
22
|
+
export declare class ObservableLazyPromise<T> {
|
|
23
|
+
private readonly _computePromise;
|
|
24
|
+
private readonly _lazyValue;
|
|
25
|
+
readonly cachedPromiseResult: IObservable<PromiseResult<T> | undefined>;
|
|
26
|
+
constructor(_computePromise: () => Promise<T>);
|
|
27
|
+
getPromise(): Promise<T>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
import { observableValue, transaction } from './base.js';
|
|
3
|
+
import { derived } from './derived.js';
|
|
4
|
+
|
|
5
|
+
class ObservableLazy {
|
|
6
|
+
get cachedValue() { return this._value; }
|
|
7
|
+
constructor(_computeValue) {
|
|
8
|
+
this._computeValue = _computeValue;
|
|
9
|
+
this._value = observableValue(this, undefined);
|
|
10
|
+
}
|
|
11
|
+
getValue() {
|
|
12
|
+
let v = this._value.get();
|
|
13
|
+
if (!v) {
|
|
14
|
+
v = this._computeValue();
|
|
15
|
+
this._value.set(v, undefined);
|
|
16
|
+
}
|
|
17
|
+
return v;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class ObservablePromise {
|
|
21
|
+
static fromFn(fn) {
|
|
22
|
+
return ( new ObservablePromise(fn()));
|
|
23
|
+
}
|
|
24
|
+
constructor(promise) {
|
|
25
|
+
this._value = observableValue(this, undefined);
|
|
26
|
+
this.promiseResult = this._value;
|
|
27
|
+
this.promise = promise.then(value => {
|
|
28
|
+
transaction(tx => {
|
|
29
|
+
this._value.set(( new PromiseResult(value, undefined)), tx);
|
|
30
|
+
});
|
|
31
|
+
return value;
|
|
32
|
+
}, error => {
|
|
33
|
+
transaction(tx => {
|
|
34
|
+
this._value.set(( new PromiseResult(undefined, error)), tx);
|
|
35
|
+
});
|
|
36
|
+
throw error;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
class PromiseResult {
|
|
41
|
+
constructor(
|
|
42
|
+
data,
|
|
43
|
+
error) {
|
|
44
|
+
this.data = data;
|
|
45
|
+
this.error = error;
|
|
46
|
+
}
|
|
47
|
+
getDataOrThrow() {
|
|
48
|
+
if (this.error) {
|
|
49
|
+
throw this.error;
|
|
50
|
+
}
|
|
51
|
+
return this.data;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
class ObservableLazyPromise {
|
|
55
|
+
constructor(_computePromise) {
|
|
56
|
+
this._computePromise = _computePromise;
|
|
57
|
+
this._lazyValue = ( new ObservableLazy(() => ( new ObservablePromise(this._computePromise()))));
|
|
58
|
+
this.cachedPromiseResult = derived(this, reader => this._lazyValue.cachedValue.read(reader)?.promiseResult.read(reader));
|
|
59
|
+
}
|
|
60
|
+
getPromise() {
|
|
61
|
+
return this._lazyValue.getValue().promise;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { ObservableLazy, ObservableLazyPromise, ObservablePromise, PromiseResult };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EqualityComparer } from "../equals.js";
|
|
2
|
+
import { IObservable, IObservableWithChange, ISettableObservable } from "./base.js";
|
|
3
|
+
import { IChangeTracker } from "./changeTracker.js";
|
|
4
|
+
import { DebugOwner } from "./debugName.js";
|
|
5
|
+
import { IDerivedReader } from "./derived.js";
|
|
6
|
+
export interface IReducerOptions<T, TChangeSummary = void, TOutChange = void> {
|
|
7
|
+
initial: T | (() => T);
|
|
8
|
+
disposeFinal?(value: T): void;
|
|
9
|
+
changeTracker?: IChangeTracker<TChangeSummary>;
|
|
10
|
+
equalityComparer?: EqualityComparer<T>;
|
|
11
|
+
update(reader: IDerivedReader<TOutChange>, previousValue: T, changes: TChangeSummary): T;
|
|
12
|
+
}
|
|
13
|
+
export declare function observableReducer<T, TInChanges, TOutChange = void>(owner: DebugOwner, options: IReducerOptions<T, TInChanges, TOutChange>): SimplifyObservableWithChange<T, TOutChange>;
|
|
14
|
+
export declare function observableReducerSettable<T, TInChanges, TOutChange = void>(owner: DebugOwner, options: IReducerOptions<T, TInChanges, TOutChange>): ISettableObservable<T, TOutChange>;
|
|
15
|
+
type SimplifyObservableWithChange<T, TChange> = TChange extends void ? IObservable<T> : IObservableWithChange<T, TChange>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
import { strictEquals } from '../equals.js';
|
|
3
|
+
import { BugIndicatingError } from '../errors.js';
|
|
4
|
+
import { subtransaction } from './base.js';
|
|
5
|
+
import { DebugNameData } from './debugName.js';
|
|
6
|
+
import { DerivedWithSetter } from './derived.js';
|
|
7
|
+
|
|
8
|
+
function observableReducerSettable(owner, options) {
|
|
9
|
+
let prevValue = undefined;
|
|
10
|
+
let hasValue = false;
|
|
11
|
+
const d = ( new DerivedWithSetter(( new DebugNameData(owner, undefined, options.update)), (reader, changeSummary) => {
|
|
12
|
+
if (!hasValue) {
|
|
13
|
+
prevValue = options.initial instanceof Function ? options.initial() : options.initial;
|
|
14
|
+
hasValue = true;
|
|
15
|
+
}
|
|
16
|
+
const newValue = options.update(reader, prevValue, changeSummary);
|
|
17
|
+
prevValue = newValue;
|
|
18
|
+
return newValue;
|
|
19
|
+
}, options.changeTracker, () => {
|
|
20
|
+
if (hasValue) {
|
|
21
|
+
options.disposeFinal?.(prevValue);
|
|
22
|
+
hasValue = false;
|
|
23
|
+
}
|
|
24
|
+
}, options.equalityComparer ?? strictEquals, (value, tx, change) => {
|
|
25
|
+
if (!hasValue) {
|
|
26
|
+
throw ( new BugIndicatingError('Can only set when there is a listener! This is to prevent leaks.'));
|
|
27
|
+
}
|
|
28
|
+
subtransaction(tx, tx => {
|
|
29
|
+
prevValue = value;
|
|
30
|
+
d.setValue(value, tx, change);
|
|
31
|
+
});
|
|
32
|
+
}));
|
|
33
|
+
return d;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { observableReducerSettable };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseObservable, IObservable, IObservableWithChange, IObserver, IReader, ITransaction } from "./base.js";
|
|
2
2
|
import { DebugNameData, DebugOwner, IDebugNameData } from "./debugName.js";
|
|
3
3
|
import { DisposableStore, EqualityComparer, Event, IDisposable, IValueWithChangeEvent } from "./commonFacade/deps.js";
|
|
4
|
+
import { CancellationToken } from "../cancellation.js";
|
|
4
5
|
export declare function constObservable<T>(value: T): IObservable<T>;
|
|
5
6
|
export declare function observableFromPromise<T>(promise: Promise<T>): IObservable<{
|
|
6
7
|
value?: T;
|
|
@@ -73,4 +74,5 @@ export declare function derivedConstOnceDefined<T>(owner: DebugOwner, fn: (reade
|
|
|
73
74
|
type RemoveUndefined<T> = T extends undefined ? never : T;
|
|
74
75
|
export declare function runOnChange<T, TChange>(observable: IObservableWithChange<T, TChange>, cb: (value: T, previousValue: undefined | T, deltas: RemoveUndefined<TChange>[]) => void): IDisposable;
|
|
75
76
|
export declare function runOnChangeWithStore<T, TChange>(observable: IObservableWithChange<T, TChange>, cb: (value: T, previousValue: undefined | T, deltas: RemoveUndefined<TChange>[], store: DisposableStore) => void): IDisposable;
|
|
77
|
+
export declare function runOnChangeWithCancellationToken<T, TChange>(observable: IObservableWithChange<T, TChange>, cb: (value: T, previousValue: undefined | T, deltas: RemoveUndefined<TChange>[], token: CancellationToken) => Promise<void>): IDisposable;
|
|
76
78
|
export {};
|
|
@@ -8,6 +8,7 @@ import { Event } from '../event.js';
|
|
|
8
8
|
import { toDisposable, DisposableStore } from '../lifecycle.js';
|
|
9
9
|
import { derivedOpts, derived } from './derived.js';
|
|
10
10
|
import { getLogger } from './logging/logging.js';
|
|
11
|
+
import { cancelOnDispose } from '../cancellation.js';
|
|
11
12
|
|
|
12
13
|
function constObservable(value) {
|
|
13
14
|
return ( new ConstObservable(value));
|
|
@@ -441,17 +442,19 @@ function derivedConstOnceDefined(owner, fn) {
|
|
|
441
442
|
function runOnChange(observable, cb) {
|
|
442
443
|
let _previousValue;
|
|
443
444
|
return autorunWithStoreHandleChanges({
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
445
|
+
changeTracker: {
|
|
446
|
+
createChangeSummary: () => ({ deltas: [], didChange: false }),
|
|
447
|
+
handleChange: (context, changeSummary) => {
|
|
448
|
+
if (context.didChange(observable)) {
|
|
449
|
+
const e = context.change;
|
|
450
|
+
if (e !== undefined) {
|
|
451
|
+
changeSummary.deltas.push(e);
|
|
452
|
+
}
|
|
453
|
+
changeSummary.didChange = true;
|
|
450
454
|
}
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
},
|
|
455
|
+
return true;
|
|
456
|
+
},
|
|
457
|
+
}
|
|
455
458
|
}, (reader, changeSummary) => {
|
|
456
459
|
const value = observable.read(reader);
|
|
457
460
|
const previousValue = _previousValue;
|
|
@@ -474,5 +477,10 @@ function runOnChangeWithStore(observable, cb) {
|
|
|
474
477
|
}
|
|
475
478
|
};
|
|
476
479
|
}
|
|
480
|
+
function runOnChangeWithCancellationToken(observable, cb) {
|
|
481
|
+
return runOnChangeWithStore(observable, (value, previousValue, deltas, store) => {
|
|
482
|
+
cb(value, previousValue, deltas, cancelOnDispose(store));
|
|
483
|
+
});
|
|
484
|
+
}
|
|
477
485
|
|
|
478
|
-
export { FromEventObservable, KeepAliveObserver, ValueWithChangeEventFromObservable, constObservable, debouncedObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithStore, wasEventTriggeredRecently };
|
|
486
|
+
export { FromEventObservable, KeepAliveObserver, ValueWithChangeEventFromObservable, constObservable, debouncedObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithCancellationToken, runOnChangeWithStore, wasEventTriggeredRecently };
|
|
@@ -177,6 +177,10 @@ export interface IProductConfiguration {
|
|
|
177
177
|
readonly extensionVirtualWorkspacesSupport?: {
|
|
178
178
|
readonly [extensionId: string]: ExtensionVirtualWorkspaceSupport;
|
|
179
179
|
};
|
|
180
|
+
readonly extensionProperties: IStringDictionary<{
|
|
181
|
+
readonly hasPrereleaseVersion?: boolean;
|
|
182
|
+
readonly excludeVersionRange?: string;
|
|
183
|
+
}>;
|
|
180
184
|
readonly msftInternalDomains?: string[];
|
|
181
185
|
readonly linkProtectionTrustedDomains?: readonly string[];
|
|
182
186
|
readonly defaultAccount?: {
|
|
@@ -309,6 +313,7 @@ export interface IDefaultChatAgent {
|
|
|
309
313
|
readonly publicCodeMatchesUrl: string;
|
|
310
314
|
readonly manageSettingsUrl: string;
|
|
311
315
|
readonly managePlanUrl: string;
|
|
316
|
+
readonly manageOverageUrl: string;
|
|
312
317
|
readonly upgradePlanUrl: string;
|
|
313
318
|
readonly providerId: string;
|
|
314
319
|
readonly providerName: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ISSEEvent {
|
|
2
|
+
type: string;
|
|
3
|
+
data: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
retry?: number;
|
|
6
|
+
}
|
|
7
|
+
export type SSEEventHandler = (event: ISSEEvent) => void;
|
|
8
|
+
export declare class SSEParser {
|
|
9
|
+
private dataBuffer;
|
|
10
|
+
private eventTypeBuffer;
|
|
11
|
+
private currentEventId?;
|
|
12
|
+
private lastEventIdBuffer?;
|
|
13
|
+
private reconnectionTime?;
|
|
14
|
+
private buffer;
|
|
15
|
+
private endedOnCR;
|
|
16
|
+
private readonly onEventHandler;
|
|
17
|
+
private readonly decoder;
|
|
18
|
+
constructor(onEvent: SSEEventHandler);
|
|
19
|
+
getLastEventId(): string | undefined;
|
|
20
|
+
getReconnectionTime(): number | undefined;
|
|
21
|
+
feed(chunk: Uint8Array): void;
|
|
22
|
+
private processLine;
|
|
23
|
+
private processField;
|
|
24
|
+
private dispatchEvent;
|
|
25
|
+
reset(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var Chr;
|
|
4
|
+
(function (Chr) {
|
|
5
|
+
Chr[Chr["CR"] = 13] = "CR";
|
|
6
|
+
Chr[Chr["LF"] = 10] = "LF";
|
|
7
|
+
Chr[Chr["COLON"] = 58] = "COLON";
|
|
8
|
+
Chr[Chr["SPACE"] = 32] = "SPACE";
|
|
9
|
+
})(Chr || (Chr = {}));
|
|
10
|
+
class SSEParser {
|
|
11
|
+
constructor(onEvent) {
|
|
12
|
+
this.dataBuffer = '';
|
|
13
|
+
this.eventTypeBuffer = '';
|
|
14
|
+
this.buffer = [];
|
|
15
|
+
this.endedOnCR = false;
|
|
16
|
+
this.onEventHandler = onEvent;
|
|
17
|
+
this.decoder = ( new TextDecoder('utf-8'));
|
|
18
|
+
}
|
|
19
|
+
getLastEventId() {
|
|
20
|
+
return this.lastEventIdBuffer;
|
|
21
|
+
}
|
|
22
|
+
getReconnectionTime() {
|
|
23
|
+
return this.reconnectionTime;
|
|
24
|
+
}
|
|
25
|
+
feed(chunk) {
|
|
26
|
+
if (chunk.length === 0) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let offset = 0;
|
|
30
|
+
if (this.endedOnCR && chunk[0] === Chr.LF) {
|
|
31
|
+
offset++;
|
|
32
|
+
}
|
|
33
|
+
this.endedOnCR = false;
|
|
34
|
+
while (offset < chunk.length) {
|
|
35
|
+
const indexCR = chunk.indexOf(Chr.CR, offset);
|
|
36
|
+
const indexLF = chunk.indexOf(Chr.LF, offset);
|
|
37
|
+
const index = indexCR === -1 ? indexLF : (indexLF === -1 ? indexCR : Math.min(indexCR, indexLF));
|
|
38
|
+
if (index === -1) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
let str = '';
|
|
42
|
+
for (const buf of this.buffer) {
|
|
43
|
+
str += this.decoder.decode(buf, { stream: true });
|
|
44
|
+
}
|
|
45
|
+
str += this.decoder.decode(chunk.subarray(offset, index));
|
|
46
|
+
this.processLine(str);
|
|
47
|
+
this.buffer.length = 0;
|
|
48
|
+
offset = index + (chunk[index] === Chr.CR && chunk[index + 1] === Chr.LF ? 2 : 1);
|
|
49
|
+
}
|
|
50
|
+
if (offset < chunk.length) {
|
|
51
|
+
this.buffer.push(chunk.subarray(offset));
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.endedOnCR = chunk[chunk.length - 1] === Chr.CR;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
processLine(line) {
|
|
58
|
+
if (!line.length) {
|
|
59
|
+
this.dispatchEvent();
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (line.startsWith(':')) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
let field;
|
|
66
|
+
let value;
|
|
67
|
+
const colonIndex = line.indexOf(':');
|
|
68
|
+
if (colonIndex === -1) {
|
|
69
|
+
field = line;
|
|
70
|
+
value = '';
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
field = line.substring(0, colonIndex);
|
|
74
|
+
value = line.substring(colonIndex + 1);
|
|
75
|
+
if (value.startsWith(' ')) {
|
|
76
|
+
value = value.substring(1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.processField(field, value);
|
|
80
|
+
}
|
|
81
|
+
processField(field, value) {
|
|
82
|
+
switch (field) {
|
|
83
|
+
case 'event':
|
|
84
|
+
this.eventTypeBuffer = value;
|
|
85
|
+
break;
|
|
86
|
+
case 'data':
|
|
87
|
+
this.dataBuffer += value;
|
|
88
|
+
this.dataBuffer += '\n';
|
|
89
|
+
break;
|
|
90
|
+
case 'id':
|
|
91
|
+
if (!value.includes('\0')) {
|
|
92
|
+
this.currentEventId = this.lastEventIdBuffer = value;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.currentEventId = undefined;
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
case 'retry':
|
|
99
|
+
if (/^\d+$/.test(value)) {
|
|
100
|
+
this.reconnectionTime = parseInt(value, 10);
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
dispatchEvent() {
|
|
106
|
+
if (this.dataBuffer === '') {
|
|
107
|
+
this.dataBuffer = '';
|
|
108
|
+
this.eventTypeBuffer = '';
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (this.dataBuffer.endsWith('\n')) {
|
|
112
|
+
this.dataBuffer = this.dataBuffer.substring(0, this.dataBuffer.length - 1);
|
|
113
|
+
}
|
|
114
|
+
const event = {
|
|
115
|
+
type: this.eventTypeBuffer || 'message',
|
|
116
|
+
data: this.dataBuffer,
|
|
117
|
+
};
|
|
118
|
+
if (this.currentEventId !== undefined) {
|
|
119
|
+
event.id = this.currentEventId;
|
|
120
|
+
}
|
|
121
|
+
if (this.reconnectionTime !== undefined) {
|
|
122
|
+
event.retry = this.reconnectionTime;
|
|
123
|
+
}
|
|
124
|
+
this.onEventHandler(event);
|
|
125
|
+
this.reset();
|
|
126
|
+
}
|
|
127
|
+
reset() {
|
|
128
|
+
this.dataBuffer = '';
|
|
129
|
+
this.eventTypeBuffer = '';
|
|
130
|
+
this.currentEventId = undefined;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { SSEParser };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const performanceNow = globalThis.performance.now.bind(globalThis.performance);
|
|
4
4
|
class StopWatch {
|
|
5
5
|
static create(highResolution) {
|
|
6
6
|
return ( new StopWatch(highResolution));
|
|
7
7
|
}
|
|
8
8
|
constructor(highResolution) {
|
|
9
|
-
this._now =
|
|
9
|
+
this._now = highResolution === false ? Date.now : performanceNow;
|
|
10
10
|
this._startTime = this._now();
|
|
11
11
|
this._stopTime = -1;
|
|
12
12
|
}
|
|
@@ -24,6 +24,7 @@ export declare function regExpLeadsToEndlessLoop(regexp: RegExp): boolean;
|
|
|
24
24
|
export declare function joinStrings(items: (string | undefined | null | false)[], separator: string): string;
|
|
25
25
|
export declare function splitLines(str: string): string[];
|
|
26
26
|
export declare function splitLinesIncludeSeparators(str: string): string[];
|
|
27
|
+
export declare function indexOfPattern(str: string, re: RegExp): number;
|
|
27
28
|
export declare function firstNonWhitespaceIndex(str: string): number;
|
|
28
29
|
export declare function getLeadingWhitespace(str: string, start?: number, end?: number): string;
|
|
29
30
|
export declare function lastNonWhitespaceIndex(str: string, startIndex?: number): number;
|
|
@@ -165,6 +165,13 @@ function joinStrings(items, separator) {
|
|
|
165
165
|
function splitLines(str) {
|
|
166
166
|
return str.split(/\r\n|\r|\n/);
|
|
167
167
|
}
|
|
168
|
+
function indexOfPattern(str, re) {
|
|
169
|
+
const match = re.exec(str);
|
|
170
|
+
if (match) {
|
|
171
|
+
return match.index;
|
|
172
|
+
}
|
|
173
|
+
return -1;
|
|
174
|
+
}
|
|
168
175
|
function firstNonWhitespaceIndex(str) {
|
|
169
176
|
for (let i = 0, len = str.length; i < len; i++) {
|
|
170
177
|
const chCode = str.charCodeAt(i);
|
|
@@ -470,24 +477,6 @@ function lcut(text, n, prefix = '') {
|
|
|
470
477
|
}
|
|
471
478
|
return prefix + trimmed.substring(i).trimStart();
|
|
472
479
|
}
|
|
473
|
-
function rcut(text, n, suffix = '') {
|
|
474
|
-
const trimmed = text.trimEnd();
|
|
475
|
-
if (trimmed.length < n) {
|
|
476
|
-
return trimmed;
|
|
477
|
-
}
|
|
478
|
-
const parts = text.split(/\b/);
|
|
479
|
-
let result = '';
|
|
480
|
-
for (const part of parts) {
|
|
481
|
-
if (result.length > 0 && result.length + part.length > n) {
|
|
482
|
-
break;
|
|
483
|
-
}
|
|
484
|
-
result += part;
|
|
485
|
-
}
|
|
486
|
-
if (result === trimmed) {
|
|
487
|
-
return result;
|
|
488
|
-
}
|
|
489
|
-
return result.trim().replace(/b$/, '') + suffix;
|
|
490
|
-
}
|
|
491
480
|
const CSI_SEQUENCE = /(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/;
|
|
492
481
|
const OSC_SEQUENCE = /(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/;
|
|
493
482
|
const ESC_SEQUENCE = /\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/;
|
|
@@ -836,4 +825,4 @@ class InvisibleCharacters {
|
|
|
836
825
|
}
|
|
837
826
|
}
|
|
838
827
|
|
|
839
|
-
export { AmbiguousCharacters, CodePointIterator, GraphemeBreakType, GraphemeIterator, InvisibleCharacters, UNUSUAL_LINE_TERMINATORS, UTF8_BOM_CHARACTER, commonPrefixLength, commonSuffixLength, compare, compareIgnoreCase, compareSubstring, compareSubstringIgnoreCase, computeCodePoint, containsRTL, containsUnusualLineTerminators, containsUppercaseCharacter, convertSimple2RegExpPattern, count, createRegExp, equalsIgnoreCase, escape, escapeRegExpCharacters, firstNonWhitespaceIndex, forAnsiStringParts, format, format2, fuzzyContains, getCharContainingOffset, getIndentationLength, getLeadingWhitespace, getLeftDeleteOffset, getNLines, getNextCodePoint, htmlAttributeEncodeValue, isAsciiDigit, isBasicASCII, isEmojiImprecise, isFalsyOrWhitespace, isFullWidthCharacter, isHighSurrogate, isLowSurrogate, isLowerAsciiLetter, isUpperAsciiLetter, joinStrings, lastNonWhitespaceIndex, lcut, ltrim, nextCharLength, noBreakWhitespace, prevCharLength,
|
|
828
|
+
export { AmbiguousCharacters, CodePointIterator, GraphemeBreakType, GraphemeIterator, InvisibleCharacters, UNUSUAL_LINE_TERMINATORS, UTF8_BOM_CHARACTER, commonPrefixLength, commonSuffixLength, compare, compareIgnoreCase, compareSubstring, compareSubstringIgnoreCase, computeCodePoint, containsRTL, containsUnusualLineTerminators, containsUppercaseCharacter, convertSimple2RegExpPattern, count, createRegExp, equalsIgnoreCase, escape, escapeRegExpCharacters, firstNonWhitespaceIndex, forAnsiStringParts, format, format2, fuzzyContains, getCharContainingOffset, getIndentationLength, getLeadingWhitespace, getLeftDeleteOffset, getNLines, getNextCodePoint, htmlAttributeEncodeValue, indexOfPattern, isAsciiDigit, isBasicASCII, isEmojiImprecise, isFalsyOrWhitespace, isFullWidthCharacter, isHighSurrogate, isLowSurrogate, isLowerAsciiLetter, isUpperAsciiLetter, joinStrings, lastNonWhitespaceIndex, lcut, ltrim, nextCharLength, noBreakWhitespace, prevCharLength, regExpLeadsToEndlessLoop, removeAnsiEscapeCodes, removeAnsiEscapeCodesFromPrompt, rtrim, singleLetterHash, splitLines, startsWithIgnoreCase, startsWithUTF8BOM, stripWildcards, trim, truncate, truncateMiddle, uppercaseFirstLetter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { shuffle } from './arrays.js';
|
|
3
|
+
import { assert } from './assert.js';
|
|
3
4
|
import { CharCode } from './charCode.js';
|
|
4
5
|
import { compareSubstring, compareSubstringIgnoreCase, compareIgnoreCase, compare } from './strings.js';
|
|
5
6
|
|
|
@@ -223,6 +224,11 @@ class Undef {
|
|
|
223
224
|
class TernarySearchTreeNode {
|
|
224
225
|
constructor() {
|
|
225
226
|
this.height = 1;
|
|
227
|
+
this.value = undefined;
|
|
228
|
+
this.key = undefined;
|
|
229
|
+
this.left = undefined;
|
|
230
|
+
this.mid = undefined;
|
|
231
|
+
this.right = undefined;
|
|
226
232
|
}
|
|
227
233
|
isEmpty() {
|
|
228
234
|
return !this.left && !this.mid && !this.right && this.value === undefined;
|
|
@@ -456,13 +462,44 @@ class TernarySearchTree {
|
|
|
456
462
|
}
|
|
457
463
|
if (!node.mid && !node.value) {
|
|
458
464
|
if (node.left && node.right) {
|
|
459
|
-
const
|
|
465
|
+
const stack2 = [[Dir.Right, node]];
|
|
466
|
+
const min = this._min(node.right, stack2);
|
|
460
467
|
if (min.key) {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
node.
|
|
464
|
-
|
|
465
|
-
|
|
468
|
+
node.key = min.key;
|
|
469
|
+
node.value = min.value;
|
|
470
|
+
node.segment = min.segment;
|
|
471
|
+
const newChild = min.right;
|
|
472
|
+
if (stack2.length > 1) {
|
|
473
|
+
const [dir, parent] = stack2[stack2.length - 1];
|
|
474
|
+
switch (dir) {
|
|
475
|
+
case Dir.Left:
|
|
476
|
+
parent.left = newChild;
|
|
477
|
+
break;
|
|
478
|
+
case Dir.Mid: assert(false);
|
|
479
|
+
case Dir.Right: assert(false);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
node.right = newChild;
|
|
484
|
+
}
|
|
485
|
+
const newChild2 = this._balanceByStack(stack2);
|
|
486
|
+
if (stack.length > 0) {
|
|
487
|
+
const [dir, parent] = stack[stack.length - 1];
|
|
488
|
+
switch (dir) {
|
|
489
|
+
case Dir.Left:
|
|
490
|
+
parent.left = newChild2;
|
|
491
|
+
break;
|
|
492
|
+
case Dir.Mid:
|
|
493
|
+
parent.mid = newChild2;
|
|
494
|
+
break;
|
|
495
|
+
case Dir.Right:
|
|
496
|
+
parent.right = newChild2;
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
this._root = newChild2;
|
|
502
|
+
}
|
|
466
503
|
}
|
|
467
504
|
}
|
|
468
505
|
else {
|
|
@@ -486,6 +523,16 @@ class TernarySearchTree {
|
|
|
486
523
|
}
|
|
487
524
|
}
|
|
488
525
|
}
|
|
526
|
+
this._root = this._balanceByStack(stack) ?? this._root;
|
|
527
|
+
}
|
|
528
|
+
_min(node, stack) {
|
|
529
|
+
while (node.left) {
|
|
530
|
+
stack.push([Dir.Left, node]);
|
|
531
|
+
node = node.left;
|
|
532
|
+
}
|
|
533
|
+
return node;
|
|
534
|
+
}
|
|
535
|
+
_balanceByStack(stack) {
|
|
489
536
|
for (let i = stack.length - 1; i >= 0; i--) {
|
|
490
537
|
const node = stack[i][1];
|
|
491
538
|
node.updateHeight();
|
|
@@ -522,15 +569,10 @@ class TernarySearchTree {
|
|
|
522
569
|
}
|
|
523
570
|
}
|
|
524
571
|
else {
|
|
525
|
-
|
|
572
|
+
return stack[0][1];
|
|
526
573
|
}
|
|
527
574
|
}
|
|
528
|
-
|
|
529
|
-
_min(node) {
|
|
530
|
-
while (node.left) {
|
|
531
|
-
node = node.left;
|
|
532
|
-
}
|
|
533
|
-
return node;
|
|
575
|
+
return undefined;
|
|
534
576
|
}
|
|
535
577
|
findSubstr(key) {
|
|
536
578
|
const iter = this._iter.reset(key);
|
|
@@ -52,6 +52,7 @@ export interface IEnvConfiguration {
|
|
|
52
52
|
emptySelectionClipboard: boolean;
|
|
53
53
|
pixelRatio: number;
|
|
54
54
|
accessibilitySupport: AccessibilitySupport;
|
|
55
|
+
editContextSupported: boolean;
|
|
55
56
|
}
|
|
56
57
|
declare class ValidatedEditorOptions implements IValidatedEditorOptions {
|
|
57
58
|
private readonly _values;
|
|
@@ -80,7 +80,8 @@ let EditorConfiguration = class EditorConfiguration extends Disposable {
|
|
|
80
80
|
tabFocusMode: TabFocus.getTabFocusMode(),
|
|
81
81
|
inputMode: InputMode.getInputMode(),
|
|
82
82
|
accessibilitySupport: partialEnv.accessibilitySupport,
|
|
83
|
-
glyphMarginDecorationLaneCount: this._glyphMarginDecorationLaneCount
|
|
83
|
+
glyphMarginDecorationLaneCount: this._glyphMarginDecorationLaneCount,
|
|
84
|
+
editContextSupported: partialEnv.editContextSupported
|
|
84
85
|
};
|
|
85
86
|
return EditorOptionsUtil.computeOptions(this._validatedOptions, env);
|
|
86
87
|
}
|
|
@@ -91,6 +92,7 @@ let EditorConfiguration = class EditorConfiguration extends Disposable {
|
|
|
91
92
|
outerHeight: this._containerObserver.getHeight(),
|
|
92
93
|
emptySelectionClipboard: isWebKit || isFirefox,
|
|
93
94
|
pixelRatio: PixelRatio.getInstance(getWindowById(this._targetWindowId, true).window).value,
|
|
95
|
+
editContextSupported: typeof globalThis.EditContext === 'function',
|
|
94
96
|
accessibilitySupport: (this._accessibilityService.isScreenReaderOptimized()
|
|
95
97
|
? AccessibilitySupport.Enabled
|
|
96
98
|
: this._accessibilityService.getAccessibilitySupport())
|