@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CancellationTokenSource } from './cancellation.js';
|
|
3
3
|
import { CancellationError, BugIndicatingError } from './errors.js';
|
|
4
4
|
import { Emitter, Event } from './event.js';
|
|
5
|
-
import { toDisposable, DisposableMap } from './lifecycle.js';
|
|
5
|
+
import { isDisposable, toDisposable, DisposableMap } from './lifecycle.js';
|
|
6
6
|
import { extUri } from './resources.js';
|
|
7
7
|
import { setTimeout0 } from './platform.js';
|
|
8
8
|
import { MicrotaskDelay } from './symbols.js';
|
|
@@ -14,15 +14,22 @@ function isThenable(obj) {
|
|
|
14
14
|
function createCancelablePromise(callback) {
|
|
15
15
|
const source = ( new CancellationTokenSource());
|
|
16
16
|
const thenable = callback(source.token);
|
|
17
|
+
let isCancelled = false;
|
|
17
18
|
const promise = ( new Promise((resolve, reject) => {
|
|
18
19
|
const subscription = source.token.onCancellationRequested(() => {
|
|
20
|
+
isCancelled = true;
|
|
19
21
|
subscription.dispose();
|
|
20
22
|
reject(( new CancellationError()));
|
|
21
23
|
});
|
|
22
24
|
Promise.resolve(thenable).then(value => {
|
|
23
25
|
subscription.dispose();
|
|
24
26
|
source.dispose();
|
|
25
|
-
|
|
27
|
+
if (!isCancelled) {
|
|
28
|
+
resolve(value);
|
|
29
|
+
}
|
|
30
|
+
else if (isDisposable(value)) {
|
|
31
|
+
value.dispose();
|
|
32
|
+
}
|
|
26
33
|
}, err => {
|
|
27
34
|
subscription.dispose();
|
|
28
35
|
source.dispose();
|
|
@@ -642,4 +642,9 @@ export declare const Codicon: {
|
|
|
642
642
|
readonly flag: ThemeIcon;
|
|
643
643
|
readonly lightbulbEmpty: ThemeIcon;
|
|
644
644
|
readonly symbolMethodArrow: ThemeIcon;
|
|
645
|
+
readonly copilotUnavailable: ThemeIcon;
|
|
646
|
+
readonly repoPinned: ThemeIcon;
|
|
647
|
+
readonly keyboardTabAbove: ThemeIcon;
|
|
648
|
+
readonly keyboardTabBelow: ThemeIcon;
|
|
649
|
+
readonly gitPullRequestDone: ThemeIcon;
|
|
645
650
|
};
|
|
@@ -582,4 +582,9 @@ export declare const codiconsLibrary: {
|
|
|
582
582
|
readonly flag: import("./themables.js").ThemeIcon;
|
|
583
583
|
readonly lightbulbEmpty: import("./themables.js").ThemeIcon;
|
|
584
584
|
readonly symbolMethodArrow: import("./themables.js").ThemeIcon;
|
|
585
|
+
readonly copilotUnavailable: import("./themables.js").ThemeIcon;
|
|
586
|
+
readonly repoPinned: import("./themables.js").ThemeIcon;
|
|
587
|
+
readonly keyboardTabAbove: import("./themables.js").ThemeIcon;
|
|
588
|
+
readonly keyboardTabBelow: import("./themables.js").ThemeIcon;
|
|
589
|
+
readonly gitPullRequestDone: import("./themables.js").ThemeIcon;
|
|
585
590
|
};
|
|
@@ -585,6 +585,11 @@ const codiconsLibrary = {
|
|
|
585
585
|
flag: register('flag', 0xec3f),
|
|
586
586
|
lightbulbEmpty: register('lightbulb-empty', 0xec40),
|
|
587
587
|
symbolMethodArrow: register('symbol-method-arrow', 0xec41),
|
|
588
|
+
copilotUnavailable: register('copilot-unavailable', 0xec42),
|
|
589
|
+
repoPinned: register('repo-pinned', 0xec43),
|
|
590
|
+
keyboardTabAbove: register('keyboard-tab-above', 0xec44),
|
|
591
|
+
keyboardTabBelow: register('keyboard-tab-below', 0xec45),
|
|
592
|
+
gitPullRequestDone: register('git-pull-request-done', 0xec46),
|
|
588
593
|
};
|
|
589
594
|
|
|
590
595
|
export { codiconsLibrary };
|
|
@@ -57,6 +57,7 @@ export declare class Color {
|
|
|
57
57
|
isOpaque(): boolean;
|
|
58
58
|
opposite(): Color;
|
|
59
59
|
blend(c: Color): Color;
|
|
60
|
+
mix(color: Color, factor?: number): Color;
|
|
60
61
|
makeOpaque(opaqueBackground: Color): Color;
|
|
61
62
|
flatten(...backgrounds: Color[]): Color;
|
|
62
63
|
private static _flatten;
|
|
@@ -325,6 +325,16 @@ class Color {
|
|
|
325
325
|
const b = this.rgba.b * thisA / a + rgba.b * colorA * (1 - thisA) / a;
|
|
326
326
|
return ( new Color(( new RGBA(r, g, b, a))));
|
|
327
327
|
}
|
|
328
|
+
mix(color, factor = 0.5) {
|
|
329
|
+
const normalize = Math.min(Math.max(factor, 0), 1);
|
|
330
|
+
const thisRGBA = this.rgba;
|
|
331
|
+
const otherRGBA = color.rgba;
|
|
332
|
+
const r = thisRGBA.r + (otherRGBA.r - thisRGBA.r) * normalize;
|
|
333
|
+
const g = thisRGBA.g + (otherRGBA.g - thisRGBA.g) * normalize;
|
|
334
|
+
const b = thisRGBA.b + (otherRGBA.b - thisRGBA.b) * normalize;
|
|
335
|
+
const a = thisRGBA.a + (otherRGBA.a - thisRGBA.a) * normalize;
|
|
336
|
+
return ( new Color(( new RGBA(r, g, b, a))));
|
|
337
|
+
}
|
|
328
338
|
makeOpaque(opaqueBackground) {
|
|
329
339
|
if (this.isOpaque() || opaqueBackground.rgba.a !== 1) {
|
|
330
340
|
return this;
|
|
@@ -2,12 +2,12 @@ export declare function compareFileNames(one: string | null, other: string | nul
|
|
|
2
2
|
export declare function compareFileNamesDefault(one: string | null, other: string | null): number;
|
|
3
3
|
export declare function compareFileNamesUpper(one: string | null, other: string | null): number;
|
|
4
4
|
export declare function compareFileNamesLower(one: string | null, other: string | null): number;
|
|
5
|
-
export declare function compareFileNamesUnicode(one: string | null, other: string | null):
|
|
5
|
+
export declare function compareFileNamesUnicode(one: string | null, other: string | null): 1 | 0 | -1;
|
|
6
6
|
export declare function compareFileExtensions(one: string | null, other: string | null): number;
|
|
7
7
|
export declare function compareFileExtensionsDefault(one: string | null, other: string | null): number;
|
|
8
8
|
export declare function compareFileExtensionsUpper(one: string | null, other: string | null): number;
|
|
9
9
|
export declare function compareFileExtensionsLower(one: string | null, other: string | null): number;
|
|
10
|
-
export declare function compareFileExtensionsUnicode(one: string | null, other: string | null):
|
|
10
|
+
export declare function compareFileExtensionsUnicode(one: string | null, other: string | null): 1 | 0 | -1;
|
|
11
11
|
export declare function comparePaths(one: string, other: string, caseSensitive?: boolean): number;
|
|
12
12
|
export declare function compareAnything(one: string, other: string, lookFor: string): number;
|
|
13
13
|
export declare function compareByPrefix(one: string, other: string, lookFor: string): number;
|
|
@@ -4,4 +4,4 @@ export interface IDebounceReducer<T> {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function debounce<T>(delay: number, reducer?: IDebounceReducer<T>, initialValueProvider?: () => T): MethodDecorator;
|
|
6
6
|
export declare function throttle<T>(delay: number, reducer?: IDebounceReducer<T>, initialValueProvider?: () => T): MethodDecorator;
|
|
7
|
-
export { cancelPreviousCalls } from "@codingame/monaco-vscode-
|
|
7
|
+
export { cancelPreviousCalls } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/base/common/decorators/cancelPreviousCalls";
|
|
@@ -17,6 +17,9 @@ export type ParsedExpression = (path: string, basename?: string, hasSibling?: (n
|
|
|
17
17
|
interface IGlobOptions {
|
|
18
18
|
trimForExclusions?: boolean;
|
|
19
19
|
}
|
|
20
|
+
declare const FALSE: () => boolean;
|
|
21
|
+
declare const NULL: () => string | null;
|
|
22
|
+
export declare const isEmptyPattern: (pattern: ParsedPattern | ParsedExpression) => pattern is (typeof FALSE | typeof NULL);
|
|
20
23
|
export declare function match(pattern: string | IRelativePattern, path: string): boolean;
|
|
21
24
|
export declare function match(expression: IExpression, path: string, hasSibling?: (name: string) => boolean): string;
|
|
22
25
|
export declare function parse(pattern: string | IRelativePattern, options?: IGlobOptions): ParsedPattern;
|
|
@@ -164,6 +164,15 @@ const FALSE = function () {
|
|
|
164
164
|
const NULL = function () {
|
|
165
165
|
return null;
|
|
166
166
|
};
|
|
167
|
+
const isEmptyPattern = (pattern) => {
|
|
168
|
+
if (pattern === FALSE) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
if (pattern === NULL) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
return false;
|
|
175
|
+
};
|
|
167
176
|
function parsePattern(arg1, options) {
|
|
168
177
|
if (!arg1) {
|
|
169
178
|
return NULL;
|
|
@@ -514,4 +523,4 @@ function aggregateBasenameMatches(parsedPatterns, result) {
|
|
|
514
523
|
return aggregatedPatterns;
|
|
515
524
|
}
|
|
516
525
|
|
|
517
|
-
export { GLOBSTAR, GLOB_SPLIT, getEmptyExpression, isRelativePattern, match, parse, splitGlobAware };
|
|
526
|
+
export { GLOBSTAR, GLOB_SPLIT, getEmptyExpression, isEmptyPattern, isRelativePattern, match, parse, splitGlobAware };
|
|
@@ -25,6 +25,7 @@ var MarshalledId;
|
|
|
25
25
|
MarshalledId[MarshalledId["LanguageModelTextPart"] = 21] = "LanguageModelTextPart";
|
|
26
26
|
MarshalledId[MarshalledId["LanguageModelPromptTsxPart"] = 22] = "LanguageModelPromptTsxPart";
|
|
27
27
|
MarshalledId[MarshalledId["LanguageModelDataPart"] = 23] = "LanguageModelDataPart";
|
|
28
|
+
MarshalledId[MarshalledId["LanguageModelExtraDataPart"] = 24] = "LanguageModelExtraDataPart";
|
|
28
29
|
})(MarshalledId || (MarshalledId = {}));
|
|
29
30
|
|
|
30
31
|
export { MarshalledId };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IObservable, IObservableWithChange, IObserver, IReader } from "./base.js";
|
|
2
2
|
import { DebugNameData, IDebugNameData } from "./debugName.js";
|
|
3
3
|
import { DisposableStore, IDisposable } from "./commonFacade/deps.js";
|
|
4
|
+
import { IChangeTracker } from "./changeTracker.js";
|
|
4
5
|
export declare function autorun(fn: (reader: IReader) => void): IDisposable;
|
|
5
6
|
export declare function autorunOpts(options: IDebugNameData & {}, fn: (reader: IReader) => void): IDisposable;
|
|
6
7
|
export declare function autorunHandleChanges<TChangeSummary>(options: IDebugNameData & {
|
|
7
|
-
|
|
8
|
-
handleChange: (context: IChangeContext, changeSummary: TChangeSummary) => boolean;
|
|
8
|
+
changeTracker: IChangeTracker<TChangeSummary>;
|
|
9
9
|
}, fn: (reader: IReader, changeSummary: TChangeSummary) => void): IDisposable;
|
|
10
10
|
export declare function autorunWithStoreHandleChanges<TChangeSummary>(options: IDebugNameData & {
|
|
11
|
-
|
|
12
|
-
handleChange: (context: IChangeContext, changeSummary: TChangeSummary) => boolean;
|
|
11
|
+
changeTracker: IChangeTracker<TChangeSummary>;
|
|
13
12
|
}, fn: (reader: IReader, changeSummary: TChangeSummary, store: DisposableStore) => void): IDisposable;
|
|
14
13
|
export declare function autorunWithStore(fn: (reader: IReader, store: DisposableStore) => void): IDisposable;
|
|
15
14
|
export declare function autorunDelta<T>(observable: IObservable<T>, handler: (args: {
|
|
@@ -28,8 +27,7 @@ export declare enum AutorunState {
|
|
|
28
27
|
export declare class AutorunObserver<TChangeSummary = any> implements IObserver, IReader, IDisposable {
|
|
29
28
|
readonly _debugNameData: DebugNameData;
|
|
30
29
|
readonly _runFn: (reader: IReader, changeSummary: TChangeSummary) => void;
|
|
31
|
-
private readonly
|
|
32
|
-
private readonly _handleChange;
|
|
30
|
+
private readonly _changeTracker;
|
|
33
31
|
private _state;
|
|
34
32
|
private _updateCount;
|
|
35
33
|
private _disposed;
|
|
@@ -38,7 +36,7 @@ export declare class AutorunObserver<TChangeSummary = any> implements IObserver,
|
|
|
38
36
|
private _changeSummary;
|
|
39
37
|
private _isRunning;
|
|
40
38
|
get debugName(): string;
|
|
41
|
-
constructor(_debugNameData: DebugNameData, _runFn: (reader: IReader, changeSummary: TChangeSummary) => void,
|
|
39
|
+
constructor(_debugNameData: DebugNameData, _runFn: (reader: IReader, changeSummary: TChangeSummary) => void, _changeTracker: IChangeTracker<TChangeSummary> | undefined);
|
|
42
40
|
dispose(): void;
|
|
43
41
|
private _run;
|
|
44
42
|
toString(): string;
|
|
@@ -8,13 +8,13 @@ import { DisposableStore, toDisposable, trackDisposable, markAsDisposed } from '
|
|
|
8
8
|
import { getLogger } from './logging/logging.js';
|
|
9
9
|
|
|
10
10
|
function autorun(fn) {
|
|
11
|
-
return ( new AutorunObserver(( new DebugNameData(undefined, undefined, fn)), fn, undefined
|
|
11
|
+
return ( new AutorunObserver(( new DebugNameData(undefined, undefined, fn)), fn, undefined));
|
|
12
12
|
}
|
|
13
13
|
function autorunOpts(options, fn) {
|
|
14
|
-
return ( new AutorunObserver(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn ?? fn)), fn, undefined
|
|
14
|
+
return ( new AutorunObserver(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn ?? fn)), fn, undefined));
|
|
15
15
|
}
|
|
16
16
|
function autorunHandleChanges(options, fn) {
|
|
17
|
-
return ( new AutorunObserver(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn ?? fn)), fn, options.
|
|
17
|
+
return ( new AutorunObserver(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn ?? fn)), fn, options.changeTracker));
|
|
18
18
|
}
|
|
19
19
|
function autorunWithStoreHandleChanges(options, fn) {
|
|
20
20
|
const store = ( new DisposableStore());
|
|
@@ -22,8 +22,7 @@ function autorunWithStoreHandleChanges(options, fn) {
|
|
|
22
22
|
owner: options.owner,
|
|
23
23
|
debugName: options.debugName,
|
|
24
24
|
debugReferenceFn: options.debugReferenceFn ?? fn,
|
|
25
|
-
|
|
26
|
-
handleChange: options.handleChange,
|
|
25
|
+
changeTracker: options.changeTracker,
|
|
27
26
|
}, (reader, changeSummary) => {
|
|
28
27
|
store.clear();
|
|
29
28
|
fn(reader, changeSummary, store);
|
|
@@ -90,23 +89,25 @@ class AutorunObserver {
|
|
|
90
89
|
get debugName() {
|
|
91
90
|
return this._debugNameData.getDebugName(this) ?? '(anonymous)';
|
|
92
91
|
}
|
|
93
|
-
constructor(_debugNameData, _runFn,
|
|
92
|
+
constructor(_debugNameData, _runFn, _changeTracker) {
|
|
94
93
|
this._debugNameData = _debugNameData;
|
|
95
94
|
this._runFn = _runFn;
|
|
96
|
-
this.
|
|
97
|
-
this._handleChange = _handleChange;
|
|
95
|
+
this._changeTracker = _changeTracker;
|
|
98
96
|
this._state = AutorunState.stale;
|
|
99
97
|
this._updateCount = 0;
|
|
100
98
|
this._disposed = false;
|
|
101
99
|
this._dependencies = ( new Set());
|
|
102
100
|
this._dependenciesToBeRemoved = ( new Set());
|
|
103
101
|
this._isRunning = false;
|
|
104
|
-
this._changeSummary = this.createChangeSummary
|
|
102
|
+
this._changeSummary = this._changeTracker?.createChangeSummary(undefined);
|
|
105
103
|
getLogger()?.handleAutorunCreated(this);
|
|
106
104
|
this._run();
|
|
107
105
|
trackDisposable(this);
|
|
108
106
|
}
|
|
109
107
|
dispose() {
|
|
108
|
+
if (this._disposed) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
110
111
|
this._disposed = true;
|
|
111
112
|
for (const o of this._dependencies) {
|
|
112
113
|
o.removeObserver(this);
|
|
@@ -125,8 +126,11 @@ class AutorunObserver {
|
|
|
125
126
|
getLogger()?.handleAutorunStarted(this);
|
|
126
127
|
const changeSummary = this._changeSummary;
|
|
127
128
|
try {
|
|
128
|
-
this._changeSummary = this.createChangeSummary?.();
|
|
129
129
|
this._isRunning = true;
|
|
130
|
+
if (this._changeTracker) {
|
|
131
|
+
this._changeTracker.beforeUpdate?.(this, changeSummary);
|
|
132
|
+
this._changeSummary = this._changeTracker.createChangeSummary(changeSummary);
|
|
133
|
+
}
|
|
130
134
|
this._runFn(this, changeSummary);
|
|
131
135
|
}
|
|
132
136
|
catch (e) {
|
|
@@ -189,7 +193,7 @@ class AutorunObserver {
|
|
|
189
193
|
if (this._isDependency(observable)) {
|
|
190
194
|
getLogger()?.handleAutorunDependencyChanged(this, observable, change);
|
|
191
195
|
try {
|
|
192
|
-
const shouldReact = this.
|
|
196
|
+
const shouldReact = this._changeTracker ? this._changeTracker.handleChange({
|
|
193
197
|
changedObservable: observable,
|
|
194
198
|
change,
|
|
195
199
|
didChange: (o) => o === observable,
|
|
@@ -107,14 +107,4 @@ export declare class DisposableObservableValue<T extends IDisposable | undefined
|
|
|
107
107
|
protected _setValue(newValue: T): void;
|
|
108
108
|
dispose(): void;
|
|
109
109
|
}
|
|
110
|
-
export interface IChangeTracker {
|
|
111
|
-
handleChange(context: IChangeContext): boolean;
|
|
112
|
-
}
|
|
113
|
-
export interface IChangeContext {
|
|
114
|
-
readonly changedObservable: IObservableWithChange<any, any>;
|
|
115
|
-
readonly change: unknown;
|
|
116
|
-
didChange<T, TChange>(observable: IObservableWithChange<T, TChange>): this is {
|
|
117
|
-
change: TChange;
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
110
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IObservableWithChange, IReader } from "./base.js";
|
|
2
|
+
export interface IChangeTracker<TChangeSummary> {
|
|
3
|
+
createChangeSummary(previousChangeSummary: TChangeSummary | undefined): TChangeSummary;
|
|
4
|
+
handleChange(ctx: IChangeContext, change: TChangeSummary): boolean;
|
|
5
|
+
beforeUpdate?(reader: IReader, change: TChangeSummary): void;
|
|
6
|
+
}
|
|
7
|
+
export interface IChangeContext {
|
|
8
|
+
readonly changedObservable: IObservableWithChange<any, any>;
|
|
9
|
+
readonly change: unknown;
|
|
10
|
+
didChange<T, TChange>(observable: IObservableWithChange<T, TChange>): this is {
|
|
11
|
+
change: TChange;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function recordChanges<TObs extends Record<any, IObservableWithChange<any, any>>>(obs: TObs): IChangeTracker<{
|
|
15
|
+
[TKey in keyof TObs]: ReturnType<TObs[TKey]["get"]>;
|
|
16
|
+
} & {
|
|
17
|
+
changes: readonly ({
|
|
18
|
+
[TKey in keyof TObs]: {
|
|
19
|
+
key: TKey;
|
|
20
|
+
change: TObs[TKey]["TChange"];
|
|
21
|
+
};
|
|
22
|
+
}[keyof TObs])[];
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
import { BugIndicatingError } from '../errors.js';
|
|
3
|
+
|
|
4
|
+
function recordChanges(obs) {
|
|
5
|
+
return {
|
|
6
|
+
createChangeSummary: (_previousChangeSummary) => {
|
|
7
|
+
return {
|
|
8
|
+
changes: [],
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
handleChange(ctx, changeSummary) {
|
|
12
|
+
for (const key in obs) {
|
|
13
|
+
if (ctx.didChange(obs[key])) {
|
|
14
|
+
changeSummary.changes.push({ key, change: ctx.change });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return true;
|
|
18
|
+
},
|
|
19
|
+
beforeUpdate(reader, changeSummary) {
|
|
20
|
+
for (const key in obs) {
|
|
21
|
+
if (key === 'changes') {
|
|
22
|
+
throw ( new BugIndicatingError('property name "changes" is reserved for change tracking'));
|
|
23
|
+
}
|
|
24
|
+
changeSummary[key] = obs[key].read(reader);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { recordChanges };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { BaseObservable,
|
|
1
|
+
import { BaseObservable, IObservable, IObservableWithChange, IObserver, IReader, ISettableObservable, ITransaction } from "./base.js";
|
|
2
2
|
import { DebugNameData, DebugOwner, IDebugNameData } from "./debugName.js";
|
|
3
3
|
import { DisposableStore, EqualityComparer, IDisposable } from "./commonFacade/deps.js";
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
import { IChangeTracker } from "./changeTracker.js";
|
|
5
|
+
export interface IDerivedReader<TChange = void> extends IReader {
|
|
6
|
+
reportChange(change: TChange): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function derived<T, TChange = void>(computeFn: (reader: IDerivedReader<TChange>) => T): IObservable<T>;
|
|
9
|
+
export declare function derived<T, TChange = void>(owner: DebugOwner, computeFn: (reader: IDerivedReader<TChange>) => T): IObservable<T>;
|
|
6
10
|
export declare function derivedWithSetter<T>(owner: DebugOwner | undefined, computeFn: (reader: IReader) => T, setter: (value: T, transaction: ITransaction | undefined) => void): ISettableObservable<T>;
|
|
7
11
|
export declare function derivedOpts<T>(options: IDebugNameData & {
|
|
8
12
|
equalsFn?: EqualityComparer<T>;
|
|
9
13
|
onLastObserverRemoved?: (() => void);
|
|
10
14
|
}, computeFn: (reader: IReader) => T): IObservable<T>;
|
|
11
15
|
export declare function derivedHandleChanges<T, TChangeSummary>(options: IDebugNameData & {
|
|
12
|
-
|
|
13
|
-
handleChange: (context: IChangeContext, changeSummary: TChangeSummary) => boolean;
|
|
16
|
+
changeTracker: IChangeTracker<TChangeSummary>;
|
|
14
17
|
equalityComparer?: EqualityComparer<T>;
|
|
15
18
|
}, computeFn: (reader: IReader, changeSummary: TChangeSummary) => T): IObservable<T>;
|
|
16
19
|
export declare function derivedWithStore<T>(computeFn: (reader: IReader, store: DisposableStore) => T): IObservable<T>;
|
|
@@ -23,11 +26,10 @@ export declare enum DerivedState {
|
|
|
23
26
|
stale = 2,
|
|
24
27
|
upToDate = 3
|
|
25
28
|
}
|
|
26
|
-
export declare class Derived<T, TChangeSummary = any> extends BaseObservable<T,
|
|
29
|
+
export declare class Derived<T, TChangeSummary = any, TChange = void> extends BaseObservable<T, TChange> implements IDerivedReader<TChange>, IObserver {
|
|
27
30
|
readonly _debugNameData: DebugNameData;
|
|
28
|
-
readonly _computeFn: (reader:
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly _handleChange;
|
|
31
|
+
readonly _computeFn: (reader: IDerivedReader<TChange>, changeSummary: TChangeSummary) => T;
|
|
32
|
+
private readonly _changeTracker;
|
|
31
33
|
private readonly _handleLastObserverRemoved;
|
|
32
34
|
private readonly _equalityComparator;
|
|
33
35
|
private _state;
|
|
@@ -38,8 +40,9 @@ export declare class Derived<T, TChangeSummary = any> extends BaseObservable<T,
|
|
|
38
40
|
private _changeSummary;
|
|
39
41
|
private _isUpdating;
|
|
40
42
|
private _isComputing;
|
|
43
|
+
private _didReportChange;
|
|
41
44
|
get debugName(): string;
|
|
42
|
-
constructor(_debugNameData: DebugNameData, _computeFn: (reader:
|
|
45
|
+
constructor(_debugNameData: DebugNameData, _computeFn: (reader: IDerivedReader<TChange>, changeSummary: TChangeSummary) => T, _changeTracker: IChangeTracker<TChangeSummary> | undefined, _handleLastObserverRemoved: (() => void) | undefined, _equalityComparator: EqualityComparer<T>);
|
|
43
46
|
protected onLastObserverRemoved(): void;
|
|
44
47
|
get(): T;
|
|
45
48
|
private _recompute;
|
|
@@ -51,6 +54,7 @@ export declare class Derived<T, TChangeSummary = any> extends BaseObservable<T,
|
|
|
51
54
|
handleChange<T, TChange>(observable: IObservableWithChange<T, TChange>, change: TChange): void;
|
|
52
55
|
private _isReaderValid;
|
|
53
56
|
readObservable<T>(observable: IObservable<T>): T;
|
|
57
|
+
reportChange(change: TChange): void;
|
|
54
58
|
addObserver(observer: IObserver): void;
|
|
55
59
|
removeObserver(observer: IObserver): void;
|
|
56
60
|
debugGetState(): {
|
|
@@ -61,8 +65,9 @@ export declare class Derived<T, TChangeSummary = any> extends BaseObservable<T,
|
|
|
61
65
|
value: T | undefined;
|
|
62
66
|
};
|
|
63
67
|
debugSetValue(newValue: unknown): void;
|
|
68
|
+
setValue(newValue: T, tx: ITransaction, change: TChange): void;
|
|
64
69
|
}
|
|
65
|
-
export declare class DerivedWithSetter<T, TChangeSummary = any> extends Derived<T, TChangeSummary> implements ISettableObservable<T> {
|
|
66
|
-
readonly set: (value: T, tx: ITransaction | undefined) => void;
|
|
67
|
-
constructor(debugNameData: DebugNameData, computeFn: (reader:
|
|
70
|
+
export declare class DerivedWithSetter<T, TChangeSummary = any, TOutChanges = any> extends Derived<T, TChangeSummary, TOutChanges> implements ISettableObservable<T, TOutChanges> {
|
|
71
|
+
readonly set: (value: T, tx: ITransaction | undefined, change: TOutChanges) => void;
|
|
72
|
+
constructor(debugNameData: DebugNameData, computeFn: (reader: IDerivedReader<TOutChanges>, changeSummary: TChangeSummary) => T, changeTracker: IChangeTracker<TChangeSummary> | undefined, handleLastObserverRemoved: (() => void) | undefined, equalityComparator: EqualityComparer<T>, set: (value: T, tx: ITransaction | undefined, change: TOutChanges) => void);
|
|
68
73
|
}
|
|
@@ -10,19 +10,19 @@ import { getLogger } from './logging/logging.js';
|
|
|
10
10
|
|
|
11
11
|
function derived(computeFnOrOwner, computeFn) {
|
|
12
12
|
if (computeFn !== undefined) {
|
|
13
|
-
return ( new Derived(( new DebugNameData(computeFnOrOwner, undefined, computeFn)), computeFn, undefined, undefined,
|
|
13
|
+
return ( new Derived(( new DebugNameData(computeFnOrOwner, undefined, computeFn)), computeFn, undefined, undefined, strictEquals));
|
|
14
14
|
}
|
|
15
|
-
return ( new Derived(( new DebugNameData(undefined, undefined, computeFnOrOwner)), computeFnOrOwner, undefined, undefined,
|
|
15
|
+
return ( new Derived(( new DebugNameData(undefined, undefined, computeFnOrOwner)), computeFnOrOwner, undefined, undefined, strictEquals));
|
|
16
16
|
}
|
|
17
17
|
function derivedWithSetter(owner, computeFn, setter) {
|
|
18
|
-
return ( new DerivedWithSetter(( new DebugNameData(owner, undefined, computeFn)), computeFn, undefined, undefined,
|
|
18
|
+
return ( new DerivedWithSetter(( new DebugNameData(owner, undefined, computeFn)), computeFn, undefined, undefined, strictEquals, setter));
|
|
19
19
|
}
|
|
20
20
|
function derivedOpts(options, computeFn) {
|
|
21
|
-
return ( new Derived(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn)), computeFn, undefined,
|
|
21
|
+
return ( new Derived(( new DebugNameData(options.owner, options.debugName, options.debugReferenceFn)), computeFn, undefined, options.onLastObserverRemoved, options.equalsFn ?? strictEquals));
|
|
22
22
|
}
|
|
23
23
|
_setDerivedOpts(derivedOpts);
|
|
24
24
|
function derivedHandleChanges(options, computeFn) {
|
|
25
|
-
return ( new Derived(( new DebugNameData(options.owner, options.debugName, undefined)), computeFn, options.
|
|
25
|
+
return ( new Derived(( new DebugNameData(options.owner, options.debugName, undefined)), computeFn, options.changeTracker, undefined, options.equalityComparer ?? strictEquals));
|
|
26
26
|
}
|
|
27
27
|
function derivedWithStore(computeFnOrOwner, computeFnOrUndefined) {
|
|
28
28
|
let computeFn;
|
|
@@ -44,7 +44,7 @@ function derivedWithStore(computeFnOrOwner, computeFnOrUndefined) {
|
|
|
44
44
|
store.clear();
|
|
45
45
|
}
|
|
46
46
|
return computeFn(r, store);
|
|
47
|
-
}, undefined,
|
|
47
|
+
}, undefined, () => store.dispose(), strictEquals));
|
|
48
48
|
}
|
|
49
49
|
function derivedDisposable(computeFnOrOwner, computeFnOrUndefined) {
|
|
50
50
|
let computeFn;
|
|
@@ -70,7 +70,7 @@ function derivedDisposable(computeFnOrOwner, computeFnOrUndefined) {
|
|
|
70
70
|
store.add(result);
|
|
71
71
|
}
|
|
72
72
|
return result;
|
|
73
|
-
}, undefined,
|
|
73
|
+
}, undefined, () => {
|
|
74
74
|
if (store) {
|
|
75
75
|
store.dispose();
|
|
76
76
|
store = undefined;
|
|
@@ -88,12 +88,11 @@ class Derived extends BaseObservable {
|
|
|
88
88
|
get debugName() {
|
|
89
89
|
return this._debugNameData.getDebugName(this) ?? '(anonymous)';
|
|
90
90
|
}
|
|
91
|
-
constructor(_debugNameData, _computeFn,
|
|
91
|
+
constructor(_debugNameData, _computeFn, _changeTracker, _handleLastObserverRemoved = undefined, _equalityComparator) {
|
|
92
92
|
super();
|
|
93
93
|
this._debugNameData = _debugNameData;
|
|
94
94
|
this._computeFn = _computeFn;
|
|
95
|
-
this.
|
|
96
|
-
this._handleChange = _handleChange;
|
|
95
|
+
this._changeTracker = _changeTracker;
|
|
97
96
|
this._handleLastObserverRemoved = _handleLastObserverRemoved;
|
|
98
97
|
this._equalityComparator = _equalityComparator;
|
|
99
98
|
this._state = DerivedState.initial;
|
|
@@ -104,9 +103,10 @@ class Derived extends BaseObservable {
|
|
|
104
103
|
this._changeSummary = undefined;
|
|
105
104
|
this._isUpdating = false;
|
|
106
105
|
this._isComputing = false;
|
|
106
|
+
this._didReportChange = false;
|
|
107
107
|
this._removedObserverToCallEndUpdateOn = null;
|
|
108
108
|
this._isReaderValid = false;
|
|
109
|
-
this._changeSummary = this.createChangeSummary
|
|
109
|
+
this._changeSummary = this._changeTracker?.createChangeSummary(undefined);
|
|
110
110
|
}
|
|
111
111
|
onLastObserverRemoved() {
|
|
112
112
|
this._state = DerivedState.initial;
|
|
@@ -123,7 +123,12 @@ class Derived extends BaseObservable {
|
|
|
123
123
|
let result;
|
|
124
124
|
try {
|
|
125
125
|
this._isReaderValid = true;
|
|
126
|
-
|
|
126
|
+
let changeSummary = undefined;
|
|
127
|
+
if (this._changeTracker) {
|
|
128
|
+
changeSummary = this._changeTracker.createChangeSummary(undefined);
|
|
129
|
+
this._changeTracker.beforeUpdate?.(this, changeSummary);
|
|
130
|
+
}
|
|
131
|
+
result = this._computeFn(this, changeSummary);
|
|
127
132
|
}
|
|
128
133
|
finally {
|
|
129
134
|
this._isReaderValid = false;
|
|
@@ -160,11 +165,15 @@ class Derived extends BaseObservable {
|
|
|
160
165
|
this._state = DerivedState.upToDate;
|
|
161
166
|
let didChange = false;
|
|
162
167
|
this._isComputing = true;
|
|
168
|
+
this._didReportChange = false;
|
|
163
169
|
try {
|
|
164
170
|
const changeSummary = this._changeSummary;
|
|
165
|
-
this._changeSummary = this.createChangeSummary?.();
|
|
166
171
|
try {
|
|
167
172
|
this._isReaderValid = true;
|
|
173
|
+
if (this._changeTracker) {
|
|
174
|
+
this._changeTracker.beforeUpdate?.(this, changeSummary);
|
|
175
|
+
this._changeSummary = this._changeTracker?.createChangeSummary(changeSummary);
|
|
176
|
+
}
|
|
168
177
|
this._value = this._computeFn(this, changeSummary);
|
|
169
178
|
}
|
|
170
179
|
finally {
|
|
@@ -174,7 +183,7 @@ class Derived extends BaseObservable {
|
|
|
174
183
|
}
|
|
175
184
|
this._dependenciesToBeRemoved.clear();
|
|
176
185
|
}
|
|
177
|
-
didChange = hadValue && !(this._equalityComparator(oldValue, this._value));
|
|
186
|
+
didChange = this._didReportChange || (hadValue && !(this._equalityComparator(oldValue, this._value)));
|
|
178
187
|
getLogger()?.handleObservableUpdated(this, {
|
|
179
188
|
oldValue,
|
|
180
189
|
newValue: this._value,
|
|
@@ -187,11 +196,14 @@ class Derived extends BaseObservable {
|
|
|
187
196
|
onBugIndicatingError(e);
|
|
188
197
|
}
|
|
189
198
|
this._isComputing = false;
|
|
190
|
-
if (didChange) {
|
|
199
|
+
if (!this._didReportChange && didChange) {
|
|
191
200
|
for (const r of this._observers) {
|
|
192
201
|
r.handleChange(this, undefined);
|
|
193
202
|
}
|
|
194
203
|
}
|
|
204
|
+
else {
|
|
205
|
+
this._didReportChange = false;
|
|
206
|
+
}
|
|
195
207
|
}
|
|
196
208
|
toString() {
|
|
197
209
|
return `LazyDerived<${this.debugName}>`;
|
|
@@ -252,7 +264,7 @@ class Derived extends BaseObservable {
|
|
|
252
264
|
getLogger()?.handleDerivedDependencyChanged(this, observable, change);
|
|
253
265
|
let shouldReact = false;
|
|
254
266
|
try {
|
|
255
|
-
shouldReact = this.
|
|
267
|
+
shouldReact = this._changeTracker ? this._changeTracker.handleChange({
|
|
256
268
|
changedObservable: observable,
|
|
257
269
|
change,
|
|
258
270
|
didChange: (o) => o === observable,
|
|
@@ -282,6 +294,15 @@ class Derived extends BaseObservable {
|
|
|
282
294
|
this._dependenciesToBeRemoved.delete(observable);
|
|
283
295
|
return value;
|
|
284
296
|
}
|
|
297
|
+
reportChange(change) {
|
|
298
|
+
if (!this._isReaderValid) {
|
|
299
|
+
throw ( new BugIndicatingError('The reader object cannot be used outside its compute function!'));
|
|
300
|
+
}
|
|
301
|
+
this._didReportChange = true;
|
|
302
|
+
for (const r of this._observers) {
|
|
303
|
+
r.handleChange(this, change);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
285
306
|
addObserver(observer) {
|
|
286
307
|
const shouldCallBeginUpdate = !( this._observers.has(observer)) && this._updateCount > 0;
|
|
287
308
|
super.addObserver(observer);
|
|
@@ -315,10 +336,18 @@ class Derived extends BaseObservable {
|
|
|
315
336
|
debugSetValue(newValue) {
|
|
316
337
|
this._value = newValue;
|
|
317
338
|
}
|
|
339
|
+
setValue(newValue, tx, change) {
|
|
340
|
+
this._value = newValue;
|
|
341
|
+
const observers = this._observers;
|
|
342
|
+
tx.updateObserver(this, this);
|
|
343
|
+
for (const d of observers) {
|
|
344
|
+
d.handleChange(this, change);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
318
347
|
}
|
|
319
348
|
class DerivedWithSetter extends Derived {
|
|
320
|
-
constructor(debugNameData, computeFn,
|
|
321
|
-
super(debugNameData, computeFn,
|
|
349
|
+
constructor(debugNameData, computeFn, changeTracker, handleLastObserverRemoved = undefined, equalityComparator, set) {
|
|
350
|
+
super(debugNameData, computeFn, changeTracker, handleLastObserverRemoved, equalityComparator);
|
|
322
351
|
this.set = set;
|
|
323
352
|
}
|
|
324
353
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { observableValueOpts } from "./api.js";
|
|
2
|
-
export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges } from "./autorun.js";
|
|
3
|
-
export { asyncTransaction, disposableObservableValue, globalTransaction, observableValue, subtransaction, transaction, TransactionImpl, type
|
|
4
|
-
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore } from "./derived.js";
|
|
5
|
-
export { ObservableLazy, ObservableLazyPromise, ObservablePromise, PromiseResult, } from "
|
|
2
|
+
export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges, autorunIterableDelta } from "./autorun.js";
|
|
3
|
+
export { asyncTransaction, disposableObservableValue, globalTransaction, observableValue, subtransaction, transaction, TransactionImpl, type IObservable, type IObservableWithChange, type IObserver, type IReader, type ISettable, type ISettableObservable, type ITransaction, } from "./base.js";
|
|
4
|
+
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore, type IDerivedReader } from "./derived.js";
|
|
5
|
+
export { ObservableLazy, ObservableLazyPromise, ObservablePromise, PromiseResult, } from "./promise.js";
|
|
6
6
|
export { derivedWithCancellationToken, waitForState } from "./utilsCancellation.js";
|
|
7
|
-
export { constObservable, debouncedObservableDeprecated, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithStore, signalFromObservable, ValueWithChangeEventFromObservable, wasEventTriggeredRecently, type IObservableSignal, } from "./utils.js";
|
|
7
|
+
export { constObservable, debouncedObservableDeprecated, debouncedObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithStore, runOnChangeWithCancellationToken, signalFromObservable, ValueWithChangeEventFromObservable, wasEventTriggeredRecently, type IObservableSignal, } from "./utils.js";
|
|
8
8
|
export { type DebugOwner } from "./debugName.js";
|
|
9
|
+
export { type IChangeContext, type IChangeTracker, recordChanges } from "./changeTracker.js";
|
|
@@ -3,10 +3,10 @@ import '../arrays.js';
|
|
|
3
3
|
import '../event.js';
|
|
4
4
|
import '../lifecycle.js';
|
|
5
5
|
import { setLogObservableFn, addLogger } from './logging/logging.js';
|
|
6
|
-
export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges } from './autorun.js';
|
|
6
|
+
export { autorun, autorunDelta, autorunHandleChanges, autorunIterableDelta, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges } from './autorun.js';
|
|
7
7
|
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore } from './derived.js';
|
|
8
8
|
import '../cancellation.js';
|
|
9
|
-
export { ValueWithChangeEventFromObservable, constObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithStore, wasEventTriggeredRecently } from './utils.js';
|
|
9
|
+
export { ValueWithChangeEventFromObservable, constObservable, debouncedObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithCancellationToken, runOnChangeWithStore, wasEventTriggeredRecently } from './utils.js';
|
|
10
10
|
import { logObservableToConsole } from './logging/consoleObservableLogger.js';
|
|
11
11
|
import { DevToolsLogger } from './logging/debugger/devToolsLogger.js';
|
|
12
12
|
import { env } from '../process.js';
|