@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
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import {
|
|
3
|
+
import { asArray } from '../../../base/common/arrays.js';
|
|
4
4
|
import { VSBuffer } from '../../../base/common/buffer.js';
|
|
5
5
|
import { illegalArgument } from '../../../base/common/errors.js';
|
|
6
|
-
import { MarkdownString as MarkdownString$1 } from '../../../base/common/htmlContent.js';
|
|
7
|
-
import { ResourceMap } from '../../../base/common/map.js';
|
|
8
6
|
import { MarshalledId } from '../../../base/common/marshallingIds.js';
|
|
9
|
-
import { Mimes
|
|
7
|
+
import { Mimes } from '../../../base/common/mime.js';
|
|
10
8
|
import { nextCharLength } from '../../../base/common/strings.js';
|
|
11
9
|
import { isNumber, isString, isObject, isStringArray } from '../../../base/common/types.js';
|
|
12
10
|
import { URI } from '../../../base/common/uri.js';
|
|
@@ -15,32 +13,21 @@ import { TextEditorSelectionSource } from '../../../platform/editor/common/edito
|
|
|
15
13
|
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
16
14
|
import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from '../../../platform/files/common/files.js';
|
|
17
15
|
import { RemoteAuthorityResolverErrorCode } from '../../../platform/remote/common/remoteAuthorityResolver.js';
|
|
18
|
-
import {
|
|
16
|
+
import { es5ClassCompat } from './extHostTypes/es5ClassCompat.js';
|
|
17
|
+
import { Range } from './extHostTypes/range.js';
|
|
18
|
+
import { MarkdownString } from './extHostTypes/markdownString.js';
|
|
19
|
+
export { Position } from './extHostTypes/position.js';
|
|
20
|
+
export { Selection } from './extHostTypes/selection.js';
|
|
21
|
+
export { CodeActionKind } from './extHostTypes/codeActionKind.js';
|
|
22
|
+
export { Location } from './extHostTypes/location.js';
|
|
23
|
+
export { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag } from './extHostTypes/diagnostic.js';
|
|
24
|
+
export { EndOfLine, TextEdit } from './extHostTypes/textEdit.js';
|
|
25
|
+
export { FileEditType, WorkspaceEdit } from './extHostTypes/workspaceEdit.js';
|
|
26
|
+
export { SnippetString } from './extHostTypes/snippetString.js';
|
|
27
|
+
export { NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookEdit, NotebookRange } from './extHostTypes/notebooks.js';
|
|
28
|
+
export { SymbolInformation, SymbolKind, SymbolTag } from './extHostTypes/symbolInformation.js';
|
|
19
29
|
|
|
20
|
-
var Disposable_1,
|
|
21
|
-
function es5ClassCompat(target) {
|
|
22
|
-
const interceptFunctions = {
|
|
23
|
-
apply: function (...args) {
|
|
24
|
-
if (args.length === 0) {
|
|
25
|
-
return Reflect.construct(target, []);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
const argsList = args.length === 1 ? [] : args[1];
|
|
29
|
-
return Reflect.construct(target, argsList, args[0].constructor);
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
call: function (...args) {
|
|
33
|
-
if (args.length === 0) {
|
|
34
|
-
return Reflect.construct(target, []);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
const [thisArg, ...restArgs] = args;
|
|
38
|
-
return Reflect.construct(target, restArgs, thisArg.constructor);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
return Object.assign(target, interceptFunctions);
|
|
43
|
-
}
|
|
30
|
+
var Disposable_1, DocumentSymbol_1, TaskGroup_1, Task_1, TreeItem_1, FileSystemError_1, TestMessage_1;
|
|
44
31
|
var TerminalOutputAnchor;
|
|
45
32
|
(function (TerminalOutputAnchor) {
|
|
46
33
|
TerminalOutputAnchor[TerminalOutputAnchor["Top"] = 0] = "Top";
|
|
@@ -80,362 +67,6 @@ let Disposable = Disposable_1 = class Disposable {
|
|
|
80
67
|
Disposable = Disposable_1 = ( __decorate([
|
|
81
68
|
es5ClassCompat
|
|
82
69
|
], Disposable));
|
|
83
|
-
let Position = Position_1 = class Position {
|
|
84
|
-
static Min(...positions) {
|
|
85
|
-
if (positions.length === 0) {
|
|
86
|
-
throw ( new TypeError());
|
|
87
|
-
}
|
|
88
|
-
let result = positions[0];
|
|
89
|
-
for (let i = 1; i < positions.length; i++) {
|
|
90
|
-
const p = positions[i];
|
|
91
|
-
if (p.isBefore(result)) {
|
|
92
|
-
result = p;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return result;
|
|
96
|
-
}
|
|
97
|
-
static Max(...positions) {
|
|
98
|
-
if (positions.length === 0) {
|
|
99
|
-
throw ( new TypeError());
|
|
100
|
-
}
|
|
101
|
-
let result = positions[0];
|
|
102
|
-
for (let i = 1; i < positions.length; i++) {
|
|
103
|
-
const p = positions[i];
|
|
104
|
-
if (p.isAfter(result)) {
|
|
105
|
-
result = p;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
static isPosition(other) {
|
|
111
|
-
if (!other) {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
if (other instanceof Position_1) {
|
|
115
|
-
return true;
|
|
116
|
-
}
|
|
117
|
-
const { line, character } = other;
|
|
118
|
-
if (typeof line === 'number' && typeof character === 'number') {
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
static of(obj) {
|
|
124
|
-
if (obj instanceof Position_1) {
|
|
125
|
-
return obj;
|
|
126
|
-
}
|
|
127
|
-
else if (this.isPosition(obj)) {
|
|
128
|
-
return ( new Position_1(obj.line, obj.character));
|
|
129
|
-
}
|
|
130
|
-
throw ( new Error('Invalid argument, is NOT a position-like object'));
|
|
131
|
-
}
|
|
132
|
-
get line() {
|
|
133
|
-
return this._line;
|
|
134
|
-
}
|
|
135
|
-
get character() {
|
|
136
|
-
return this._character;
|
|
137
|
-
}
|
|
138
|
-
constructor(line, character) {
|
|
139
|
-
if (line < 0) {
|
|
140
|
-
throw illegalArgument('line must be non-negative');
|
|
141
|
-
}
|
|
142
|
-
if (character < 0) {
|
|
143
|
-
throw illegalArgument('character must be non-negative');
|
|
144
|
-
}
|
|
145
|
-
this._line = line;
|
|
146
|
-
this._character = character;
|
|
147
|
-
}
|
|
148
|
-
isBefore(other) {
|
|
149
|
-
if (this._line < other._line) {
|
|
150
|
-
return true;
|
|
151
|
-
}
|
|
152
|
-
if (other._line < this._line) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
return this._character < other._character;
|
|
156
|
-
}
|
|
157
|
-
isBeforeOrEqual(other) {
|
|
158
|
-
if (this._line < other._line) {
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
if (other._line < this._line) {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
return this._character <= other._character;
|
|
165
|
-
}
|
|
166
|
-
isAfter(other) {
|
|
167
|
-
return !this.isBeforeOrEqual(other);
|
|
168
|
-
}
|
|
169
|
-
isAfterOrEqual(other) {
|
|
170
|
-
return !this.isBefore(other);
|
|
171
|
-
}
|
|
172
|
-
isEqual(other) {
|
|
173
|
-
return this._line === other._line && this._character === other._character;
|
|
174
|
-
}
|
|
175
|
-
compareTo(other) {
|
|
176
|
-
if (this._line < other._line) {
|
|
177
|
-
return -1;
|
|
178
|
-
}
|
|
179
|
-
else if (this._line > other.line) {
|
|
180
|
-
return 1;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
if (this._character < other._character) {
|
|
184
|
-
return -1;
|
|
185
|
-
}
|
|
186
|
-
else if (this._character > other._character) {
|
|
187
|
-
return 1;
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
return 0;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
translate(lineDeltaOrChange, characterDelta = 0) {
|
|
195
|
-
if (lineDeltaOrChange === null || characterDelta === null) {
|
|
196
|
-
throw illegalArgument();
|
|
197
|
-
}
|
|
198
|
-
let lineDelta;
|
|
199
|
-
if (typeof lineDeltaOrChange === 'undefined') {
|
|
200
|
-
lineDelta = 0;
|
|
201
|
-
}
|
|
202
|
-
else if (typeof lineDeltaOrChange === 'number') {
|
|
203
|
-
lineDelta = lineDeltaOrChange;
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
lineDelta = typeof lineDeltaOrChange.lineDelta === 'number' ? lineDeltaOrChange.lineDelta : 0;
|
|
207
|
-
characterDelta = typeof lineDeltaOrChange.characterDelta === 'number' ? lineDeltaOrChange.characterDelta : 0;
|
|
208
|
-
}
|
|
209
|
-
if (lineDelta === 0 && characterDelta === 0) {
|
|
210
|
-
return this;
|
|
211
|
-
}
|
|
212
|
-
return ( new Position_1(this.line + lineDelta, this.character + characterDelta));
|
|
213
|
-
}
|
|
214
|
-
with(lineOrChange, character = this.character) {
|
|
215
|
-
if (lineOrChange === null || character === null) {
|
|
216
|
-
throw illegalArgument();
|
|
217
|
-
}
|
|
218
|
-
let line;
|
|
219
|
-
if (typeof lineOrChange === 'undefined') {
|
|
220
|
-
line = this.line;
|
|
221
|
-
}
|
|
222
|
-
else if (typeof lineOrChange === 'number') {
|
|
223
|
-
line = lineOrChange;
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
line = typeof lineOrChange.line === 'number' ? lineOrChange.line : this.line;
|
|
227
|
-
character = typeof lineOrChange.character === 'number' ? lineOrChange.character : this.character;
|
|
228
|
-
}
|
|
229
|
-
if (line === this.line && character === this.character) {
|
|
230
|
-
return this;
|
|
231
|
-
}
|
|
232
|
-
return ( new Position_1(line, character));
|
|
233
|
-
}
|
|
234
|
-
toJSON() {
|
|
235
|
-
return { line: this.line, character: this.character };
|
|
236
|
-
}
|
|
237
|
-
[Symbol.for('debug.description')]() {
|
|
238
|
-
return `(${this.line}:${this.character})`;
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
Position = Position_1 = ( __decorate([
|
|
242
|
-
es5ClassCompat
|
|
243
|
-
], Position));
|
|
244
|
-
let Range = Range_1 = class Range {
|
|
245
|
-
static isRange(thing) {
|
|
246
|
-
if (thing instanceof Range_1) {
|
|
247
|
-
return true;
|
|
248
|
-
}
|
|
249
|
-
if (!thing) {
|
|
250
|
-
return false;
|
|
251
|
-
}
|
|
252
|
-
return Position.isPosition(thing.start)
|
|
253
|
-
&& Position.isPosition(thing.end);
|
|
254
|
-
}
|
|
255
|
-
static of(obj) {
|
|
256
|
-
if (obj instanceof Range_1) {
|
|
257
|
-
return obj;
|
|
258
|
-
}
|
|
259
|
-
if (this.isRange(obj)) {
|
|
260
|
-
return ( new Range_1(obj.start, obj.end));
|
|
261
|
-
}
|
|
262
|
-
throw ( new Error('Invalid argument, is NOT a range-like object'));
|
|
263
|
-
}
|
|
264
|
-
get start() {
|
|
265
|
-
return this._start;
|
|
266
|
-
}
|
|
267
|
-
get end() {
|
|
268
|
-
return this._end;
|
|
269
|
-
}
|
|
270
|
-
constructor(startLineOrStart, startColumnOrEnd, endLine, endColumn) {
|
|
271
|
-
let start;
|
|
272
|
-
let end;
|
|
273
|
-
if (typeof startLineOrStart === 'number' && typeof startColumnOrEnd === 'number' && typeof endLine === 'number' && typeof endColumn === 'number') {
|
|
274
|
-
start = ( new Position(startLineOrStart, startColumnOrEnd));
|
|
275
|
-
end = ( new Position(endLine, endColumn));
|
|
276
|
-
}
|
|
277
|
-
else if (Position.isPosition(startLineOrStart) && Position.isPosition(startColumnOrEnd)) {
|
|
278
|
-
start = Position.of(startLineOrStart);
|
|
279
|
-
end = Position.of(startColumnOrEnd);
|
|
280
|
-
}
|
|
281
|
-
if (!start || !end) {
|
|
282
|
-
throw ( new Error('Invalid arguments'));
|
|
283
|
-
}
|
|
284
|
-
if (start.isBefore(end)) {
|
|
285
|
-
this._start = start;
|
|
286
|
-
this._end = end;
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
this._start = end;
|
|
290
|
-
this._end = start;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
contains(positionOrRange) {
|
|
294
|
-
if (Range_1.isRange(positionOrRange)) {
|
|
295
|
-
return this.contains(positionOrRange.start)
|
|
296
|
-
&& this.contains(positionOrRange.end);
|
|
297
|
-
}
|
|
298
|
-
else if (Position.isPosition(positionOrRange)) {
|
|
299
|
-
if (Position.of(positionOrRange).isBefore(this._start)) {
|
|
300
|
-
return false;
|
|
301
|
-
}
|
|
302
|
-
if (this._end.isBefore(positionOrRange)) {
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
return true;
|
|
306
|
-
}
|
|
307
|
-
return false;
|
|
308
|
-
}
|
|
309
|
-
isEqual(other) {
|
|
310
|
-
return this._start.isEqual(other._start) && this._end.isEqual(other._end);
|
|
311
|
-
}
|
|
312
|
-
intersection(other) {
|
|
313
|
-
const start = Position.Max(other.start, this._start);
|
|
314
|
-
const end = Position.Min(other.end, this._end);
|
|
315
|
-
if (start.isAfter(end)) {
|
|
316
|
-
return undefined;
|
|
317
|
-
}
|
|
318
|
-
return ( new Range_1(start, end));
|
|
319
|
-
}
|
|
320
|
-
union(other) {
|
|
321
|
-
if (this.contains(other)) {
|
|
322
|
-
return this;
|
|
323
|
-
}
|
|
324
|
-
else if (other.contains(this)) {
|
|
325
|
-
return other;
|
|
326
|
-
}
|
|
327
|
-
const start = Position.Min(other.start, this._start);
|
|
328
|
-
const end = Position.Max(other.end, this.end);
|
|
329
|
-
return ( new Range_1(start, end));
|
|
330
|
-
}
|
|
331
|
-
get isEmpty() {
|
|
332
|
-
return this._start.isEqual(this._end);
|
|
333
|
-
}
|
|
334
|
-
get isSingleLine() {
|
|
335
|
-
return this._start.line === this._end.line;
|
|
336
|
-
}
|
|
337
|
-
with(startOrChange, end = this.end) {
|
|
338
|
-
if (startOrChange === null || end === null) {
|
|
339
|
-
throw illegalArgument();
|
|
340
|
-
}
|
|
341
|
-
let start;
|
|
342
|
-
if (!startOrChange) {
|
|
343
|
-
start = this.start;
|
|
344
|
-
}
|
|
345
|
-
else if (Position.isPosition(startOrChange)) {
|
|
346
|
-
start = startOrChange;
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
start = startOrChange.start || this.start;
|
|
350
|
-
end = startOrChange.end || this.end;
|
|
351
|
-
}
|
|
352
|
-
if (start.isEqual(this._start) && end.isEqual(this.end)) {
|
|
353
|
-
return this;
|
|
354
|
-
}
|
|
355
|
-
return ( new Range_1(start, end));
|
|
356
|
-
}
|
|
357
|
-
toJSON() {
|
|
358
|
-
return [this.start, this.end];
|
|
359
|
-
}
|
|
360
|
-
[Symbol.for('debug.description')]() {
|
|
361
|
-
return getDebugDescriptionOfRange(this);
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
Range = Range_1 = ( __decorate([
|
|
365
|
-
es5ClassCompat
|
|
366
|
-
], Range));
|
|
367
|
-
let Selection = Selection_1 = class Selection extends Range {
|
|
368
|
-
static isSelection(thing) {
|
|
369
|
-
if (thing instanceof Selection_1) {
|
|
370
|
-
return true;
|
|
371
|
-
}
|
|
372
|
-
if (!thing) {
|
|
373
|
-
return false;
|
|
374
|
-
}
|
|
375
|
-
return Range.isRange(thing)
|
|
376
|
-
&& Position.isPosition(thing.anchor)
|
|
377
|
-
&& Position.isPosition(thing.active)
|
|
378
|
-
&& typeof thing.isReversed === 'boolean';
|
|
379
|
-
}
|
|
380
|
-
get anchor() {
|
|
381
|
-
return this._anchor;
|
|
382
|
-
}
|
|
383
|
-
get active() {
|
|
384
|
-
return this._active;
|
|
385
|
-
}
|
|
386
|
-
constructor(anchorLineOrAnchor, anchorColumnOrActive, activeLine, activeColumn) {
|
|
387
|
-
let anchor;
|
|
388
|
-
let active;
|
|
389
|
-
if (typeof anchorLineOrAnchor === 'number' && typeof anchorColumnOrActive === 'number' && typeof activeLine === 'number' && typeof activeColumn === 'number') {
|
|
390
|
-
anchor = ( new Position(anchorLineOrAnchor, anchorColumnOrActive));
|
|
391
|
-
active = ( new Position(activeLine, activeColumn));
|
|
392
|
-
}
|
|
393
|
-
else if (Position.isPosition(anchorLineOrAnchor) && Position.isPosition(anchorColumnOrActive)) {
|
|
394
|
-
anchor = Position.of(anchorLineOrAnchor);
|
|
395
|
-
active = Position.of(anchorColumnOrActive);
|
|
396
|
-
}
|
|
397
|
-
if (!anchor || !active) {
|
|
398
|
-
throw ( new Error('Invalid arguments'));
|
|
399
|
-
}
|
|
400
|
-
super(anchor, active);
|
|
401
|
-
this._anchor = anchor;
|
|
402
|
-
this._active = active;
|
|
403
|
-
}
|
|
404
|
-
get isReversed() {
|
|
405
|
-
return this._anchor === this._end;
|
|
406
|
-
}
|
|
407
|
-
toJSON() {
|
|
408
|
-
return {
|
|
409
|
-
start: this.start,
|
|
410
|
-
end: this.end,
|
|
411
|
-
active: this.active,
|
|
412
|
-
anchor: this.anchor
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
[Symbol.for('debug.description')]() {
|
|
416
|
-
return getDebugDescriptionOfSelection(this);
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
Selection = Selection_1 = ( __decorate([
|
|
420
|
-
es5ClassCompat
|
|
421
|
-
], Selection));
|
|
422
|
-
function getDebugDescriptionOfRange(range) {
|
|
423
|
-
return range.isEmpty
|
|
424
|
-
? `[${range.start.line}:${range.start.character})`
|
|
425
|
-
: `[${range.start.line}:${range.start.character} -> ${range.end.line}:${range.end.character})`;
|
|
426
|
-
}
|
|
427
|
-
function getDebugDescriptionOfSelection(selection) {
|
|
428
|
-
let rangeStr = getDebugDescriptionOfRange(selection);
|
|
429
|
-
if (!selection.isEmpty) {
|
|
430
|
-
if (selection.active.isEqual(selection.start)) {
|
|
431
|
-
rangeStr = `|${rangeStr}`;
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
rangeStr = `${rangeStr}|`;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
return rangeStr;
|
|
438
|
-
}
|
|
439
70
|
const validateConnectionToken = (connectionToken) => {
|
|
440
71
|
if (typeof connectionToken !== 'string' || connectionToken.length === 0 || !/^[0-9A-Za-z_\-]+$/.test(connectionToken)) {
|
|
441
72
|
throw illegalArgument('connectionToken');
|
|
@@ -494,470 +125,12 @@ class RemoteAuthorityResolverError extends Error {
|
|
|
494
125
|
Object.setPrototypeOf(this, RemoteAuthorityResolverError.prototype);
|
|
495
126
|
}
|
|
496
127
|
}
|
|
497
|
-
var EndOfLine;
|
|
498
|
-
(function (EndOfLine) {
|
|
499
|
-
EndOfLine[EndOfLine["LF"] = 1] = "LF";
|
|
500
|
-
EndOfLine[EndOfLine["CRLF"] = 2] = "CRLF";
|
|
501
|
-
})(EndOfLine || (EndOfLine = {}));
|
|
502
128
|
var EnvironmentVariableMutatorType;
|
|
503
129
|
(function (EnvironmentVariableMutatorType) {
|
|
504
130
|
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Replace"] = 1] = "Replace";
|
|
505
131
|
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Append"] = 2] = "Append";
|
|
506
132
|
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Prepend"] = 3] = "Prepend";
|
|
507
133
|
})(EnvironmentVariableMutatorType || (EnvironmentVariableMutatorType = {}));
|
|
508
|
-
let TextEdit = TextEdit_1 = class TextEdit {
|
|
509
|
-
static isTextEdit(thing) {
|
|
510
|
-
if (thing instanceof TextEdit_1) {
|
|
511
|
-
return true;
|
|
512
|
-
}
|
|
513
|
-
if (!thing) {
|
|
514
|
-
return false;
|
|
515
|
-
}
|
|
516
|
-
return Range.isRange(thing)
|
|
517
|
-
&& typeof thing.newText === 'string';
|
|
518
|
-
}
|
|
519
|
-
static replace(range, newText) {
|
|
520
|
-
return ( new TextEdit_1(range, newText));
|
|
521
|
-
}
|
|
522
|
-
static insert(position, newText) {
|
|
523
|
-
return TextEdit_1.replace(( new Range(position, position)), newText);
|
|
524
|
-
}
|
|
525
|
-
static delete(range) {
|
|
526
|
-
return TextEdit_1.replace(range, '');
|
|
527
|
-
}
|
|
528
|
-
static setEndOfLine(eol) {
|
|
529
|
-
const ret = ( new TextEdit_1(( new Range(( new Position(0, 0)), ( new Position(0, 0)))), ''));
|
|
530
|
-
ret.newEol = eol;
|
|
531
|
-
return ret;
|
|
532
|
-
}
|
|
533
|
-
get range() {
|
|
534
|
-
return this._range;
|
|
535
|
-
}
|
|
536
|
-
set range(value) {
|
|
537
|
-
if (value && !Range.isRange(value)) {
|
|
538
|
-
throw illegalArgument('range');
|
|
539
|
-
}
|
|
540
|
-
this._range = value;
|
|
541
|
-
}
|
|
542
|
-
get newText() {
|
|
543
|
-
return this._newText || '';
|
|
544
|
-
}
|
|
545
|
-
set newText(value) {
|
|
546
|
-
if (value && typeof value !== 'string') {
|
|
547
|
-
throw illegalArgument('newText');
|
|
548
|
-
}
|
|
549
|
-
this._newText = value;
|
|
550
|
-
}
|
|
551
|
-
get newEol() {
|
|
552
|
-
return this._newEol;
|
|
553
|
-
}
|
|
554
|
-
set newEol(value) {
|
|
555
|
-
if (value && typeof value !== 'number') {
|
|
556
|
-
throw illegalArgument('newEol');
|
|
557
|
-
}
|
|
558
|
-
this._newEol = value;
|
|
559
|
-
}
|
|
560
|
-
constructor(range, newText) {
|
|
561
|
-
this._range = range;
|
|
562
|
-
this._newText = newText;
|
|
563
|
-
}
|
|
564
|
-
toJSON() {
|
|
565
|
-
return {
|
|
566
|
-
range: this.range,
|
|
567
|
-
newText: this.newText,
|
|
568
|
-
newEol: this._newEol
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
TextEdit = TextEdit_1 = ( __decorate([
|
|
573
|
-
es5ClassCompat
|
|
574
|
-
], TextEdit));
|
|
575
|
-
let NotebookEdit = NotebookEdit_1 = class NotebookEdit {
|
|
576
|
-
static isNotebookCellEdit(thing) {
|
|
577
|
-
if (thing instanceof NotebookEdit_1) {
|
|
578
|
-
return true;
|
|
579
|
-
}
|
|
580
|
-
if (!thing) {
|
|
581
|
-
return false;
|
|
582
|
-
}
|
|
583
|
-
return NotebookRange.isNotebookRange(thing)
|
|
584
|
-
&& Array.isArray(thing.newCells);
|
|
585
|
-
}
|
|
586
|
-
static replaceCells(range, newCells) {
|
|
587
|
-
return ( new NotebookEdit_1(range, newCells));
|
|
588
|
-
}
|
|
589
|
-
static insertCells(index, newCells) {
|
|
590
|
-
return ( new NotebookEdit_1(( new NotebookRange(index, index)), newCells));
|
|
591
|
-
}
|
|
592
|
-
static deleteCells(range) {
|
|
593
|
-
return ( new NotebookEdit_1(range, []));
|
|
594
|
-
}
|
|
595
|
-
static updateCellMetadata(index, newMetadata) {
|
|
596
|
-
const edit = ( new NotebookEdit_1(( new NotebookRange(index, index)), []));
|
|
597
|
-
edit.newCellMetadata = newMetadata;
|
|
598
|
-
return edit;
|
|
599
|
-
}
|
|
600
|
-
static updateNotebookMetadata(newMetadata) {
|
|
601
|
-
const edit = ( new NotebookEdit_1(( new NotebookRange(0, 0)), []));
|
|
602
|
-
edit.newNotebookMetadata = newMetadata;
|
|
603
|
-
return edit;
|
|
604
|
-
}
|
|
605
|
-
constructor(range, newCells) {
|
|
606
|
-
this.range = range;
|
|
607
|
-
this.newCells = newCells;
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
NotebookEdit = NotebookEdit_1 = ( __decorate([
|
|
611
|
-
es5ClassCompat
|
|
612
|
-
], NotebookEdit));
|
|
613
|
-
class SnippetTextEdit {
|
|
614
|
-
static isSnippetTextEdit(thing) {
|
|
615
|
-
if (thing instanceof SnippetTextEdit) {
|
|
616
|
-
return true;
|
|
617
|
-
}
|
|
618
|
-
if (!thing) {
|
|
619
|
-
return false;
|
|
620
|
-
}
|
|
621
|
-
return Range.isRange(thing.range)
|
|
622
|
-
&& SnippetString.isSnippetString(thing.snippet);
|
|
623
|
-
}
|
|
624
|
-
static replace(range, snippet) {
|
|
625
|
-
return ( new SnippetTextEdit(range, snippet));
|
|
626
|
-
}
|
|
627
|
-
static insert(position, snippet) {
|
|
628
|
-
return SnippetTextEdit.replace(( new Range(position, position)), snippet);
|
|
629
|
-
}
|
|
630
|
-
constructor(range, snippet) {
|
|
631
|
-
this.range = range;
|
|
632
|
-
this.snippet = snippet;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
var FileEditType;
|
|
636
|
-
(function (FileEditType) {
|
|
637
|
-
FileEditType[FileEditType["File"] = 1] = "File";
|
|
638
|
-
FileEditType[FileEditType["Text"] = 2] = "Text";
|
|
639
|
-
FileEditType[FileEditType["Cell"] = 3] = "Cell";
|
|
640
|
-
FileEditType[FileEditType["CellReplace"] = 5] = "CellReplace";
|
|
641
|
-
FileEditType[FileEditType["Snippet"] = 6] = "Snippet";
|
|
642
|
-
})(FileEditType || (FileEditType = {}));
|
|
643
|
-
let WorkspaceEdit = class WorkspaceEdit {
|
|
644
|
-
constructor() {
|
|
645
|
-
this._edits = [];
|
|
646
|
-
}
|
|
647
|
-
_allEntries() {
|
|
648
|
-
return this._edits;
|
|
649
|
-
}
|
|
650
|
-
renameFile(from, to, options, metadata) {
|
|
651
|
-
this._edits.push({ _type: FileEditType.File, from, to, options, metadata });
|
|
652
|
-
}
|
|
653
|
-
createFile(uri, options, metadata) {
|
|
654
|
-
this._edits.push({ _type: FileEditType.File, from: undefined, to: uri, options, metadata });
|
|
655
|
-
}
|
|
656
|
-
deleteFile(uri, options, metadata) {
|
|
657
|
-
this._edits.push({ _type: FileEditType.File, from: uri, to: undefined, options, metadata });
|
|
658
|
-
}
|
|
659
|
-
replaceNotebookMetadata(uri, value, metadata) {
|
|
660
|
-
this._edits.push({ _type: FileEditType.Cell, metadata, uri, edit: { editType: CellEditType.DocumentMetadata, metadata: value } });
|
|
661
|
-
}
|
|
662
|
-
replaceNotebookCells(uri, startOrRange, cellData, metadata) {
|
|
663
|
-
const start = startOrRange.start;
|
|
664
|
-
const end = startOrRange.end;
|
|
665
|
-
if (start !== end || cellData.length > 0) {
|
|
666
|
-
this._edits.push({ _type: FileEditType.CellReplace, uri, index: start, count: end - start, cells: cellData, metadata });
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
replaceNotebookCellMetadata(uri, index, cellMetadata, metadata) {
|
|
670
|
-
this._edits.push({ _type: FileEditType.Cell, metadata, uri, edit: { editType: CellEditType.Metadata, index, metadata: cellMetadata } });
|
|
671
|
-
}
|
|
672
|
-
replace(uri, range, newText, metadata) {
|
|
673
|
-
this._edits.push({ _type: FileEditType.Text, uri, edit: ( new TextEdit(range, newText)), metadata });
|
|
674
|
-
}
|
|
675
|
-
insert(resource, position, newText, metadata) {
|
|
676
|
-
this.replace(resource, ( new Range(position, position)), newText, metadata);
|
|
677
|
-
}
|
|
678
|
-
delete(resource, range, metadata) {
|
|
679
|
-
this.replace(resource, range, '', metadata);
|
|
680
|
-
}
|
|
681
|
-
has(uri) {
|
|
682
|
-
return ( this._edits.some(edit => edit._type === FileEditType.Text && ( edit.uri.toString()) === ( uri.toString())));
|
|
683
|
-
}
|
|
684
|
-
set(uri, edits) {
|
|
685
|
-
if (!edits) {
|
|
686
|
-
for (let i = 0; i < this._edits.length; i++) {
|
|
687
|
-
const element = this._edits[i];
|
|
688
|
-
switch (element._type) {
|
|
689
|
-
case FileEditType.Text:
|
|
690
|
-
case FileEditType.Snippet:
|
|
691
|
-
case FileEditType.Cell:
|
|
692
|
-
case FileEditType.CellReplace:
|
|
693
|
-
if (( element.uri.toString()) === ( uri.toString())) {
|
|
694
|
-
this._edits[i] = undefined;
|
|
695
|
-
}
|
|
696
|
-
break;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
coalesceInPlace(this._edits);
|
|
700
|
-
}
|
|
701
|
-
else {
|
|
702
|
-
for (const editOrTuple of edits) {
|
|
703
|
-
if (!editOrTuple) {
|
|
704
|
-
continue;
|
|
705
|
-
}
|
|
706
|
-
let edit;
|
|
707
|
-
let metadata;
|
|
708
|
-
if (Array.isArray(editOrTuple)) {
|
|
709
|
-
edit = editOrTuple[0];
|
|
710
|
-
metadata = editOrTuple[1];
|
|
711
|
-
}
|
|
712
|
-
else {
|
|
713
|
-
edit = editOrTuple;
|
|
714
|
-
}
|
|
715
|
-
if (NotebookEdit.isNotebookCellEdit(edit)) {
|
|
716
|
-
if (edit.newCellMetadata) {
|
|
717
|
-
this.replaceNotebookCellMetadata(uri, edit.range.start, edit.newCellMetadata, metadata);
|
|
718
|
-
}
|
|
719
|
-
else if (edit.newNotebookMetadata) {
|
|
720
|
-
this.replaceNotebookMetadata(uri, edit.newNotebookMetadata, metadata);
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
this.replaceNotebookCells(uri, edit.range, edit.newCells, metadata);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
else if (SnippetTextEdit.isSnippetTextEdit(edit)) {
|
|
727
|
-
this._edits.push({ _type: FileEditType.Snippet, uri, range: edit.range, edit: edit.snippet, metadata, keepWhitespace: edit.keepWhitespace });
|
|
728
|
-
}
|
|
729
|
-
else {
|
|
730
|
-
this._edits.push({ _type: FileEditType.Text, uri, edit, metadata });
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
get(uri) {
|
|
736
|
-
const res = [];
|
|
737
|
-
for (const candidate of this._edits) {
|
|
738
|
-
if (candidate._type === FileEditType.Text && ( candidate.uri.toString()) === ( uri.toString())) {
|
|
739
|
-
res.push(candidate.edit);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
return res;
|
|
743
|
-
}
|
|
744
|
-
entries() {
|
|
745
|
-
const textEdits = ( new ResourceMap());
|
|
746
|
-
for (const candidate of this._edits) {
|
|
747
|
-
if (candidate._type === FileEditType.Text) {
|
|
748
|
-
let textEdit = textEdits.get(candidate.uri);
|
|
749
|
-
if (!textEdit) {
|
|
750
|
-
textEdit = [candidate.uri, []];
|
|
751
|
-
textEdits.set(candidate.uri, textEdit);
|
|
752
|
-
}
|
|
753
|
-
textEdit[1].push(candidate.edit);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
return [...( textEdits.values())];
|
|
757
|
-
}
|
|
758
|
-
get size() {
|
|
759
|
-
return this.entries().length;
|
|
760
|
-
}
|
|
761
|
-
toJSON() {
|
|
762
|
-
return this.entries();
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
WorkspaceEdit = ( __decorate([
|
|
766
|
-
es5ClassCompat
|
|
767
|
-
], WorkspaceEdit));
|
|
768
|
-
let SnippetString = SnippetString_1 = class SnippetString {
|
|
769
|
-
static isSnippetString(thing) {
|
|
770
|
-
if (thing instanceof SnippetString_1) {
|
|
771
|
-
return true;
|
|
772
|
-
}
|
|
773
|
-
if (!thing) {
|
|
774
|
-
return false;
|
|
775
|
-
}
|
|
776
|
-
return typeof thing.value === 'string';
|
|
777
|
-
}
|
|
778
|
-
static _escape(value) {
|
|
779
|
-
return value.replace(/\$|}|\\/g, '\\$&');
|
|
780
|
-
}
|
|
781
|
-
constructor(value) {
|
|
782
|
-
this._tabstop = 1;
|
|
783
|
-
this.value = value || '';
|
|
784
|
-
}
|
|
785
|
-
appendText(string) {
|
|
786
|
-
this.value += SnippetString_1._escape(string);
|
|
787
|
-
return this;
|
|
788
|
-
}
|
|
789
|
-
appendTabstop(number = this._tabstop++) {
|
|
790
|
-
this.value += '$';
|
|
791
|
-
this.value += number;
|
|
792
|
-
return this;
|
|
793
|
-
}
|
|
794
|
-
appendPlaceholder(value, number = this._tabstop++) {
|
|
795
|
-
if (typeof value === 'function') {
|
|
796
|
-
const nested = ( new SnippetString_1());
|
|
797
|
-
nested._tabstop = this._tabstop;
|
|
798
|
-
value(nested);
|
|
799
|
-
this._tabstop = nested._tabstop;
|
|
800
|
-
value = nested.value;
|
|
801
|
-
}
|
|
802
|
-
else {
|
|
803
|
-
value = SnippetString_1._escape(value);
|
|
804
|
-
}
|
|
805
|
-
this.value += '${';
|
|
806
|
-
this.value += number;
|
|
807
|
-
this.value += ':';
|
|
808
|
-
this.value += value;
|
|
809
|
-
this.value += '}';
|
|
810
|
-
return this;
|
|
811
|
-
}
|
|
812
|
-
appendChoice(values, number = this._tabstop++) {
|
|
813
|
-
const value = ( values.map(s => s.replaceAll(/[|\\,]/g, '\\$&'))).join(',');
|
|
814
|
-
this.value += '${';
|
|
815
|
-
this.value += number;
|
|
816
|
-
this.value += '|';
|
|
817
|
-
this.value += value;
|
|
818
|
-
this.value += '|}';
|
|
819
|
-
return this;
|
|
820
|
-
}
|
|
821
|
-
appendVariable(name, defaultValue) {
|
|
822
|
-
if (typeof defaultValue === 'function') {
|
|
823
|
-
const nested = ( new SnippetString_1());
|
|
824
|
-
nested._tabstop = this._tabstop;
|
|
825
|
-
defaultValue(nested);
|
|
826
|
-
this._tabstop = nested._tabstop;
|
|
827
|
-
defaultValue = nested.value;
|
|
828
|
-
}
|
|
829
|
-
else if (typeof defaultValue === 'string') {
|
|
830
|
-
defaultValue = defaultValue.replace(/\$|}/g, '\\$&');
|
|
831
|
-
}
|
|
832
|
-
this.value += '${';
|
|
833
|
-
this.value += name;
|
|
834
|
-
if (defaultValue) {
|
|
835
|
-
this.value += ':';
|
|
836
|
-
this.value += defaultValue;
|
|
837
|
-
}
|
|
838
|
-
this.value += '}';
|
|
839
|
-
return this;
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
SnippetString = SnippetString_1 = ( __decorate([
|
|
843
|
-
es5ClassCompat
|
|
844
|
-
], SnippetString));
|
|
845
|
-
var DiagnosticTag;
|
|
846
|
-
(function (DiagnosticTag) {
|
|
847
|
-
DiagnosticTag[DiagnosticTag["Unnecessary"] = 1] = "Unnecessary";
|
|
848
|
-
DiagnosticTag[DiagnosticTag["Deprecated"] = 2] = "Deprecated";
|
|
849
|
-
})(DiagnosticTag || (DiagnosticTag = {}));
|
|
850
|
-
var DiagnosticSeverity;
|
|
851
|
-
(function (DiagnosticSeverity) {
|
|
852
|
-
DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
|
|
853
|
-
DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
|
|
854
|
-
DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
|
|
855
|
-
DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
|
|
856
|
-
})(DiagnosticSeverity || (DiagnosticSeverity = {}));
|
|
857
|
-
let Location = Location_1 = class Location {
|
|
858
|
-
static isLocation(thing) {
|
|
859
|
-
if (thing instanceof Location_1) {
|
|
860
|
-
return true;
|
|
861
|
-
}
|
|
862
|
-
if (!thing) {
|
|
863
|
-
return false;
|
|
864
|
-
}
|
|
865
|
-
return Range.isRange(thing.range)
|
|
866
|
-
&& URI.isUri(thing.uri);
|
|
867
|
-
}
|
|
868
|
-
constructor(uri, rangeOrPosition) {
|
|
869
|
-
this.uri = uri;
|
|
870
|
-
if (!rangeOrPosition) ;
|
|
871
|
-
else if (Range.isRange(rangeOrPosition)) {
|
|
872
|
-
this.range = Range.of(rangeOrPosition);
|
|
873
|
-
}
|
|
874
|
-
else if (Position.isPosition(rangeOrPosition)) {
|
|
875
|
-
this.range = ( new Range(rangeOrPosition, rangeOrPosition));
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
throw ( new Error('Illegal argument'));
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
toJSON() {
|
|
882
|
-
return {
|
|
883
|
-
uri: this.uri,
|
|
884
|
-
range: this.range
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
Location = Location_1 = ( __decorate([
|
|
889
|
-
es5ClassCompat
|
|
890
|
-
], Location));
|
|
891
|
-
let DiagnosticRelatedInformation = class DiagnosticRelatedInformation {
|
|
892
|
-
static is(thing) {
|
|
893
|
-
if (!thing) {
|
|
894
|
-
return false;
|
|
895
|
-
}
|
|
896
|
-
return typeof thing.message === 'string'
|
|
897
|
-
&& thing.location
|
|
898
|
-
&& Range.isRange(thing.location.range)
|
|
899
|
-
&& URI.isUri(thing.location.uri);
|
|
900
|
-
}
|
|
901
|
-
constructor(location, message) {
|
|
902
|
-
this.location = location;
|
|
903
|
-
this.message = message;
|
|
904
|
-
}
|
|
905
|
-
static isEqual(a, b) {
|
|
906
|
-
if (a === b) {
|
|
907
|
-
return true;
|
|
908
|
-
}
|
|
909
|
-
if (!a || !b) {
|
|
910
|
-
return false;
|
|
911
|
-
}
|
|
912
|
-
return a.message === b.message
|
|
913
|
-
&& a.location.range.isEqual(b.location.range)
|
|
914
|
-
&& ( a.location.uri.toString()) === ( b.location.uri.toString());
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
DiagnosticRelatedInformation = ( __decorate([
|
|
918
|
-
es5ClassCompat
|
|
919
|
-
], DiagnosticRelatedInformation));
|
|
920
|
-
let Diagnostic = class Diagnostic {
|
|
921
|
-
constructor(range, message, severity = DiagnosticSeverity.Error) {
|
|
922
|
-
if (!Range.isRange(range)) {
|
|
923
|
-
throw ( new TypeError('range must be set'));
|
|
924
|
-
}
|
|
925
|
-
if (!message) {
|
|
926
|
-
throw ( new TypeError('message must be set'));
|
|
927
|
-
}
|
|
928
|
-
this.range = range;
|
|
929
|
-
this.message = message;
|
|
930
|
-
this.severity = severity;
|
|
931
|
-
}
|
|
932
|
-
toJSON() {
|
|
933
|
-
return {
|
|
934
|
-
severity: DiagnosticSeverity[this.severity],
|
|
935
|
-
message: this.message,
|
|
936
|
-
range: this.range,
|
|
937
|
-
source: this.source,
|
|
938
|
-
code: this.code,
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
static isEqual(a, b) {
|
|
942
|
-
if (a === b) {
|
|
943
|
-
return true;
|
|
944
|
-
}
|
|
945
|
-
if (!a || !b) {
|
|
946
|
-
return false;
|
|
947
|
-
}
|
|
948
|
-
return a.message === b.message
|
|
949
|
-
&& a.severity === b.severity
|
|
950
|
-
&& a.code === b.code
|
|
951
|
-
&& a.severity === b.severity
|
|
952
|
-
&& a.source === b.source
|
|
953
|
-
&& a.range.isEqual(b.range)
|
|
954
|
-
&& equals(a.tags, b.tags)
|
|
955
|
-
&& equals(a.relatedInformation, b.relatedInformation, DiagnosticRelatedInformation.isEqual);
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
Diagnostic = ( __decorate([
|
|
959
|
-
es5ClassCompat
|
|
960
|
-
], Diagnostic));
|
|
961
134
|
let Hover = class Hover {
|
|
962
135
|
constructor(contents, range) {
|
|
963
136
|
if (!contents) {
|
|
@@ -1026,72 +199,6 @@ let MultiDocumentHighlight = class MultiDocumentHighlight {
|
|
|
1026
199
|
MultiDocumentHighlight = ( __decorate([
|
|
1027
200
|
es5ClassCompat
|
|
1028
201
|
], MultiDocumentHighlight));
|
|
1029
|
-
var SymbolKind;
|
|
1030
|
-
(function (SymbolKind) {
|
|
1031
|
-
SymbolKind[SymbolKind["File"] = 0] = "File";
|
|
1032
|
-
SymbolKind[SymbolKind["Module"] = 1] = "Module";
|
|
1033
|
-
SymbolKind[SymbolKind["Namespace"] = 2] = "Namespace";
|
|
1034
|
-
SymbolKind[SymbolKind["Package"] = 3] = "Package";
|
|
1035
|
-
SymbolKind[SymbolKind["Class"] = 4] = "Class";
|
|
1036
|
-
SymbolKind[SymbolKind["Method"] = 5] = "Method";
|
|
1037
|
-
SymbolKind[SymbolKind["Property"] = 6] = "Property";
|
|
1038
|
-
SymbolKind[SymbolKind["Field"] = 7] = "Field";
|
|
1039
|
-
SymbolKind[SymbolKind["Constructor"] = 8] = "Constructor";
|
|
1040
|
-
SymbolKind[SymbolKind["Enum"] = 9] = "Enum";
|
|
1041
|
-
SymbolKind[SymbolKind["Interface"] = 10] = "Interface";
|
|
1042
|
-
SymbolKind[SymbolKind["Function"] = 11] = "Function";
|
|
1043
|
-
SymbolKind[SymbolKind["Variable"] = 12] = "Variable";
|
|
1044
|
-
SymbolKind[SymbolKind["Constant"] = 13] = "Constant";
|
|
1045
|
-
SymbolKind[SymbolKind["String"] = 14] = "String";
|
|
1046
|
-
SymbolKind[SymbolKind["Number"] = 15] = "Number";
|
|
1047
|
-
SymbolKind[SymbolKind["Boolean"] = 16] = "Boolean";
|
|
1048
|
-
SymbolKind[SymbolKind["Array"] = 17] = "Array";
|
|
1049
|
-
SymbolKind[SymbolKind["Object"] = 18] = "Object";
|
|
1050
|
-
SymbolKind[SymbolKind["Key"] = 19] = "Key";
|
|
1051
|
-
SymbolKind[SymbolKind["Null"] = 20] = "Null";
|
|
1052
|
-
SymbolKind[SymbolKind["EnumMember"] = 21] = "EnumMember";
|
|
1053
|
-
SymbolKind[SymbolKind["Struct"] = 22] = "Struct";
|
|
1054
|
-
SymbolKind[SymbolKind["Event"] = 23] = "Event";
|
|
1055
|
-
SymbolKind[SymbolKind["Operator"] = 24] = "Operator";
|
|
1056
|
-
SymbolKind[SymbolKind["TypeParameter"] = 25] = "TypeParameter";
|
|
1057
|
-
})(SymbolKind || (SymbolKind = {}));
|
|
1058
|
-
var SymbolTag;
|
|
1059
|
-
(function (SymbolTag) {
|
|
1060
|
-
SymbolTag[SymbolTag["Deprecated"] = 1] = "Deprecated";
|
|
1061
|
-
})(SymbolTag || (SymbolTag = {}));
|
|
1062
|
-
let SymbolInformation = SymbolInformation_1 = class SymbolInformation {
|
|
1063
|
-
static validate(candidate) {
|
|
1064
|
-
if (!candidate.name) {
|
|
1065
|
-
throw ( new Error('name must not be falsy'));
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
constructor(name, kind, rangeOrContainer, locationOrUri, containerName) {
|
|
1069
|
-
this.name = name;
|
|
1070
|
-
this.kind = kind;
|
|
1071
|
-
this.containerName = containerName;
|
|
1072
|
-
if (typeof rangeOrContainer === 'string') {
|
|
1073
|
-
this.containerName = rangeOrContainer;
|
|
1074
|
-
}
|
|
1075
|
-
if (locationOrUri instanceof Location) {
|
|
1076
|
-
this.location = locationOrUri;
|
|
1077
|
-
}
|
|
1078
|
-
else if (rangeOrContainer instanceof Range) {
|
|
1079
|
-
this.location = ( new Location(locationOrUri, rangeOrContainer));
|
|
1080
|
-
}
|
|
1081
|
-
SymbolInformation_1.validate(this);
|
|
1082
|
-
}
|
|
1083
|
-
toJSON() {
|
|
1084
|
-
return {
|
|
1085
|
-
name: this.name,
|
|
1086
|
-
kind: SymbolKind[this.kind],
|
|
1087
|
-
location: this.location,
|
|
1088
|
-
containerName: this.containerName
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
};
|
|
1092
|
-
SymbolInformation = SymbolInformation_1 = ( __decorate([
|
|
1093
|
-
es5ClassCompat
|
|
1094
|
-
], SymbolInformation));
|
|
1095
202
|
let DocumentSymbol = DocumentSymbol_1 = class DocumentSymbol {
|
|
1096
203
|
static validate(candidate) {
|
|
1097
204
|
if (!candidate.name) {
|
|
@@ -1129,36 +236,6 @@ let CodeAction = class CodeAction {
|
|
|
1129
236
|
CodeAction = ( __decorate([
|
|
1130
237
|
es5ClassCompat
|
|
1131
238
|
], CodeAction));
|
|
1132
|
-
let CodeActionKind = class CodeActionKind {
|
|
1133
|
-
static { CodeActionKind_1 = this; }
|
|
1134
|
-
static { this.sep = '.'; }
|
|
1135
|
-
constructor(value) {
|
|
1136
|
-
this.value = value;
|
|
1137
|
-
}
|
|
1138
|
-
append(parts) {
|
|
1139
|
-
return ( new CodeActionKind_1(this.value ? this.value + CodeActionKind_1.sep + parts : parts));
|
|
1140
|
-
}
|
|
1141
|
-
intersects(other) {
|
|
1142
|
-
return this.contains(other) || other.contains(this);
|
|
1143
|
-
}
|
|
1144
|
-
contains(other) {
|
|
1145
|
-
return this.value === other.value || other.value.startsWith(this.value + CodeActionKind_1.sep);
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
CodeActionKind = CodeActionKind_1 = ( __decorate([
|
|
1149
|
-
es5ClassCompat
|
|
1150
|
-
], CodeActionKind));
|
|
1151
|
-
CodeActionKind.Empty = ( new CodeActionKind(''));
|
|
1152
|
-
CodeActionKind.QuickFix = CodeActionKind.Empty.append('quickfix');
|
|
1153
|
-
CodeActionKind.Refactor = CodeActionKind.Empty.append('refactor');
|
|
1154
|
-
CodeActionKind.RefactorExtract = CodeActionKind.Refactor.append('extract');
|
|
1155
|
-
CodeActionKind.RefactorInline = CodeActionKind.Refactor.append('inline');
|
|
1156
|
-
CodeActionKind.RefactorMove = CodeActionKind.Refactor.append('move');
|
|
1157
|
-
CodeActionKind.RefactorRewrite = CodeActionKind.Refactor.append('rewrite');
|
|
1158
|
-
CodeActionKind.Source = CodeActionKind.Empty.append('source');
|
|
1159
|
-
CodeActionKind.SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
|
1160
|
-
CodeActionKind.SourceFixAll = CodeActionKind.Source.append('fixAll');
|
|
1161
|
-
CodeActionKind.Notebook = CodeActionKind.Empty.append('notebook');
|
|
1162
239
|
let SelectionRange = class SelectionRange {
|
|
1163
240
|
constructor(range, parent) {
|
|
1164
241
|
this.range = range;
|
|
@@ -1211,63 +288,6 @@ let CodeLens = class CodeLens {
|
|
|
1211
288
|
CodeLens = ( __decorate([
|
|
1212
289
|
es5ClassCompat
|
|
1213
290
|
], CodeLens));
|
|
1214
|
-
let MarkdownString = MarkdownString_1 = class MarkdownString {
|
|
1215
|
-
#delegate;
|
|
1216
|
-
static isMarkdownString(thing) {
|
|
1217
|
-
if (thing instanceof MarkdownString_1) {
|
|
1218
|
-
return true;
|
|
1219
|
-
}
|
|
1220
|
-
return thing && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
|
|
1221
|
-
}
|
|
1222
|
-
constructor(value, supportThemeIcons = false) {
|
|
1223
|
-
this.#delegate = ( new MarkdownString$1(value, { supportThemeIcons }));
|
|
1224
|
-
}
|
|
1225
|
-
get value() {
|
|
1226
|
-
return this.#delegate.value;
|
|
1227
|
-
}
|
|
1228
|
-
set value(value) {
|
|
1229
|
-
this.#delegate.value = value;
|
|
1230
|
-
}
|
|
1231
|
-
get isTrusted() {
|
|
1232
|
-
return this.#delegate.isTrusted;
|
|
1233
|
-
}
|
|
1234
|
-
set isTrusted(value) {
|
|
1235
|
-
this.#delegate.isTrusted = value;
|
|
1236
|
-
}
|
|
1237
|
-
get supportThemeIcons() {
|
|
1238
|
-
return this.#delegate.supportThemeIcons;
|
|
1239
|
-
}
|
|
1240
|
-
set supportThemeIcons(value) {
|
|
1241
|
-
this.#delegate.supportThemeIcons = value;
|
|
1242
|
-
}
|
|
1243
|
-
get supportHtml() {
|
|
1244
|
-
return this.#delegate.supportHtml;
|
|
1245
|
-
}
|
|
1246
|
-
set supportHtml(value) {
|
|
1247
|
-
this.#delegate.supportHtml = value;
|
|
1248
|
-
}
|
|
1249
|
-
get baseUri() {
|
|
1250
|
-
return this.#delegate.baseUri;
|
|
1251
|
-
}
|
|
1252
|
-
set baseUri(value) {
|
|
1253
|
-
this.#delegate.baseUri = value;
|
|
1254
|
-
}
|
|
1255
|
-
appendText(value) {
|
|
1256
|
-
this.#delegate.appendText(value);
|
|
1257
|
-
return this;
|
|
1258
|
-
}
|
|
1259
|
-
appendMarkdown(value) {
|
|
1260
|
-
this.#delegate.appendMarkdown(value);
|
|
1261
|
-
return this;
|
|
1262
|
-
}
|
|
1263
|
-
appendCodeblock(value, language) {
|
|
1264
|
-
this.#delegate.appendCodeblock(language ?? '', value);
|
|
1265
|
-
return this;
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
MarkdownString = MarkdownString_1 = ( __decorate([
|
|
1269
|
-
es5ClassCompat
|
|
1270
|
-
], MarkdownString));
|
|
1271
291
|
let ParameterInformation = class ParameterInformation {
|
|
1272
292
|
constructor(label, documentation) {
|
|
1273
293
|
this.label = label;
|
|
@@ -1430,6 +450,11 @@ var InlineCompletionEndOfLifeReasonKind;
|
|
|
1430
450
|
InlineCompletionEndOfLifeReasonKind[InlineCompletionEndOfLifeReasonKind["Rejected"] = 1] = "Rejected";
|
|
1431
451
|
InlineCompletionEndOfLifeReasonKind[InlineCompletionEndOfLifeReasonKind["Ignored"] = 2] = "Ignored";
|
|
1432
452
|
})(InlineCompletionEndOfLifeReasonKind || (InlineCompletionEndOfLifeReasonKind = {}));
|
|
453
|
+
var InlineCompletionDisplayLocationKind;
|
|
454
|
+
(function (InlineCompletionDisplayLocationKind) {
|
|
455
|
+
InlineCompletionDisplayLocationKind[InlineCompletionDisplayLocationKind["Code"] = 1] = "Code";
|
|
456
|
+
InlineCompletionDisplayLocationKind[InlineCompletionDisplayLocationKind["Label"] = 2] = "Label";
|
|
457
|
+
})(InlineCompletionDisplayLocationKind || (InlineCompletionDisplayLocationKind = {}));
|
|
1433
458
|
var ViewColumn;
|
|
1434
459
|
(function (ViewColumn) {
|
|
1435
460
|
ViewColumn[ViewColumn["Active"] = -1] = "Active";
|
|
@@ -1674,6 +699,13 @@ var TerminalCompletionItemKind;
|
|
|
1674
699
|
TerminalCompletionItemKind[TerminalCompletionItemKind["Flag"] = 7] = "Flag";
|
|
1675
700
|
TerminalCompletionItemKind[TerminalCompletionItemKind["SymbolicLinkFile"] = 8] = "SymbolicLinkFile";
|
|
1676
701
|
TerminalCompletionItemKind[TerminalCompletionItemKind["SymbolicLinkFolder"] = 9] = "SymbolicLinkFolder";
|
|
702
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["Commit"] = 10] = "Commit";
|
|
703
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["Branch"] = 11] = "Branch";
|
|
704
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["Tag"] = 12] = "Tag";
|
|
705
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["Stash"] = 13] = "Stash";
|
|
706
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["Remote"] = 14] = "Remote";
|
|
707
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["PullRequest"] = 15] = "PullRequest";
|
|
708
|
+
TerminalCompletionItemKind[TerminalCompletionItemKind["PullRequestDone"] = 16] = "PullRequestDone";
|
|
1677
709
|
})(TerminalCompletionItemKind || (TerminalCompletionItemKind = {}));
|
|
1678
710
|
class TerminalCompletionItem {
|
|
1679
711
|
constructor(label, icon, detail, documentation, isFile, isDirectory, isKeyword, replacementIndex, replacementLength) {
|
|
@@ -2984,182 +2016,6 @@ var ColorThemeKind;
|
|
|
2984
2016
|
ColorThemeKind[ColorThemeKind["HighContrast"] = 3] = "HighContrast";
|
|
2985
2017
|
ColorThemeKind[ColorThemeKind["HighContrastLight"] = 4] = "HighContrastLight";
|
|
2986
2018
|
})(ColorThemeKind || (ColorThemeKind = {}));
|
|
2987
|
-
class NotebookRange {
|
|
2988
|
-
static isNotebookRange(thing) {
|
|
2989
|
-
if (thing instanceof NotebookRange) {
|
|
2990
|
-
return true;
|
|
2991
|
-
}
|
|
2992
|
-
if (!thing) {
|
|
2993
|
-
return false;
|
|
2994
|
-
}
|
|
2995
|
-
return typeof thing.start === 'number'
|
|
2996
|
-
&& typeof thing.end === 'number';
|
|
2997
|
-
}
|
|
2998
|
-
get start() {
|
|
2999
|
-
return this._start;
|
|
3000
|
-
}
|
|
3001
|
-
get end() {
|
|
3002
|
-
return this._end;
|
|
3003
|
-
}
|
|
3004
|
-
get isEmpty() {
|
|
3005
|
-
return this._start === this._end;
|
|
3006
|
-
}
|
|
3007
|
-
constructor(start, end) {
|
|
3008
|
-
if (start < 0) {
|
|
3009
|
-
throw illegalArgument('start must be positive');
|
|
3010
|
-
}
|
|
3011
|
-
if (end < 0) {
|
|
3012
|
-
throw illegalArgument('end must be positive');
|
|
3013
|
-
}
|
|
3014
|
-
if (start <= end) {
|
|
3015
|
-
this._start = start;
|
|
3016
|
-
this._end = end;
|
|
3017
|
-
}
|
|
3018
|
-
else {
|
|
3019
|
-
this._start = end;
|
|
3020
|
-
this._end = start;
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
with(change) {
|
|
3024
|
-
let start = this._start;
|
|
3025
|
-
let end = this._end;
|
|
3026
|
-
if (change.start !== undefined) {
|
|
3027
|
-
start = change.start;
|
|
3028
|
-
}
|
|
3029
|
-
if (change.end !== undefined) {
|
|
3030
|
-
end = change.end;
|
|
3031
|
-
}
|
|
3032
|
-
if (start === this._start && end === this._end) {
|
|
3033
|
-
return this;
|
|
3034
|
-
}
|
|
3035
|
-
return ( new NotebookRange(start, end));
|
|
3036
|
-
}
|
|
3037
|
-
}
|
|
3038
|
-
class NotebookCellData {
|
|
3039
|
-
static validate(data) {
|
|
3040
|
-
if (typeof data.kind !== 'number') {
|
|
3041
|
-
throw ( new Error('NotebookCellData MUST have \'kind\' property'));
|
|
3042
|
-
}
|
|
3043
|
-
if (typeof data.value !== 'string') {
|
|
3044
|
-
throw ( new Error('NotebookCellData MUST have \'value\' property'));
|
|
3045
|
-
}
|
|
3046
|
-
if (typeof data.languageId !== 'string') {
|
|
3047
|
-
throw ( new Error('NotebookCellData MUST have \'languageId\' property'));
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
static isNotebookCellDataArray(value) {
|
|
3051
|
-
return Array.isArray(value) && value.every(elem => NotebookCellData.isNotebookCellData(elem));
|
|
3052
|
-
}
|
|
3053
|
-
static isNotebookCellData(value) {
|
|
3054
|
-
return true;
|
|
3055
|
-
}
|
|
3056
|
-
constructor(kind, value, languageId, mime, outputs, metadata, executionSummary) {
|
|
3057
|
-
this.kind = kind;
|
|
3058
|
-
this.value = value;
|
|
3059
|
-
this.languageId = languageId;
|
|
3060
|
-
this.mime = mime;
|
|
3061
|
-
this.outputs = outputs ?? [];
|
|
3062
|
-
this.metadata = metadata;
|
|
3063
|
-
this.executionSummary = executionSummary;
|
|
3064
|
-
NotebookCellData.validate(this);
|
|
3065
|
-
}
|
|
3066
|
-
}
|
|
3067
|
-
class NotebookData {
|
|
3068
|
-
constructor(cells) {
|
|
3069
|
-
this.cells = cells;
|
|
3070
|
-
}
|
|
3071
|
-
}
|
|
3072
|
-
class NotebookCellOutputItem {
|
|
3073
|
-
static isNotebookCellOutputItem(obj) {
|
|
3074
|
-
if (obj instanceof NotebookCellOutputItem) {
|
|
3075
|
-
return true;
|
|
3076
|
-
}
|
|
3077
|
-
if (!obj) {
|
|
3078
|
-
return false;
|
|
3079
|
-
}
|
|
3080
|
-
return typeof obj.mime === 'string'
|
|
3081
|
-
&& obj.data instanceof Uint8Array;
|
|
3082
|
-
}
|
|
3083
|
-
static error(err) {
|
|
3084
|
-
const obj = {
|
|
3085
|
-
name: err.name,
|
|
3086
|
-
message: err.message,
|
|
3087
|
-
stack: err.stack
|
|
3088
|
-
};
|
|
3089
|
-
return NotebookCellOutputItem.json(obj, 'application/vnd.code.notebook.error');
|
|
3090
|
-
}
|
|
3091
|
-
static stdout(value) {
|
|
3092
|
-
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stdout');
|
|
3093
|
-
}
|
|
3094
|
-
static stderr(value) {
|
|
3095
|
-
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stderr');
|
|
3096
|
-
}
|
|
3097
|
-
static bytes(value, mime = 'application/octet-stream') {
|
|
3098
|
-
return ( new NotebookCellOutputItem(value, mime));
|
|
3099
|
-
}
|
|
3100
|
-
static #encoder = ( new TextEncoder());
|
|
3101
|
-
static text(value, mime = Mimes.text) {
|
|
3102
|
-
const bytes = NotebookCellOutputItem.#encoder.encode(String(value));
|
|
3103
|
-
return ( new NotebookCellOutputItem(bytes, mime));
|
|
3104
|
-
}
|
|
3105
|
-
static json(value, mime = 'text/x-json') {
|
|
3106
|
-
const rawStr = JSON.stringify(value, undefined, '\t');
|
|
3107
|
-
return NotebookCellOutputItem.text(rawStr, mime);
|
|
3108
|
-
}
|
|
3109
|
-
constructor(data, mime) {
|
|
3110
|
-
this.data = data;
|
|
3111
|
-
this.mime = mime;
|
|
3112
|
-
const mimeNormalized = normalizeMimeType(mime, true);
|
|
3113
|
-
if (!mimeNormalized) {
|
|
3114
|
-
throw ( new Error(
|
|
3115
|
-
`INVALID mime type: ${mime}. Must be in the format "type/subtype[;optionalparameter]"`
|
|
3116
|
-
));
|
|
3117
|
-
}
|
|
3118
|
-
this.mime = mimeNormalized;
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
class NotebookCellOutput {
|
|
3122
|
-
static isNotebookCellOutput(candidate) {
|
|
3123
|
-
if (candidate instanceof NotebookCellOutput) {
|
|
3124
|
-
return true;
|
|
3125
|
-
}
|
|
3126
|
-
if (!candidate || typeof candidate !== 'object') {
|
|
3127
|
-
return false;
|
|
3128
|
-
}
|
|
3129
|
-
return typeof candidate.id === 'string' && Array.isArray(candidate.items);
|
|
3130
|
-
}
|
|
3131
|
-
static ensureUniqueMimeTypes(items, warn = false) {
|
|
3132
|
-
const seen = ( new Set());
|
|
3133
|
-
const removeIdx = ( new Set());
|
|
3134
|
-
for (let i = 0; i < items.length; i++) {
|
|
3135
|
-
const item = items[i];
|
|
3136
|
-
const normalMime = normalizeMimeType(item.mime);
|
|
3137
|
-
if (!( seen.has(normalMime)) || isTextStreamMime(normalMime)) {
|
|
3138
|
-
seen.add(normalMime);
|
|
3139
|
-
continue;
|
|
3140
|
-
}
|
|
3141
|
-
removeIdx.add(i);
|
|
3142
|
-
if (warn) {
|
|
3143
|
-
console.warn(`DUPLICATED mime type '${item.mime}' will be dropped`);
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
if (removeIdx.size === 0) {
|
|
3147
|
-
return items;
|
|
3148
|
-
}
|
|
3149
|
-
return items.filter((_item, index) => !( removeIdx.has(index)));
|
|
3150
|
-
}
|
|
3151
|
-
constructor(items, idOrMetadata, metadata) {
|
|
3152
|
-
this.items = NotebookCellOutput.ensureUniqueMimeTypes(items, true);
|
|
3153
|
-
if (typeof idOrMetadata === 'string') {
|
|
3154
|
-
this.id = idOrMetadata;
|
|
3155
|
-
this.metadata = metadata;
|
|
3156
|
-
}
|
|
3157
|
-
else {
|
|
3158
|
-
this.id = generateUuid();
|
|
3159
|
-
this.metadata = idOrMetadata ?? metadata;
|
|
3160
|
-
}
|
|
3161
|
-
}
|
|
3162
|
-
}
|
|
3163
2019
|
class CellErrorStackFrame {
|
|
3164
2020
|
constructor(label, uri, position) {
|
|
3165
2021
|
this.label = label;
|
|
@@ -3167,11 +2023,6 @@ class CellErrorStackFrame {
|
|
|
3167
2023
|
this.position = position;
|
|
3168
2024
|
}
|
|
3169
2025
|
}
|
|
3170
|
-
var NotebookCellKind;
|
|
3171
|
-
(function (NotebookCellKind) {
|
|
3172
|
-
NotebookCellKind[NotebookCellKind["Markup"] = 1] = "Markup";
|
|
3173
|
-
NotebookCellKind[NotebookCellKind["Code"] = 2] = "Code";
|
|
3174
|
-
})(NotebookCellKind || (NotebookCellKind = {}));
|
|
3175
2026
|
var NotebookCellExecutionState;
|
|
3176
2027
|
(function (NotebookCellExecutionState) {
|
|
3177
2028
|
NotebookCellExecutionState[NotebookCellExecutionState["Idle"] = 1] = "Idle";
|
|
@@ -3609,6 +2460,13 @@ class ChatResponseProgressPart2 {
|
|
|
3609
2460
|
this.task = task;
|
|
3610
2461
|
}
|
|
3611
2462
|
}
|
|
2463
|
+
class ChatResponseThinkingProgressPart {
|
|
2464
|
+
constructor(value, id, metadata) {
|
|
2465
|
+
this.value = value;
|
|
2466
|
+
this.id = id;
|
|
2467
|
+
this.metadata = metadata;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
3612
2470
|
class ChatResponseWarningPart {
|
|
3613
2471
|
constructor(value) {
|
|
3614
2472
|
if (typeof value !== 'string' && value.isTrusted === true) {
|
|
@@ -3742,6 +2600,12 @@ var ChatLocation;
|
|
|
3742
2600
|
ChatLocation[ChatLocation["Notebook"] = 3] = "Notebook";
|
|
3743
2601
|
ChatLocation[ChatLocation["Editor"] = 4] = "Editor";
|
|
3744
2602
|
})(ChatLocation || (ChatLocation = {}));
|
|
2603
|
+
var ChatSessionStatus;
|
|
2604
|
+
(function (ChatSessionStatus) {
|
|
2605
|
+
ChatSessionStatus[ChatSessionStatus["Failed"] = 0] = "Failed";
|
|
2606
|
+
ChatSessionStatus[ChatSessionStatus["Completed"] = 1] = "Completed";
|
|
2607
|
+
ChatSessionStatus[ChatSessionStatus["InProgress"] = 2] = "InProgress";
|
|
2608
|
+
})(ChatSessionStatus || (ChatSessionStatus = {}));
|
|
3745
2609
|
var ChatResponseReferencePartStatusKind;
|
|
3746
2610
|
(function (ChatResponseReferencePartStatusKind) {
|
|
3747
2611
|
ChatResponseReferencePartStatusKind[ChatResponseReferencePartStatusKind["Complete"] = 1] = "Complete";
|
|
@@ -3791,11 +2655,10 @@ class LanguageModelToolResultPart {
|
|
|
3791
2655
|
this.isError = isError ?? false;
|
|
3792
2656
|
}
|
|
3793
2657
|
}
|
|
3794
|
-
class LanguageModelToolResultPart2 {
|
|
2658
|
+
class LanguageModelToolResultPart2 extends LanguageModelToolResultPart {
|
|
3795
2659
|
constructor(callId, content, isError) {
|
|
3796
|
-
|
|
2660
|
+
super(callId, content, isError);
|
|
3797
2661
|
this.content = content;
|
|
3798
|
-
this.isError = isError ?? false;
|
|
3799
2662
|
}
|
|
3800
2663
|
}
|
|
3801
2664
|
var ChatErrorLevel;
|
|
@@ -3879,11 +2742,12 @@ class LanguageModelToolCallPart {
|
|
|
3879
2742
|
this.input = input;
|
|
3880
2743
|
}
|
|
3881
2744
|
}
|
|
3882
|
-
var
|
|
3883
|
-
(function (
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
2745
|
+
var LanguageModelPartAudience;
|
|
2746
|
+
(function (LanguageModelPartAudience) {
|
|
2747
|
+
LanguageModelPartAudience[LanguageModelPartAudience["Assistant"] = 0] = "Assistant";
|
|
2748
|
+
LanguageModelPartAudience[LanguageModelPartAudience["User"] = 1] = "User";
|
|
2749
|
+
LanguageModelPartAudience[LanguageModelPartAudience["Extension"] = 2] = "Extension";
|
|
2750
|
+
})(LanguageModelPartAudience || (LanguageModelPartAudience = {}));
|
|
3887
2751
|
class LanguageModelTextPart {
|
|
3888
2752
|
constructor(value, audience) {
|
|
3889
2753
|
this.value = value;
|
|
@@ -3929,6 +2793,21 @@ var ChatImageMimeType;
|
|
|
3929
2793
|
ChatImageMimeType["WEBP"] = "image/webp";
|
|
3930
2794
|
ChatImageMimeType["BMP"] = "image/bmp";
|
|
3931
2795
|
})(ChatImageMimeType || (ChatImageMimeType = {}));
|
|
2796
|
+
class LanguageModelThinkingPart {
|
|
2797
|
+
constructor(value, id, metadata) {
|
|
2798
|
+
this.value = value;
|
|
2799
|
+
this.id = id;
|
|
2800
|
+
this.metadata = metadata;
|
|
2801
|
+
}
|
|
2802
|
+
toJSON() {
|
|
2803
|
+
return {
|
|
2804
|
+
$mid: MarshalledId.LanguageModelThinkingPart,
|
|
2805
|
+
value: this.value,
|
|
2806
|
+
id: this.id,
|
|
2807
|
+
metadata: this.metadata,
|
|
2808
|
+
};
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
3932
2811
|
class LanguageModelPromptTsxPart {
|
|
3933
2812
|
constructor(value) {
|
|
3934
2813
|
this.value = value;
|
|
@@ -4055,4 +2934,4 @@ class McpHttpServerDefinition {
|
|
|
4055
2934
|
}
|
|
4056
2935
|
}
|
|
4057
2936
|
|
|
4058
|
-
export { BranchCoverage, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CellErrorStackFrame, ChatCompletionItem, ChatCopyKind, ChatEditingSessionActionOutcome, ChatEditorTabInput, ChatErrorLevel, ChatImageMimeType, ChatLocation, ChatPrepareToolInvocationPart, ChatReferenceBinaryData, ChatReferenceDiagnostic, ChatRequestEditedFileEventKind, ChatRequestEditorData, ChatRequestNotebookData, ChatRequestTurn, ChatResponseAnchorPart, ChatResponseClearToPreviousToolInvocationReason, ChatResponseCodeCitationPart, ChatResponseCodeblockUriPart, ChatResponseCommandButtonPart, ChatResponseConfirmationPart, ChatResponseExtensionsPart, ChatResponseFileTreePart, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseMovePart, ChatResponseMultiDiffPart, ChatResponseNotebookEditPart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponsePullRequestPart, ChatResponseReferencePart, ChatResponseReferencePartStatusKind, ChatResponseTextEditPart, ChatResponseTurn, ChatResponseTurn2, ChatResponseWarningPart, ChatResultFeedbackKind, ChatToolInvocationPart, ChatVariableLevel, CodeAction,
|
|
2937
|
+
export { BranchCoverage, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CellErrorStackFrame, ChatCompletionItem, ChatCopyKind, ChatEditingSessionActionOutcome, ChatEditorTabInput, ChatErrorLevel, ChatImageMimeType, ChatLocation, ChatPrepareToolInvocationPart, ChatReferenceBinaryData, ChatReferenceDiagnostic, ChatRequestEditedFileEventKind, ChatRequestEditorData, ChatRequestNotebookData, ChatRequestTurn, ChatResponseAnchorPart, ChatResponseClearToPreviousToolInvocationReason, ChatResponseCodeCitationPart, ChatResponseCodeblockUriPart, ChatResponseCommandButtonPart, ChatResponseConfirmationPart, ChatResponseExtensionsPart, ChatResponseFileTreePart, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseMovePart, ChatResponseMultiDiffPart, ChatResponseNotebookEditPart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponsePullRequestPart, ChatResponseReferencePart, ChatResponseReferencePartStatusKind, ChatResponseTextEditPart, ChatResponseThinkingProgressPart, ChatResponseTurn, ChatResponseTurn2, ChatResponseWarningPart, ChatResultFeedbackKind, ChatSessionStatus, ChatToolInvocationPart, ChatVariableLevel, CodeAction, CodeActionTriggerKind, CodeLens, Color, ColorFormat, ColorInformation, ColorPresentation, ColorTheme, ColorThemeKind, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadFocus, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomEditorTabInput, CustomExecution, DataBreakpoint, DataTransfer, DataTransferFile, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, DebugStackFrame, DebugThread, DebugVisualization, DeclarationCoverage, DecorationRangeBehavior, Disposable, DocumentDropEdit, DocumentDropOrPasteEditKind, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentPasteEdit, DocumentPasteTriggerKind, DocumentSymbol, EnvironmentVariableMutatorType, EvaluatableExpression, ExtendedLanguageModelToolResult, ExtensionKind, ExtensionMode, ExtensionRuntime, ExternalUriOpenerPriority, FileChangeType, FileCoverage, FileDecoration, FileSystemError, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, HoverVerbosityAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionDisplayLocationKind, InlineCompletionEndOfLifeReasonKind, InlineCompletionTriggerKind, InlineCompletionsDisposeReasonKind, InlineSuggestion, InlineSuggestionList, InlineValueContext, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, InteractiveEditorResponseFeedbackKind, InteractiveSessionVoteDirection, InteractiveWindowInput, InternalDataTransferItem, InternalFileDataTransferItem, KeywordRecognitionStatus, LanguageModelChatMessage, LanguageModelChatMessage2, LanguageModelChatMessageRole, LanguageModelChatToolMode, LanguageModelDataPart, LanguageModelError, LanguageModelPartAudience, LanguageModelPromptTsxPart, LanguageModelTextPart, LanguageModelThinkingPart, LanguageModelToolCallPart, LanguageModelToolExtensionSource, LanguageModelToolMCPSource, LanguageModelToolResult, LanguageModelToolResult2, LanguageModelToolResultPart, LanguageModelToolResultPart2, LanguageStatusSeverity, LinkedEditingRanges, ManagedResolvedAuthority, MarkdownString, McpHttpServerDefinition, McpStdioServerDefinition, MultiDocumentHighlight, NewSymbolName, NewSymbolNameTag, NewSymbolNameTriggerKind, NotebookCellExecutionState, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookDiffEditorTabInput, NotebookEditorRevealType, NotebookEditorTabInput, NotebookKernelSourceAction, NotebookRendererScript, NotebookVariablesRequestKind, ParameterInformation, PartialAcceptTriggerKind, PortAttributes, PortAutoForwardAction, ProcessExecution, ProgressLocation, QuickInputButtonLocation, QuickInputButtons, QuickPickItemKind, Range, RelatedInformationType, RelativePattern, RemoteAuthorityResolverError, ResolvedAuthority, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, SettingsSearchResultKind, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SourceBreakpoint, SourceControlInputBoxValidationType, SpeechToTextStatus, StandardTokenType, StatementCoverage, StatusBarAlignment, SyntaxTokenType, Task, TaskEventKind, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalCompletionItem, TerminalCompletionItemKind, TerminalCompletionList, TerminalEditorTabInput, TerminalExitReason, TerminalLink, TerminalLocation, TerminalOutputAnchor, TerminalProfile, TerminalQuickFixCommand, TerminalQuickFixOpener, TerminalQuickFixType, TerminalShellExecutionCommandLineConfidence, TerminalShellType, TestCoverageCount, TestMessage, TestMessageStackFrame, TestResultState, TestRunProfileBase, TestRunProfileKind, TestRunRequest, TestTag, TextDiffTabInput, TextDocumentChangeReason, TextDocumentSaveReason, TextEditorChangeKind, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextMergeTabInput, TextMultiDiffTabInput, TextTabInput, TextToSpeechStatus, ThemeColor, ThemeIcon, TimelineItem, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, VerboseHover, ViewBadge, ViewColumn, WebviewEditorTabInput, WorkspaceTrustState, asStatusBarItemIdentifier, setBreakpointId, validateTestCoverageCount };
|