@codingame/monaco-vscode-api 20.5.0 → 21.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +136 -50
- package/package.json +8 -8
- package/services.d.ts +8 -4
- package/services.js +8 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +23 -11
- package/vscode/src/vs/base/browser/domSanitize.js +86 -7
- package/vscode/src/vs/base/browser/domStylesheets.js +2 -2
- package/vscode/src/vs/base/browser/event.d.ts +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +8 -4
- package/vscode/src/vs/base/browser/markdownRenderer.js +72 -126
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +10 -10
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +32 -7
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +4 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +6 -6
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +6 -6
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +5 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +4 -4
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +3 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -3
- package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +21 -16
- package/vscode/src/vs/base/browser/ui/resizable/resizable.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -2
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/sash/sash.js +16 -22
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +3 -3
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -12
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/actions.d.ts +3 -3
- package/vscode/src/vs/base/common/actions.js +3 -3
- package/vscode/src/vs/base/common/async.d.ts +18 -7
- package/vscode/src/vs/base/common/async.js +71 -14
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/defaultAccount.d.ts +23 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -12
- package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -33
- package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.js +2 -2
- package/vscode/src/vs/base/common/lazy.d.ts +1 -1
- package/vscode/src/vs/base/common/lazy.js +14 -4
- package/vscode/src/vs/base/common/lifecycle.d.ts +7 -11
- package/vscode/src/vs/base/common/lifecycle.js +19 -2
- package/vscode/src/vs/base/common/marshallingIds.d.ts +5 -4
- package/vscode/src/vs/base/common/marshallingIds.js +5 -4
- package/vscode/src/vs/base/common/mime.d.ts +4 -0
- package/vscode/src/vs/base/common/mime.js +4 -1
- package/vscode/src/vs/base/common/network.d.ts +5 -0
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/oauth.d.ts +18 -2
- package/vscode/src/vs/base/common/oauth.js +114 -19
- package/vscode/src/vs/base/common/observableInternal/debugLocation.d.ts +20 -0
- package/vscode/src/vs/base/common/observableInternal/debugLocation.js +63 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/reducer.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +15 -33
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.d.ts +0 -7
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +1 -42
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/derived.js +12 -11
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +10 -8
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +5 -4
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.js +7 -6
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.js +4 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +11 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +27 -7
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.js +1 -0
- package/vscode/src/vs/base/common/policy.d.ts +29 -0
- package/vscode/src/vs/base/common/product.d.ts +15 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -6
- package/vscode/src/vs/base/common/strings.js +1 -8
- package/vscode/src/vs/base/common/types.js +1 -4
- package/vscode/src/vs/base/common/uuid.d.ts +2 -0
- package/vscode/src/vs/base/common/uuid.js +4 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +9 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.d.ts +2 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +10 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +2 -3
- package/vscode/src/vs/editor/browser/editorDom.d.ts +1 -0
- package/vscode/src/vs/editor/browser/editorDom.js +7 -4
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +2 -2
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -4
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +3 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +14 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +12 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +31 -44
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -10
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +6 -4
- package/vscode/src/vs/editor/common/config/editorOptions.js +302 -275
- package/vscode/src/vs/editor/common/core/2d/rect.js +5 -2
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +9 -3
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/text/textLength.js +6 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +19 -1
- package/vscode/src/vs/editor/common/languages.js +77 -57
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +19 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +4 -4
- package/vscode/src/vs/editor/common/model/textModel.js +4 -4
- package/vscode/src/vs/editor/common/model/textModelStringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +7 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +13 -10
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +4 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +6 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +48 -2
- package/vscode/src/vs/editor/common/textModelEditSource.js +54 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -18
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +6 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +28 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -21
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +9 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +76 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +6 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +9 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +18 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +31 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +6 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +11 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +36 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +17 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +10 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +7 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +15 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +49 -13
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +8 -3
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +11 -14
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +26 -15
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +4 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/floatingMenu.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +11 -11
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -6
- package/vscode/src/vs/platform/actions/browser/toolbar.js +3 -6
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -1
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +70 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -8
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -3
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -2
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +11 -10
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.d.ts +14 -0
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.js +15 -0
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.d.ts +2 -2
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.js +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.d.ts +1 -0
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +21 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -1
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +1 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
- package/vscode/src/vs/platform/log/common/log.js +7 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +18 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +28 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js +6 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +8 -4
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +4 -4
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +15 -20
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -28
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +3 -42
- package/vscode/src/vs/platform/policy/common/policy.d.ts +3 -3
- package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/progress/common/progress.d.ts +0 -12
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +5 -17
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +3 -6
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +1 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +5 -30
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +0 -3
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +2 -6
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +53 -26
- package/vscode/src/vs/platform/request/common/request.d.ts +2 -0
- package/vscode/src/vs/platform/request/common/request.js +25 -19
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -0
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/window/common/window.d.ts +6 -2
- package/vscode/src/vs/platform/window/common/window.js +3 -2
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +37 -9
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +53 -26
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +7 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +6 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +67 -13
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +23 -30
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +12 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +73 -12
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +27 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +8 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +39 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +52 -84
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +36 -33
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +5 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +69 -53
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +14 -12
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +93 -20
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.d.ts +19 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.js +37 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +31 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.js +91 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +27 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.d.ts +11 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.js +44 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.js +65 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.d.ts +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.js +229 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.d.ts +29 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.js +169 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.d.ts +26 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.js +137 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.js +76 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.js +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +13 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +28 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +45 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.js +75 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.d.ts +24 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.js +82 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.d.ts +99 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.js +146 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +86 -420
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +65 -1186
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +13 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +7 -0
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +74 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +157 -157
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +13 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -56
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +71 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +49 -22
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +24 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +15 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +36 -18
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +46 -36
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +205 -107
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +14 -8
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +1 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -7
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +10 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -21
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +34 -6
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +48 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +7 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +7 -6
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +94 -86
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.js +6 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +4 -0
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +218 -2
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +161 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +47 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +3 -1
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +28 -108
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +101 -12
- package/vscode-dts/vscode.proposed.contribSecondarySidebar.d.ts +6 -0
- package/vscode-dts/vscode.proposed.d.ts +3 -0
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +31 -0
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +2 -2
- package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
- package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +16 -5
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +7 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +0 -114
- package/vscode/src/vs/base/common/hotReload.js +0 -80
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +0 -6
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +0 -7
|
@@ -12,3 +12,7 @@ export declare function getMediaMime(path: string): string | undefined;
|
|
|
12
12
|
export declare function getExtensionForMimeType(mimeType: string): string | undefined;
|
|
13
13
|
export declare function normalizeMimeType(mimeType: string): string;
|
|
14
14
|
export declare function normalizeMimeType(mimeType: string, strict: true): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the provided mime type is a text stream like `stdout`, `stderr`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isTextStreamMime(mimeType: string): boolean;
|
|
@@ -104,5 +104,8 @@ function normalizeMimeType(mimeType, strict) {
|
|
|
104
104
|
}
|
|
105
105
|
return `${match[1].toLowerCase()}/${match[2].toLowerCase()}${match[3] ?? ''}`;
|
|
106
106
|
}
|
|
107
|
+
function isTextStreamMime(mimeType) {
|
|
108
|
+
return ['application/vnd.code.notebook.stdout', 'application/vnd.code.notebook.stderr'].includes(mimeType);
|
|
109
|
+
}
|
|
107
110
|
|
|
108
|
-
export { Mimes, getExtensionForMimeType, getMediaMime, getMediaOrTextMime, normalizeMimeType };
|
|
111
|
+
export { Mimes, getExtensionForMimeType, getMediaMime, getMediaOrTextMime, isTextStreamMime, normalizeMimeType };
|
|
@@ -99,6 +99,11 @@ export declare namespace Schemas {
|
|
|
99
99
|
* Scheme used for the accessible view
|
|
100
100
|
*/
|
|
101
101
|
const accessibleView = "accessible-view";
|
|
102
|
+
/**
|
|
103
|
+
* Used for snapshots of chat edits
|
|
104
|
+
*/
|
|
105
|
+
const chatEditingSnapshotScheme = "chat-editing-snapshot-text-model";
|
|
106
|
+
const chatEditingModel = "chat-editing-text-model";
|
|
102
107
|
}
|
|
103
108
|
export declare function matchesScheme(target: URI | string, scheme: string): boolean;
|
|
104
109
|
export declare function matchesSomeScheme(target: URI | string, ...schemes: string[]): boolean;
|
|
@@ -52,6 +52,8 @@ var Schemas;
|
|
|
52
52
|
Schemas.codeSetting = 'code-setting';
|
|
53
53
|
Schemas.outputChannel = 'output';
|
|
54
54
|
Schemas.accessibleView = 'accessible-view';
|
|
55
|
+
Schemas.chatEditingSnapshotScheme = 'chat-editing-snapshot-text-model';
|
|
56
|
+
Schemas.chatEditingModel = 'chat-editing-text-model';
|
|
55
57
|
})(Schemas || (Schemas = {}));
|
|
56
58
|
function matchesScheme(target, scheme) {
|
|
57
59
|
if (URI.isUri(target)) {
|
|
@@ -529,8 +529,24 @@ export declare function getDefaultMetadataForUrl(authorizationServer: URL): IAut
|
|
|
529
529
|
*/
|
|
530
530
|
export declare const DEFAULT_AUTH_FLOW_PORT = 33418;
|
|
531
531
|
export declare function fetchDynamicRegistration(serverMetadata: IAuthorizationServerMetadata, clientName: string, scopes?: string[]): Promise<IAuthorizationDynamicClientRegistrationResponse>;
|
|
532
|
-
export
|
|
532
|
+
export interface IAuthenticationChallenge {
|
|
533
533
|
scheme: string;
|
|
534
534
|
params: Record<string, string>;
|
|
535
|
-
}
|
|
535
|
+
}
|
|
536
|
+
export declare function parseWWWAuthenticateHeader(wwwAuthenticateHeaderValue: string): IAuthenticationChallenge[];
|
|
536
537
|
export declare function getClaimsFromJWT(token: string): IAuthorizationJWTClaims;
|
|
538
|
+
/**
|
|
539
|
+
* Checks if two scope lists are equivalent, regardless of order.
|
|
540
|
+
* This is useful for comparing OAuth scopes where the order should not matter.
|
|
541
|
+
*
|
|
542
|
+
* @param scopes1 First list of scopes to compare
|
|
543
|
+
* @param scopes2 Second list of scopes to compare
|
|
544
|
+
* @returns true if the scope lists contain the same scopes (order-independent), false otherwise
|
|
545
|
+
*
|
|
546
|
+
* @example
|
|
547
|
+
* ```typescript
|
|
548
|
+
* scopesMatch(['read', 'write'], ['write', 'read']) // Returns: true
|
|
549
|
+
* scopesMatch(['read'], ['write']) // Returns: false
|
|
550
|
+
* ```
|
|
551
|
+
*/
|
|
552
|
+
export declare function scopesMatch(scopes1: readonly string[], scopes2: readonly string[]): boolean;
|
|
@@ -33,14 +33,43 @@ function isAuthorizationProtectedResourceMetadata(obj) {
|
|
|
33
33
|
return false;
|
|
34
34
|
}
|
|
35
35
|
const metadata = obj;
|
|
36
|
-
|
|
36
|
+
if (!metadata.resource) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (metadata.scopes_supported !== undefined && !Array.isArray(metadata.scopes_supported)) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return true;
|
|
37
43
|
}
|
|
44
|
+
const urisToCheck = [
|
|
45
|
+
'issuer',
|
|
46
|
+
'authorization_endpoint',
|
|
47
|
+
'token_endpoint',
|
|
48
|
+
'registration_endpoint',
|
|
49
|
+
'jwks_uri'
|
|
50
|
+
];
|
|
38
51
|
function isAuthorizationServerMetadata(obj) {
|
|
39
52
|
if (typeof obj !== 'object' || obj === null) {
|
|
40
53
|
return false;
|
|
41
54
|
}
|
|
42
55
|
const metadata = obj;
|
|
43
|
-
|
|
56
|
+
if (!metadata.issuer) {
|
|
57
|
+
throw ( new Error('Authorization server metadata must have an issuer'));
|
|
58
|
+
}
|
|
59
|
+
for (const uri of urisToCheck) {
|
|
60
|
+
if (!metadata[uri]) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (typeof metadata[uri] !== 'string') {
|
|
64
|
+
throw ( new Error(`Authorization server metadata '${uri}' must be a string`));
|
|
65
|
+
}
|
|
66
|
+
if (!metadata[uri].startsWith('https://') && !metadata[uri].startsWith('http://')) {
|
|
67
|
+
throw ( new Error(
|
|
68
|
+
`Authorization server metadata '${uri}' must start with http:// or https://`
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
44
73
|
}
|
|
45
74
|
function isAuthorizationDynamicClientRegistrationResponse(obj) {
|
|
46
75
|
if (typeof obj !== 'object' || obj === null) {
|
|
@@ -100,10 +129,10 @@ async function fetchDynamicRegistration(serverMetadata, clientName, scopes) {
|
|
|
100
129
|
redirect_uris: [
|
|
101
130
|
'https://insiders.vscode.dev/redirect',
|
|
102
131
|
'https://vscode.dev/redirect',
|
|
103
|
-
'http://localhost',
|
|
104
|
-
'http://127.0.0.1',
|
|
105
|
-
`http://localhost:${DEFAULT_AUTH_FLOW_PORT}
|
|
106
|
-
`http://127.0.0.1:${DEFAULT_AUTH_FLOW_PORT}
|
|
132
|
+
'http://localhost/',
|
|
133
|
+
'http://127.0.0.1/',
|
|
134
|
+
`http://localhost:${DEFAULT_AUTH_FLOW_PORT}/`,
|
|
135
|
+
`http://127.0.0.1:${DEFAULT_AUTH_FLOW_PORT}/`
|
|
107
136
|
],
|
|
108
137
|
scope: scopes?.join(AUTH_SCOPE_SEPARATOR),
|
|
109
138
|
token_endpoint_auth_method: 'none',
|
|
@@ -134,24 +163,82 @@ async function fetchDynamicRegistration(serverMetadata, clientName, scopes) {
|
|
|
134
163
|
));
|
|
135
164
|
}
|
|
136
165
|
function parseWWWAuthenticateHeader(wwwAuthenticateHeaderValue) {
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
166
|
+
const challenges = [];
|
|
167
|
+
const tokens = [];
|
|
168
|
+
let current = '';
|
|
169
|
+
let inQuotes = false;
|
|
170
|
+
for (let i = 0; i < wwwAuthenticateHeaderValue.length; i++) {
|
|
171
|
+
const char = wwwAuthenticateHeaderValue[i];
|
|
172
|
+
if (char === '"') {
|
|
173
|
+
inQuotes = !inQuotes;
|
|
174
|
+
current += char;
|
|
175
|
+
}
|
|
176
|
+
else if (char === ',' && !inQuotes) {
|
|
177
|
+
if (current.trim()) {
|
|
178
|
+
tokens.push(current.trim());
|
|
179
|
+
}
|
|
180
|
+
current = '';
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
current += char;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (current.trim()) {
|
|
187
|
+
tokens.push(current.trim());
|
|
188
|
+
}
|
|
189
|
+
let currentChallenge;
|
|
190
|
+
for (const token of tokens) {
|
|
191
|
+
const hasEquals = token.includes('=');
|
|
192
|
+
if (!hasEquals) {
|
|
193
|
+
if (currentChallenge) {
|
|
194
|
+
challenges.push(currentChallenge);
|
|
195
|
+
}
|
|
196
|
+
currentChallenge = { scheme: token.trim(), params: {} };
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
const spaceIndex = token.indexOf(' ');
|
|
200
|
+
if (spaceIndex > 0) {
|
|
201
|
+
const beforeSpace = token.substring(0, spaceIndex);
|
|
202
|
+
const afterSpace = token.substring(spaceIndex + 1);
|
|
203
|
+
if (!beforeSpace.includes('=') && afterSpace.includes('=')) {
|
|
204
|
+
if (currentChallenge) {
|
|
205
|
+
challenges.push(currentChallenge);
|
|
206
|
+
}
|
|
207
|
+
currentChallenge = { scheme: beforeSpace.trim(), params: {} };
|
|
208
|
+
const equalIndex = afterSpace.indexOf('=');
|
|
209
|
+
if (equalIndex > 0) {
|
|
210
|
+
const key = afterSpace.substring(0, equalIndex).trim();
|
|
211
|
+
const value = afterSpace.substring(equalIndex + 1).trim().replace(/^"|"$/g, '');
|
|
212
|
+
if (key && value !== undefined) {
|
|
213
|
+
currentChallenge.params[key] = value;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (currentChallenge) {
|
|
220
|
+
const equalIndex = token.indexOf('=');
|
|
221
|
+
if (equalIndex > 0) {
|
|
222
|
+
const key = token.substring(0, equalIndex).trim();
|
|
223
|
+
const value = token.substring(equalIndex + 1).trim().replace(/^"|"$/g, '');
|
|
224
|
+
if (key && value !== undefined) {
|
|
225
|
+
currentChallenge.params[key] = value;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (currentChallenge) {
|
|
232
|
+
challenges.push(currentChallenge);
|
|
233
|
+
}
|
|
234
|
+
return challenges;
|
|
148
235
|
}
|
|
149
236
|
function getClaimsFromJWT(token) {
|
|
150
237
|
const parts = token.split('.');
|
|
151
238
|
if (parts.length !== 3) {
|
|
152
239
|
throw ( new Error('Invalid JWT token format: token must have three parts separated by dots'));
|
|
153
240
|
}
|
|
154
|
-
const [header, payload
|
|
241
|
+
const [header, payload] = parts;
|
|
155
242
|
try {
|
|
156
243
|
const decodedHeader = JSON.parse(( decodeBase64(header).toString()));
|
|
157
244
|
if (typeof decodedHeader !== 'object') {
|
|
@@ -170,5 +257,13 @@ function getClaimsFromJWT(token) {
|
|
|
170
257
|
throw ( new Error('Failed to parse JWT token'));
|
|
171
258
|
}
|
|
172
259
|
}
|
|
260
|
+
function scopesMatch(scopes1, scopes2) {
|
|
261
|
+
if (scopes1.length !== scopes2.length) {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
const sortedScopes1 = [...scopes1].sort();
|
|
265
|
+
const sortedScopes2 = [...scopes2].sort();
|
|
266
|
+
return sortedScopes1.every((scope, index) => scope === sortedScopes2[index]);
|
|
267
|
+
}
|
|
173
268
|
|
|
174
|
-
export { AUTH_SCOPE_SEPARATOR, AUTH_SERVER_METADATA_DISCOVERY_PATH, AuthorizationDeviceCodeErrorType, AuthorizationErrorType, AuthorizationRegistrationErrorType, DEFAULT_AUTH_FLOW_PORT, OPENID_CONNECT_DISCOVERY_PATH, fetchDynamicRegistration, getClaimsFromJWT, getDefaultMetadataForUrl, isAuthorizationDynamicClientRegistrationResponse, isAuthorizationErrorResponse, isAuthorizationProtectedResourceMetadata, isAuthorizationRegistrationErrorResponse, isAuthorizationServerMetadata, isAuthorizationTokenResponse, parseWWWAuthenticateHeader };
|
|
269
|
+
export { AUTH_SCOPE_SEPARATOR, AUTH_SERVER_METADATA_DISCOVERY_PATH, AuthorizationDeviceCodeErrorType, AuthorizationErrorType, AuthorizationRegistrationErrorType, DEFAULT_AUTH_FLOW_PORT, OPENID_CONNECT_DISCOVERY_PATH, fetchDynamicRegistration, getClaimsFromJWT, getDefaultMetadataForUrl, isAuthorizationDynamicClientRegistrationResponse, isAuthorizationErrorResponse, isAuthorizationProtectedResourceMetadata, isAuthorizationRegistrationErrorResponse, isAuthorizationServerMetadata, isAuthorizationTokenResponse, parseWWWAuthenticateHeader, scopesMatch };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type DebugLocation = DebugLocationImpl | undefined;
|
|
2
|
+
export declare namespace DebugLocation {
|
|
3
|
+
function enable(): void;
|
|
4
|
+
function ofCaller(): DebugLocation;
|
|
5
|
+
}
|
|
6
|
+
declare class DebugLocationImpl implements ILocation {
|
|
7
|
+
readonly fileName: string;
|
|
8
|
+
readonly line: number;
|
|
9
|
+
readonly column: number;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
static fromStack(stack: string, parentIdx: number): DebugLocationImpl | undefined;
|
|
12
|
+
constructor(fileName: string, line: number, column: number, id: string);
|
|
13
|
+
}
|
|
14
|
+
export interface ILocation {
|
|
15
|
+
fileName: string;
|
|
16
|
+
line: number;
|
|
17
|
+
column: number;
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var DebugLocation;
|
|
4
|
+
(function (DebugLocation) {
|
|
5
|
+
let enabled = false;
|
|
6
|
+
function enable() {
|
|
7
|
+
enabled = true;
|
|
8
|
+
}
|
|
9
|
+
DebugLocation.enable = enable;
|
|
10
|
+
function ofCaller() {
|
|
11
|
+
if (!enabled) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const Err = Error;
|
|
15
|
+
const l = Err.stackTraceLimit;
|
|
16
|
+
Err.stackTraceLimit = 3;
|
|
17
|
+
const stack = ( new Error()).stack;
|
|
18
|
+
Err.stackTraceLimit = l;
|
|
19
|
+
return DebugLocationImpl.fromStack(stack, 2);
|
|
20
|
+
}
|
|
21
|
+
DebugLocation.ofCaller = ofCaller;
|
|
22
|
+
})(DebugLocation || (DebugLocation = {}));
|
|
23
|
+
class DebugLocationImpl {
|
|
24
|
+
static fromStack(stack, parentIdx) {
|
|
25
|
+
const lines = stack.split('\n');
|
|
26
|
+
const location = parseLine(lines[parentIdx + 1]);
|
|
27
|
+
if (location) {
|
|
28
|
+
return ( new DebugLocationImpl(location.fileName, location.line, location.column, location.id));
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
constructor(fileName, line, column, id) {
|
|
35
|
+
this.fileName = fileName;
|
|
36
|
+
this.line = line;
|
|
37
|
+
this.column = column;
|
|
38
|
+
this.id = id;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function parseLine(stackLine) {
|
|
42
|
+
const match = stackLine.match(/\((.*):(\d+):(\d+)\)/);
|
|
43
|
+
if (match) {
|
|
44
|
+
return {
|
|
45
|
+
fileName: match[1],
|
|
46
|
+
line: parseInt(match[2]),
|
|
47
|
+
column: parseInt(match[3]),
|
|
48
|
+
id: stackLine,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const match2 = stackLine.match(/at ([^\(\)]*):(\d+):(\d+)/);
|
|
52
|
+
if (match2) {
|
|
53
|
+
return {
|
|
54
|
+
fileName: match2[1],
|
|
55
|
+
line: parseInt(match2[2]),
|
|
56
|
+
column: parseInt(match2[3]),
|
|
57
|
+
id: stackLine,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { DebugLocation };
|
|
@@ -6,6 +6,7 @@ import '../../lifecycle.js';
|
|
|
6
6
|
import { subtransaction } from '../transaction.js';
|
|
7
7
|
import { DebugNameData } from '../debugName.js';
|
|
8
8
|
import { DerivedWithSetter } from '../observables/derivedImpl.js';
|
|
9
|
+
import { DebugLocation } from '../debugLocation.js';
|
|
9
10
|
|
|
10
11
|
function observableReducerSettable(owner, options) {
|
|
11
12
|
let prevValue = undefined;
|
|
@@ -31,7 +32,7 @@ function observableReducerSettable(owner, options) {
|
|
|
31
32
|
prevValue = value;
|
|
32
33
|
d.setValue(value, tx, change);
|
|
33
34
|
});
|
|
34
|
-
}));
|
|
35
|
+
}, DebugLocation.ofCaller()));
|
|
35
36
|
return d;
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { observableValueOpts } from "./observables/observableValueOpts.js";
|
|
2
|
-
export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges, autorunIterableDelta } from "./reactions/autorun.js";
|
|
2
|
+
export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges, autorunIterableDelta, autorunSelfDisposable } from "./reactions/autorun.js";
|
|
3
3
|
export { type IObservable, type IObservableWithChange, type IObserver, type IReader, type ISettable, type ISettableObservable, type ITransaction } from "./base.js";
|
|
4
4
|
export { disposableObservableValue } from "./observables/observableValue.js";
|
|
5
5
|
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore } from "./observables/derived.js";
|
|
@@ -21,3 +21,4 @@ export { observableFromEvent } from "./observables/observableFromEvent.js";
|
|
|
21
21
|
export { observableValue } from "./observables/observableValue.js";
|
|
22
22
|
export { ObservableSet } from "./set.js";
|
|
23
23
|
export { ObservableMap } from "./map.js";
|
|
24
|
+
export { DebugLocation } from "./debugLocation.js";
|
|
@@ -4,6 +4,7 @@ import '../arrays.js';
|
|
|
4
4
|
import '../event.js';
|
|
5
5
|
import '../lifecycle.js';
|
|
6
6
|
import { setLogObservableFn, addLogger } from './logging/logging.js';
|
|
7
|
+
export { DebugLocation } from './debugLocation.js';
|
|
7
8
|
import './reactions/autorunImpl.js';
|
|
8
9
|
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter } from './observables/derived.js';
|
|
9
10
|
import '../cancellation.js';
|
|
@@ -15,6 +16,6 @@ import { DevToolsLogger } from './logging/debugger/devToolsLogger.js';
|
|
|
15
16
|
import { env } from '../process.js';
|
|
16
17
|
|
|
17
18
|
setLogObservableFn(logObservableToConsole);
|
|
18
|
-
if (env && env['
|
|
19
|
+
if (env && env['VSCODE_DEV_DEBUG_OBSERVABLES']) {
|
|
19
20
|
addLogger(DevToolsLogger.getInstance());
|
|
20
21
|
}
|
|
@@ -3,6 +3,7 @@ import { TransactionImpl } from "../../transaction.js";
|
|
|
3
3
|
import { IChangeInformation, IObservableLogger } from "../logging.js";
|
|
4
4
|
import { IObservable } from "../../base.js";
|
|
5
5
|
import { Derived } from "../../observables/derivedImpl.js";
|
|
6
|
+
import { DebugLocation } from "../../debugLocation.js";
|
|
6
7
|
export declare class DevToolsLogger implements IObservableLogger {
|
|
7
8
|
private static _instance;
|
|
8
9
|
static getInstance(): DevToolsLogger;
|
|
@@ -26,10 +27,10 @@ export declare class DevToolsLogger implements IObservableLogger {
|
|
|
26
27
|
private _handleChange;
|
|
27
28
|
private readonly _flushUpdates;
|
|
28
29
|
private _getDeclarationId;
|
|
29
|
-
handleObservableCreated(observable: IObservable<any
|
|
30
|
+
handleObservableCreated(observable: IObservable<any>, location: DebugLocation): void;
|
|
30
31
|
handleOnListenerCountChanged(observable: IObservable<any>, newCount: number): void;
|
|
31
32
|
handleObservableUpdated(observable: IObservable<any>, changeInfo: IChangeInformation): void;
|
|
32
|
-
handleAutorunCreated(autorun: AutorunObserver): void;
|
|
33
|
+
handleAutorunCreated(autorun: AutorunObserver, location: DebugLocation): void;
|
|
33
34
|
handleAutorunDisposed(autorun: AutorunObserver): void;
|
|
34
35
|
handleAutorunDependencyChanged(autorun: AutorunObserver, observable: IObservable<any>, change: unknown): void;
|
|
35
36
|
handleAutorunStarted(autorun: AutorunObserver): void;
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { AutorunObserver, AutorunState } from '../../reactions/autorunImpl.js';
|
|
3
3
|
import { formatValue } from '../consoleObservableLogger.js';
|
|
4
4
|
import { registerDebugChannel } from './debuggerRpc.js';
|
|
5
|
-
import { Throttler, deepAssignDeleteNulls, deepAssign
|
|
5
|
+
import { Throttler, deepAssignDeleteNulls, deepAssign } from './utils.js';
|
|
6
6
|
import { isDefined } from '../../../types.js';
|
|
7
7
|
import { FromEventObservable } from '../../observables/observableFromEvent.js';
|
|
8
8
|
import { onUnexpectedError, BugIndicatingError } from '../../../errors.js';
|
|
9
9
|
import { Derived, DerivedState } from '../../observables/derivedImpl.js';
|
|
10
10
|
import { ObservableValue } from '../../observables/observableValue.js';
|
|
11
|
+
import { DebugLocation } from '../../debugLocation.js';
|
|
11
12
|
|
|
12
13
|
class DevToolsLogger {
|
|
13
14
|
static { this._instance = undefined; }
|
|
@@ -247,6 +248,7 @@ class DevToolsLogger {
|
|
|
247
248
|
this._pendingChanges = null;
|
|
248
249
|
}
|
|
249
250
|
};
|
|
251
|
+
DebugLocation.enable();
|
|
250
252
|
}
|
|
251
253
|
_handleChange(update) {
|
|
252
254
|
deepAssignDeleteNulls(this._fullState, update);
|
|
@@ -258,46 +260,26 @@ class DevToolsLogger {
|
|
|
258
260
|
}
|
|
259
261
|
this._changeThrottler.throttle(this._flushUpdates, 10);
|
|
260
262
|
}
|
|
261
|
-
_getDeclarationId(type) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const Err = Error;
|
|
265
|
-
while (true) {
|
|
266
|
-
const l = Err.stackTraceLimit;
|
|
267
|
-
Err.stackTraceLimit = shallow ? 6 : 20;
|
|
268
|
-
const stack = ( new Error()).stack;
|
|
269
|
-
Err.stackTraceLimit = l;
|
|
270
|
-
let result = getFirstStackFrameOutsideOf(stack, /[/\\]observableInternal[/\\]|\.observe|[/\\]util(s)?\./);
|
|
271
|
-
if (!shallow && !result) {
|
|
272
|
-
result = getFirstStackFrameOutsideOf(stack, /[/\\]observableInternal[/\\]|\.observe/);
|
|
273
|
-
}
|
|
274
|
-
if (result) {
|
|
275
|
-
loc = result;
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
if (!shallow) {
|
|
279
|
-
console.error('Could not find location for declaration', ( new Error()).stack);
|
|
280
|
-
loc = { fileName: 'unknown', line: 0, column: 0, id: 'unknown' };
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
shallow = false;
|
|
263
|
+
_getDeclarationId(type, location) {
|
|
264
|
+
if (!location) {
|
|
265
|
+
return -1;
|
|
284
266
|
}
|
|
285
|
-
let decInfo = this._declarations.get(
|
|
267
|
+
let decInfo = this._declarations.get(location.id);
|
|
286
268
|
if (decInfo === undefined) {
|
|
287
269
|
decInfo = {
|
|
288
270
|
id: this._declarationId++,
|
|
289
271
|
type,
|
|
290
|
-
url:
|
|
291
|
-
line:
|
|
292
|
-
column:
|
|
272
|
+
url: location.fileName,
|
|
273
|
+
line: location.line,
|
|
274
|
+
column: location.column,
|
|
293
275
|
};
|
|
294
|
-
this._declarations.set(
|
|
276
|
+
this._declarations.set(location.id, decInfo);
|
|
295
277
|
this._handleChange({ decls: { [decInfo.id]: decInfo } });
|
|
296
278
|
}
|
|
297
279
|
return decInfo.id;
|
|
298
280
|
}
|
|
299
|
-
handleObservableCreated(observable) {
|
|
300
|
-
const declarationId = this._getDeclarationId('observable/value');
|
|
281
|
+
handleObservableCreated(observable, location) {
|
|
282
|
+
const declarationId = this._getDeclarationId('observable/value', location);
|
|
301
283
|
const info = {
|
|
302
284
|
declarationId,
|
|
303
285
|
instanceId: this._instanceId++,
|
|
@@ -353,8 +335,8 @@ class DevToolsLogger {
|
|
|
353
335
|
}
|
|
354
336
|
}
|
|
355
337
|
}
|
|
356
|
-
handleAutorunCreated(autorun) {
|
|
357
|
-
const declarationId = this._getDeclarationId('autorun');
|
|
338
|
+
handleAutorunCreated(autorun, location) {
|
|
339
|
+
const declarationId = this._getDeclarationId('autorun', location);
|
|
358
340
|
const info = {
|
|
359
341
|
declarationId,
|
|
360
342
|
instanceId: this._instanceId++,
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { IDisposable } from "../../../lifecycle.js";
|
|
2
|
-
export declare function getFirstStackFrameOutsideOf(stack: string, pattern?: RegExp): ILocation | undefined;
|
|
3
|
-
export interface ILocation {
|
|
4
|
-
fileName: string;
|
|
5
|
-
line: number;
|
|
6
|
-
column: number;
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
2
|
export declare class Debouncer implements IDisposable {
|
|
10
3
|
private _timeout;
|
|
11
4
|
debounce(fn: () => void, timeoutMs: number): void;
|
|
@@ -1,46 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
function getFirstStackFrameOutsideOf(stack, pattern) {
|
|
4
|
-
const lines = stack.split('\n');
|
|
5
|
-
for (let i = 1; i < lines.length; i++) {
|
|
6
|
-
const line = lines[i];
|
|
7
|
-
if (pattern && pattern.test(line)) {
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
const showFramesUpMatch = line.match(/\$show(\d+)FramesUp/);
|
|
11
|
-
if (showFramesUpMatch) {
|
|
12
|
-
const n = parseInt(showFramesUpMatch[1], 10);
|
|
13
|
-
i += (n - 1);
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
const result = parseLine(line);
|
|
17
|
-
if (result) {
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
function parseLine(stackLine) {
|
|
24
|
-
const match = stackLine.match(/\((.*):(\d+):(\d+)\)/);
|
|
25
|
-
if (match) {
|
|
26
|
-
return {
|
|
27
|
-
fileName: match[1],
|
|
28
|
-
line: parseInt(match[2]),
|
|
29
|
-
column: parseInt(match[3]),
|
|
30
|
-
id: stackLine,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const match2 = stackLine.match(/at ([^\(\)]*):(\d+):(\d+)/);
|
|
34
|
-
if (match2) {
|
|
35
|
-
return {
|
|
36
|
-
fileName: match2[1],
|
|
37
|
-
line: parseInt(match2[2]),
|
|
38
|
-
column: parseInt(match2[3]),
|
|
39
|
-
id: stackLine,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
3
|
class Throttler {
|
|
45
4
|
constructor() {
|
|
46
5
|
this._timeout = undefined;
|
|
@@ -83,4 +42,4 @@ function deepAssignDeleteNulls(target, source) {
|
|
|
83
42
|
}
|
|
84
43
|
}
|
|
85
44
|
|
|
86
|
-
export { Throttler, deepAssign, deepAssignDeleteNulls
|
|
45
|
+
export { Throttler, deepAssign, deepAssignDeleteNulls };
|
|
@@ -2,6 +2,7 @@ import { AutorunObserver } from "../reactions/autorunImpl.js";
|
|
|
2
2
|
import { IObservable } from "../base.js";
|
|
3
3
|
import { TransactionImpl } from "../transaction.js";
|
|
4
4
|
import type { Derived } from "../observables/derivedImpl.js";
|
|
5
|
+
import { DebugLocation } from "../debugLocation.js";
|
|
5
6
|
export declare function addLogger(logger: IObservableLogger): void;
|
|
6
7
|
export declare function getLogger(): IObservableLogger | undefined;
|
|
7
8
|
export declare function setLogObservableFn(fn: (obs: IObservable<any>) => void): void;
|
|
@@ -14,10 +15,10 @@ export interface IChangeInformation {
|
|
|
14
15
|
hadValue: boolean;
|
|
15
16
|
}
|
|
16
17
|
export interface IObservableLogger {
|
|
17
|
-
handleObservableCreated(observable: IObservable<any
|
|
18
|
+
handleObservableCreated(observable: IObservable<any>, location: DebugLocation): void;
|
|
18
19
|
handleOnListenerCountChanged(observable: IObservable<any>, newCount: number): void;
|
|
19
20
|
handleObservableUpdated(observable: IObservable<any>, info: IChangeInformation): void;
|
|
20
|
-
handleAutorunCreated(autorun: AutorunObserver): void;
|
|
21
|
+
handleAutorunCreated(autorun: AutorunObserver, location: DebugLocation): void;
|
|
21
22
|
handleAutorunDisposed(autorun: AutorunObserver): void;
|
|
22
23
|
handleAutorunDependencyChanged(autorun: AutorunObserver, observable: IObservable<any>, change: unknown): void;
|
|
23
24
|
handleAutorunStarted(autorun: AutorunObserver): void;
|
|
@@ -28,9 +28,9 @@ class ComposedLogger {
|
|
|
28
28
|
constructor(loggers) {
|
|
29
29
|
this.loggers = loggers;
|
|
30
30
|
}
|
|
31
|
-
handleObservableCreated(observable) {
|
|
31
|
+
handleObservableCreated(observable, location) {
|
|
32
32
|
for (const logger of this.loggers) {
|
|
33
|
-
logger.handleObservableCreated(observable);
|
|
33
|
+
logger.handleObservableCreated(observable, location);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
handleOnListenerCountChanged(observable, newCount) {
|
|
@@ -43,9 +43,9 @@ class ComposedLogger {
|
|
|
43
43
|
logger.handleObservableUpdated(observable, info);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
handleAutorunCreated(autorun) {
|
|
46
|
+
handleAutorunCreated(autorun, location) {
|
|
47
47
|
for (const logger of this.loggers) {
|
|
48
|
-
logger.handleAutorunCreated(autorun);
|
|
48
|
+
logger.handleAutorunCreated(autorun, location);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
handleAutorunDisposed(autorun) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IObservableWithChange, IObserver, IReader, IObservable } from "../base.js";
|
|
2
2
|
import { DisposableStore } from "../commonFacade/deps.js";
|
|
3
|
+
import { DebugLocation } from "../debugLocation.js";
|
|
3
4
|
import { DebugOwner } from "../debugName.js";
|
|
4
5
|
import type { keepObserved, recomputeInitiallyAndOnChange } from "../utils/utils.js";
|
|
5
6
|
import { derivedOpts } from "./derived.js";
|
|
@@ -42,7 +43,7 @@ export declare abstract class ConvenientObservable<T, TChange> implements IObser
|
|
|
42
43
|
}
|
|
43
44
|
export declare abstract class BaseObservable<T, TChange = void> extends ConvenientObservable<T, TChange> {
|
|
44
45
|
protected readonly _observers: Set<IObserver>;
|
|
45
|
-
constructor();
|
|
46
|
+
constructor(debugLocation: DebugLocation);
|
|
46
47
|
addObserver(observer: IObserver): void;
|
|
47
48
|
removeObserver(observer: IObserver): void;
|
|
48
49
|
protected onFirstObserverAdded(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { DebugLocation } from '../debugLocation.js';
|
|
2
3
|
import { getFunctionName } from '../debugName.js';
|
|
3
4
|
import { getLogger, logObservable } from '../logging/logging.js';
|
|
4
5
|
|
|
@@ -27,7 +28,7 @@ class ConvenientObservable {
|
|
|
27
28
|
return this.get();
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
map(fnOrOwner, fnOrUndefined) {
|
|
31
|
+
map(fnOrOwner, fnOrUndefined, debugLocation = DebugLocation.ofCaller()) {
|
|
31
32
|
const owner = fnOrUndefined === undefined ? undefined : fnOrOwner;
|
|
32
33
|
const fn = fnOrUndefined === undefined ? fnOrOwner : fnOrUndefined;
|
|
33
34
|
return _derived({
|
|
@@ -48,7 +49,7 @@ class ConvenientObservable {
|
|
|
48
49
|
return undefined;
|
|
49
50
|
},
|
|
50
51
|
debugReferenceFn: fn,
|
|
51
|
-
}, (reader) => fn(this.read(reader), reader));
|
|
52
|
+
}, (reader) => fn(this.read(reader), reader), debugLocation);
|
|
52
53
|
}
|
|
53
54
|
flatten() {
|
|
54
55
|
return _derived({
|
|
@@ -69,10 +70,10 @@ class ConvenientObservable {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
class BaseObservable extends ConvenientObservable {
|
|
72
|
-
constructor() {
|
|
73
|
+
constructor(debugLocation) {
|
|
73
74
|
super();
|
|
74
75
|
this._observers = ( new Set());
|
|
75
|
-
getLogger()?.handleObservableCreated(this);
|
|
76
|
+
getLogger()?.handleObservableCreated(this, debugLocation);
|
|
76
77
|
}
|
|
77
78
|
addObserver(observer) {
|
|
78
79
|
const len = this._observers.size;
|
|
@@ -99,7 +100,7 @@ class BaseObservable extends ConvenientObservable {
|
|
|
99
100
|
const hadLogger = !!getLogger();
|
|
100
101
|
logObservable(this);
|
|
101
102
|
if (!hadLogger) {
|
|
102
|
-
getLogger()?.handleObservableCreated(this);
|
|
103
|
+
getLogger()?.handleObservableCreated(this, DebugLocation.ofCaller());
|
|
103
104
|
}
|
|
104
105
|
return this;
|
|
105
106
|
}
|