@codingame/monaco-vscode-api 20.1.1 → 20.2.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/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/browser.d.ts +2 -0
- package/vscode/src/vs/base/browser/canIUse.d.ts +3 -0
- package/vscode/src/vs/base/browser/contextmenu.d.ts +14 -0
- package/vscode/src/vs/base/browser/cssValue.d.ts +8 -0
- package/vscode/src/vs/base/browser/dnd.d.ts +21 -0
- package/vscode/src/vs/base/browser/dom.d.ts +178 -0
- package/vscode/src/vs/base/browser/domSanitize.d.ts +26 -0
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +3 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +19 -0
- package/vscode/src/vs/base/browser/fonts.d.ts +8 -0
- package/vscode/src/vs/base/browser/iframe.d.ts +10 -0
- package/vscode/src/vs/base/browser/keyboardEvent.d.ts +3 -0
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +18 -0
- package/vscode/src/vs/base/browser/performance.d.ts +22 -0
- package/vscode/src/vs/base/browser/pixelRatio.d.ts +7 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +29 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +5 -0
- package/vscode/src/vs/base/browser/ui/aria/aria.css +6 -1
- package/vscode/src/vs/base/browser/ui/aria/aria.d.ts +6 -0
- package/vscode/src/vs/base/browser/ui/button/button.css +36 -1
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css +11 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css +8 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.css +6 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +14 -0
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.css +6 -0
- package/vscode/src/vs/base/browser/ui/dnd/dnd.css +12 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css +11 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.css +20 -0
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.d.ts +27 -0
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +258 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +37 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +54 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css +34 -6
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css +27 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css +10 -0
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/list/list.css +21 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +17 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +26 -0
- package/vscode/src/vs/base/browser/ui/list/rangeMap.d.ts +29 -0
- package/vscode/src/vs/base/browser/ui/list/rowCache.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.css +5 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.css +29 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.css +31 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +125 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.d.ts +6 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css +16 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +22 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElementOptions.d.ts +98 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarState.d.ts +43 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +11 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +29 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +7 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.css +16 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +289 -0
- package/vscode/src/vs/base/browser/ui/table/table.css +12 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css +14 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.css +6 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +19 -0
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.d.ts +18 -0
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css +38 -3
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +43 -0
- package/vscode/src/vs/base/common/actions.d.ts +3 -0
- package/vscode/src/vs/base/common/arrays.d.ts +193 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +46 -0
- package/vscode/src/vs/base/common/assert.d.ts +28 -0
- package/vscode/src/vs/base/common/async.d.ts +361 -0
- package/vscode/src/vs/base/common/buffer.d.ts +31 -0
- package/vscode/src/vs/base/common/cache.d.ts +11 -0
- package/vscode/src/vs/base/common/cancellation.d.ts +11 -0
- package/vscode/src/vs/base/common/charCode.d.ts +319 -186
- package/vscode/src/vs/base/common/codicons.d.ts +14 -0
- package/vscode/src/vs/base/common/codiconsUtil.d.ts +3 -0
- package/vscode/src/vs/base/common/collections.d.ts +19 -0
- package/vscode/src/vs/base/common/color.d.ts +115 -0
- package/vscode/src/vs/base/common/comparers.d.ts +10 -0
- package/vscode/src/vs/base/common/dataTransfer.d.ts +38 -0
- package/vscode/src/vs/base/common/date.d.ts +15 -0
- package/vscode/src/vs/base/common/diff/diff.d.ts +90 -0
- package/vscode/src/vs/base/common/diff/diffChange.d.ts +29 -0
- package/vscode/src/vs/base/common/equals.d.ts +26 -0
- package/vscode/src/vs/base/common/errorMessage.d.ts +6 -0
- package/vscode/src/vs/base/common/errors.d.ts +26 -0
- package/vscode/src/vs/base/common/event.d.ts +356 -0
- package/vscode/src/vs/base/common/extpath.d.ts +34 -0
- package/vscode/src/vs/base/common/filters.d.ts +22 -0
- package/vscode/src/vs/base/common/functional.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.d.ts +39 -0
- package/vscode/src/vs/base/common/hash.d.ts +12 -0
- package/vscode/src/vs/base/common/history.d.ts +7 -0
- package/vscode/src/vs/base/common/hotReload.d.ts +6 -0
- package/vscode/src/vs/base/common/htmlContent.d.ts +3 -0
- package/vscode/src/vs/base/common/iconLabels.d.ts +9 -0
- package/vscode/src/vs/base/common/ime.d.ts +6 -0
- package/vscode/src/vs/base/common/iterator.d.ts +7 -0
- package/vscode/src/vs/base/common/json.d.ts +98 -0
- package/vscode/src/vs/base/common/jsonSchema.d.ts +5 -0
- package/vscode/src/vs/base/common/keyCodes.d.ts +95 -18
- package/vscode/src/vs/base/common/keybindingLabels.d.ts +13 -0
- package/vscode/src/vs/base/common/keybindings.d.ts +54 -0
- package/vscode/src/vs/base/common/labels.d.ts +41 -0
- package/vscode/src/vs/base/common/lazy.d.ts +12 -0
- package/vscode/src/vs/base/common/lifecycle.d.ts +126 -0
- package/vscode/src/vs/base/common/map.d.ts +33 -0
- package/vscode/src/vs/base/common/marked/marked.d.ts +137 -0
- package/vscode/src/vs/base/common/naturalLanguage/korean.d.ts +8 -0
- package/vscode/src/vs/base/common/network.d.ts +85 -0
- package/vscode/src/vs/base/common/numbers.d.ts +45 -0
- package/vscode/src/vs/base/common/oauth.d.ts +369 -0
- package/vscode/src/vs/base/common/objects.d.ts +19 -0
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +128 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +11 -0
- package/vscode/src/vs/base/common/observableInternal/debugName.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/reducer.d.ts +21 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/utils.d.ts +11 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/observables/constObservable.d.ts +3 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +25 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +3 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.d.ts +5 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +10 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +27 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +7 -0
- package/vscode/src/vs/base/common/observableInternal/transaction.d.ts +9 -0
- package/vscode/src/vs/base/common/observableInternal/utils/promise.d.ts +47 -1
- package/vscode/src/vs/base/common/observableInternal/utils/utils.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.d.ts +3 -0
- package/vscode/src/vs/base/common/performance.d.ts +3 -0
- package/vscode/src/vs/base/common/platform.d.ts +37 -0
- package/vscode/src/vs/base/common/prefixTree.d.ts +23 -0
- package/vscode/src/vs/base/common/process.d.ts +23 -0
- package/vscode/src/vs/base/common/range.d.ts +4 -0
- package/vscode/src/vs/base/common/resources.d.ts +115 -0
- package/vscode/src/vs/base/common/scrollable.d.ts +17 -0
- package/vscode/src/vs/base/common/severity.d.ts +4 -0
- package/vscode/src/vs/base/common/skipList.d.ts +4 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +51 -0
- package/vscode/src/vs/base/common/stream.d.ts +148 -0
- package/vscode/src/vs/base/common/strings.d.ts +134 -0
- package/vscode/src/vs/base/common/symbols.d.ts +3 -0
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +6 -0
- package/vscode/src/vs/base/common/types.d.ts +135 -0
- package/vscode/src/vs/base/common/uint.d.ts +24 -3
- package/vscode/src/vs/base/common/uri.d.ts +131 -0
- package/vscode/src/vs/base/common/worker/webWorker.d.ts +6 -0
- package/vscode/src/vs/base/parts/sandbox/common/electronTypes.d.ts +179 -0
- package/vscode/src/vs/base/parts/sandbox/common/sandboxTypes.d.ts +39 -0
- package/vscode/src/vs/base/parts/storage/common/storage.d.ts +11 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +20 -0
- package/vscode/src/vs/editor/browser/config/fontMeasurements.d.ts +15 -0
- package/vscode/src/vs/editor/browser/config/migrateOptions.d.ts +3 -0
- package/vscode/src/vs/editor/browser/config/tabFocus.d.ts +6 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.d.ts +9 -0
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +5 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.d.ts +3 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +11 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.d.ts +18 -0
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.d.ts +5 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.css +19 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +7 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.d.ts +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.d.ts +13 -1
- package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +9 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.d.ts +6 -0
- package/vscode/src/vs/editor/browser/controller/pointerHandler.d.ts +3 -0
- package/vscode/src/vs/editor/browser/coreCommands.d.ts +24 -0
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +439 -0
- package/vscode/src/vs/editor/browser/editorDom.d.ts +39 -0
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +51 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/atlas.d.ts +65 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +23 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.d.ts +4 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasShelfAllocator.d.ts +5 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.d.ts +10 -0
- package/vscode/src/vs/editor/browser/gpu/bufferDirtyTracker.d.ts +20 -0
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.d.ts +6 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.d.ts +3 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.d.ts +12 -0
- package/vscode/src/vs/editor/browser/gpu/css/media/decorationCssRuleExtractor.css +5 -0
- package/vscode/src/vs/editor/browser/gpu/gpu.d.ts +3 -0
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +33 -0
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +4 -0
- package/vscode/src/vs/editor/browser/gpu/raster/raster.d.ts +47 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/fullFileRenderStrategy.d.ts +20 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.d.ts +10 -0
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +33 -0
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.d.ts +22 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/services/codeEditorService.service.d.ts +3 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +32 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +16 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +17 -1
- package/vscode/src/vs/editor/browser/view/viewController.d.ts +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +19 -0
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css +6 -0
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css +7 -0
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.d.ts +9 -0
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css +16 -0
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.d.ts +20 -0
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.css +6 -0
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +10 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +31 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.d.ts +16 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharSheet.d.ts +3 -3
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapPreBaked.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css +4 -0
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.css +14 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.css +19 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +34 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.d.ts +19 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.d.ts +12 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +32 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css +27 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +20 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.d.ts +6 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.d.ts +7 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +10 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.d.ts +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.d.ts +6 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css +92 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css +6 -0
- package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.d.ts +3 -0
- package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.d.ts +3 -0
- package/vscode/src/vs/editor/common/config/editorConfiguration.d.ts +41 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +862 -0
- package/vscode/src/vs/editor/common/config/fontInfo.d.ts +34 -0
- package/vscode/src/vs/editor/common/coordinatesConverter.d.ts +7 -0
- package/vscode/src/vs/editor/common/core/characterClassifier.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/cursorColumns.d.ts +44 -0
- package/vscode/src/vs/editor/common/core/editOperation.d.ts +14 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +55 -1
- package/vscode/src/vs/editor/common/core/edits/lengthEdit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +9 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/misc/rgba.d.ts +16 -0
- package/vscode/src/vs/editor/common/core/position.d.ts +67 -0
- package/vscode/src/vs/editor/common/core/range.d.ts +140 -0
- package/vscode/src/vs/editor/common/core/ranges/columnRange.d.ts +8 -1
- package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +57 -1
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +30 -0
- package/vscode/src/vs/editor/common/core/ranges/rangeSingleLine.d.ts +7 -1
- package/vscode/src/vs/editor/common/core/selection.d.ts +83 -0
- package/vscode/src/vs/editor/common/core/stringBuilder.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/wordHelper.d.ts +12 -0
- package/vscode/src/vs/editor/common/cursor/cursorAtomicMoveOperations.d.ts +15 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.d.ts +7 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +15 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.d.ts +7 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.d.ts +14 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.d.ts +3 -0
- package/vscode/src/vs/editor/common/cursor/oneCursor.d.ts +3 -0
- package/vscode/src/vs/editor/common/cursorCommon.d.ts +25 -0
- package/vscode/src/vs/editor/common/cursorEvents.d.ts +63 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +23 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts +4 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts +3 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +4 -0
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +16 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +24 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +218 -0
- package/vscode/src/vs/editor/common/editorContextKeys.d.ts +14 -0
- package/vscode/src/vs/editor/common/editorFeatures.d.ts +7 -0
- package/vscode/src/vs/editor/common/encodedTokenAttributes.d.ts +38 -0
- package/vscode/src/vs/editor/common/inputMode.d.ts +3 -0
- package/vscode/src/vs/editor/common/languageSelector.d.ts +6 -0
- package/vscode/src/vs/editor/common/languages/autoIndent.d.ts +16 -0
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/language.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/language.service.d.ts +77 -0
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +195 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +9 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/linkComputer.d.ts +5 -0
- package/vscode/src/vs/editor/common/languages/supports/electricCharacter.d.ts +4 -0
- package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.d.ts +27 -0
- package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.d.ts +80 -0
- package/vscode/src/vs/editor/common/languages/supports/tokenization.d.ts +12 -0
- package/vscode/src/vs/editor/common/languages.d.ts +955 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.d.ts +55 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +10 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.d.ts +6 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.d.ts +16 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.d.ts +8 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.d.ts +7 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.d.ts +23 -1
- package/vscode/src/vs/editor/common/model/decorationProvider.d.ts +13 -0
- package/vscode/src/vs/editor/common/model/fixedArray.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/indentationGuesser.d.ts +9 -0
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +13 -0
- package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +18 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.d.ts +29 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +7 -0
- package/vscode/src/vs/editor/common/model/prefixSumComputer.d.ts +34 -0
- package/vscode/src/vs/editor/common/model/textModel.d.ts +17 -0
- package/vscode/src/vs/editor/common/model/textModelSearch.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +19 -0
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.d.ts +8 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizationTextModelPart.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.d.ts +1 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.d.ts +22 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTokenizationImpl.d.ts +10 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +4 -1
- package/vscode/src/vs/editor/common/model/utils.d.ts +5 -0
- package/vscode/src/vs/editor/common/model.d.ts +440 -0
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +52 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +19 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +19 -0
- package/vscode/src/vs/editor/common/services/languagesAssociations.d.ts +23 -0
- package/vscode/src/vs/editor/common/services/modelService.d.ts +6 -0
- package/vscode/src/vs/editor/common/services/resolverService.service.d.ts +10 -0
- package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.d.ts +3 -0
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +11 -0
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +35 -0
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterLibraryService.service.d.ts +10 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +377 -18
- package/vscode/src/vs/editor/common/textModelBracketPairs.d.ts +56 -3
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +4 -0
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +210 -0
- package/vscode/src/vs/editor/common/textModelGuides.d.ts +28 -1
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.d.ts +53 -0
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.d.ts +24 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensStore.d.ts +3 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +9 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +3 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +11 -0
- package/vscode/src/vs/editor/common/viewEvents.d.ts +85 -2
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +3 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +26 -0
- package/vscode/src/vs/editor/common/viewLayout/linePart.d.ts +8 -1
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +130 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.d.ts +21 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.d.ts +3 -0
- package/vscode/src/vs/editor/common/viewModel/overviewZoneManager.d.ts +6 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +12 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +15 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewModel.d.ts +104 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.css +5 -0
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.css +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css +16 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +15 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css +40 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.css +9 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css +8 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/editorState.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css +5 -0
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +62 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/find/browser/replacePattern.d.ts +18 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css +10 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css +20 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css +5 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css +22 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css +19 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.d.ts +16 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +54 -0
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +11 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.css +16 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +58 -7
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css +9 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLineCommand.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.css +7 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.css +5 -0
- package/vscode/src/vs/editor/contrib/message/browser/messageController.css +18 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +7 -0
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css +29 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css +18 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +6 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css +16 -2
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.d.ts +27 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.css +6 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +15 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.d.ts +22 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +42 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/completionModel.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +118 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +5 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css +19 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css +5 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css +8 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.css +6 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.d.ts +1 -0
- package/vscode/src/vs/editor/editor.worker.start.d.ts +5 -0
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css +6 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css +14 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +73 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +10 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.d.ts +10 -0
- package/vscode/src/vs/nls.d.ts +96 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +31 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.service.d.ts +4 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +3 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +16 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +7 -0
- package/vscode/src/vs/platform/action/common/action.d.ts +32 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +36 -0
- package/vscode/src/vs/platform/actions/browser/floatingMenu.d.ts +4 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css +14 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +3 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +67 -0
- package/vscode/src/vs/platform/actions/common/actions.d.ts +40 -0
- package/vscode/src/vs/platform/actions/common/actions.service.d.ts +20 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +33 -0
- package/vscode/src/vs/platform/commands/common/commands.d.ts +7 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +9 -0
- package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +26 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +126 -0
- package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +30 -0
- package/vscode/src/vs/platform/contextkey/common/scanner.d.ts +21 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +18 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +87 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +22 -0
- package/vscode/src/vs/platform/editor/common/editor.d.ts +231 -0
- package/vscode/src/vs/platform/environment/common/argv.d.ts +3 -0
- package/vscode/src/vs/platform/environment/common/environment.d.ts +5 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +16 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +25 -22
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +4 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +6 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +7 -0
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.d.ts +8 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.d.ts +15 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +944 -0
- package/vscode/src/vs/platform/files/browser/webFileSystemAccess.d.ts +25 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +408 -0
- package/vscode/src/vs/platform/files/common/files.service.d.ts +168 -0
- package/vscode/src/vs/platform/files/common/watcher.d.ts +83 -0
- package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.d.ts +3 -0
- package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +8 -0
- package/vscode/src/vs/platform/instantiation/common/graph.d.ts +4 -0
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +31 -0
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.d.ts +18 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +7 -0
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +27 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +24 -1
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +3 -0
- package/vscode/src/vs/platform/keybinding/common/usLayoutResolvedKeybinding.d.ts +6 -0
- package/vscode/src/vs/platform/label/common/label.service.d.ts +12 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.service.d.ts +51 -0
- package/vscode/src/vs/platform/list/browser/listService.service.d.ts +3 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +30 -0
- package/vscode/src/vs/platform/log/common/log.service.d.ts +52 -0
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +3 -0
- package/vscode/src/vs/platform/markers/common/markers.d.ts +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +185 -0
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +63 -0
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +2 -0
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.d.ts +10 -0
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.d.ts +10 -0
- package/vscode/src/vs/platform/opener/browser/link.css +7 -0
- package/vscode/src/vs/platform/opener/common/opener.d.ts +33 -0
- package/vscode/src/vs/platform/opener/common/opener.service.d.ts +27 -0
- package/vscode/src/vs/platform/product/common/product.d.ts +5 -0
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/progress/common/progress.d.ts +15 -0
- package/vscode/src/vs/platform/progress/common/progress.service.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +115 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.d.ts +14 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +121 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +574 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +63 -0
- package/vscode/src/vs/platform/registry/common/platform.d.ts +14 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.d.ts +7 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +3 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +6 -0
- package/vscode/src/vs/platform/storage/common/storage.d.ts +45 -0
- package/vscode/src/vs/platform/storage/common/storage.service.d.ts +120 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +13 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +40 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +342 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +28 -0
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +4 -0
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +37 -0
- package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +32 -0
- package/vscode/src/vs/platform/theme/common/theme.d.ts +3 -0
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +30 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +13 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.d.ts +32 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.d.ts +32 -0
- package/vscode/src/vs/platform/update/common/update.d.ts +17 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.d.ts +26 -0
- package/vscode/src/vs/platform/url/common/url.d.ts +6 -0
- package/vscode/src/vs/platform/url/common/url.service.d.ts +5 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.service.d.ts +16 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +12 -12
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +4 -0
- package/vscode/src/vs/platform/webContentExtractor/common/webContentExtractor.d.ts +5 -0
- package/vscode/src/vs/platform/window/common/window.d.ts +39 -0
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +71 -1
- package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +36 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +93 -3
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +9 -0
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.d.ts +9 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +13 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +11 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostTestItem.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTesting.d.ts +96 -2
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.d.ts +5 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +8 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +123 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +3 -0
- package/vscode/src/vs/workbench/browser/actions/media/actions.css +12 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +69 -0
- package/vscode/src/vs/workbench/common/composite.d.ts +24 -0
- package/vscode/src/vs/workbench/common/contributions.d.ts +62 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +181 -0
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +17 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.d.ts +15 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +617 -0
- package/vscode/src/vs/workbench/common/panecomposite.d.ts +3 -0
- package/vscode/src/vs/workbench/common/views.d.ts +74 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css +9 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +161 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +124 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +787 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replace.service.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +224 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +508 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.service.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +150 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/webview/common/webview.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +21 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.service.d.ts +41 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +107 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +124 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +267 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +33 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.d.ts +3 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +39 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +29 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +511 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +49 -0
- package/vscode/src/vs/workbench/services/editor/common/editorPaneService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +12 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +41 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +174 -0
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +44 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +64 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +94 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +18 -0
- package/vscode/src/vs/workbench/services/files/common/elevatedFileService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +28 -0
- package/vscode/src/vs/workbench/services/history/common/history.service.d.ts +51 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +69 -0
- package/vscode/src/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.d.ts +3 -0
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +119 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +116 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +54 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.d.ts +3 -0
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +57 -0
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +45 -0
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +30 -0
- package/vscode/src/vs/workbench/services/path/common/pathService.service.d.ts +42 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/search/common/folderQuerySearchTree.d.ts +4 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +28 -0
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +32 -0
- package/vscode/src/vs/workbench/services/search/common/search.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtConversionTypes.d.ts +273 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +327 -0
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +6 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +91 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +10 -0
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +9 -0
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +179 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +74 -0
- package/vscode/src/vs/workbench/services/timer/browser/timerService.service.d.ts +31 -0
- package/vscode/src/vs/workbench/services/title/browser/titleService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +46 -0
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +11 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +32 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +84 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistory.service.d.ts +43 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +63 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +28 -0
|
@@ -2,6 +2,13 @@ export declare const LANGUAGE_DEFAULT = "en";
|
|
|
2
2
|
export interface IProcessEnvironment {
|
|
3
3
|
[key: string]: string | undefined;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* This interface is intentionally not identical to node.js
|
|
7
|
+
* process because it also works in sandboxed environments
|
|
8
|
+
* where the process object is implemented differently. We
|
|
9
|
+
* define the properties here that we need for `platform`
|
|
10
|
+
* to work and nothing else.
|
|
11
|
+
*/
|
|
5
12
|
export interface INodeProcess {
|
|
6
13
|
platform: string;
|
|
7
14
|
arch: string;
|
|
@@ -33,19 +40,49 @@ export declare const isWebWorker: boolean;
|
|
|
33
40
|
export declare const webWorkerOrigin: any;
|
|
34
41
|
export declare const isIOS: boolean;
|
|
35
42
|
export declare const isMobile: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether we run inside a CI environment, such as
|
|
45
|
+
* GH actions or Azure Pipelines.
|
|
46
|
+
*/
|
|
36
47
|
export declare const isCI: boolean;
|
|
37
48
|
export declare const platform: Platform;
|
|
38
49
|
export declare const userAgent: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The language used for the user interface. The format of
|
|
52
|
+
* the string is all lower case (e.g. zh-tw for Traditional
|
|
53
|
+
* Chinese or de for German)
|
|
54
|
+
*/
|
|
39
55
|
export declare const language: string;
|
|
40
56
|
export declare namespace Language {
|
|
41
57
|
function value(): string;
|
|
42
58
|
function isDefaultVariant(): boolean;
|
|
43
59
|
function isDefault(): boolean;
|
|
44
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Desktop: The OS locale or the locale specified by --locale or `argv.json`.
|
|
63
|
+
* Web: matches `platformLocale`.
|
|
64
|
+
*
|
|
65
|
+
* The UI is not necessarily shown in the provided locale.
|
|
66
|
+
*/
|
|
45
67
|
export declare const locale: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* This will always be set to the OS/browser's locale regardless of
|
|
70
|
+
* what was specified otherwise. The format of the string is all
|
|
71
|
+
* lower case (e.g. zh-tw for Traditional Chinese). The UI is not
|
|
72
|
+
* necessarily shown in the provided locale.
|
|
73
|
+
*/
|
|
46
74
|
export declare const platformLocale: string;
|
|
75
|
+
/**
|
|
76
|
+
* The translations that are available through language packs.
|
|
77
|
+
*/
|
|
47
78
|
export declare const translationsConfigFile: string | undefined;
|
|
48
79
|
export declare const setTimeout0IsFaster: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* See https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#:~:text=than%204%2C%20then-,set%20timeout%20to%204,-.
|
|
82
|
+
*
|
|
83
|
+
* Works similarly to `setTimeout(0)` but doesn't suffer from the 4ms artificial delay
|
|
84
|
+
* that browsers set when the nesting level is > 5.
|
|
85
|
+
*/
|
|
49
86
|
export declare const setTimeout0: (callback: () => void) => void;
|
|
50
87
|
export declare enum OperatingSystem {
|
|
51
88
|
Windows = 1,
|
|
@@ -1,28 +1,51 @@
|
|
|
1
1
|
declare const unset: unique symbol;
|
|
2
2
|
export interface IPrefixTreeNode<T> {
|
|
3
|
+
/** Possible children of the node. */
|
|
3
4
|
children?: ReadonlyMap<string, Node<T>>;
|
|
5
|
+
/** The value if data exists for this node in the tree. Mutable. */
|
|
4
6
|
value: T | undefined;
|
|
5
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* A simple prefix tree implementation where a value is stored based on
|
|
10
|
+
* well-defined prefix segments.
|
|
11
|
+
*/
|
|
6
12
|
export declare class WellDefinedPrefixTree<V> {
|
|
7
13
|
readonly root: Node<V>;
|
|
8
14
|
private _size;
|
|
15
|
+
/** Tree size, not including the root. */
|
|
9
16
|
get size(): number;
|
|
17
|
+
/** Gets the top-level nodes of the tree */
|
|
10
18
|
get nodes(): Iterable<IPrefixTreeNode<V>>;
|
|
19
|
+
/** Gets the top-level nodes of the tree */
|
|
11
20
|
get entries(): Iterable<[
|
|
12
21
|
string,
|
|
13
22
|
IPrefixTreeNode<V>
|
|
14
23
|
]>;
|
|
24
|
+
/**
|
|
25
|
+
* Inserts a new value in the prefix tree.
|
|
26
|
+
* @param onNode - called for each node as we descend to the insertion point,
|
|
27
|
+
* including the insertion point itself.
|
|
28
|
+
*/
|
|
15
29
|
insert(key: Iterable<string>, value: V, onNode?: (n: IPrefixTreeNode<V>) => void): void;
|
|
30
|
+
/** Mutates a value in the prefix tree. */
|
|
16
31
|
mutate(key: Iterable<string>, mutate: (value?: V) => V): void;
|
|
32
|
+
/** Mutates nodes along the path in the prefix tree. */
|
|
17
33
|
mutatePath(key: Iterable<string>, mutate: (node: IPrefixTreeNode<V>) => void): void;
|
|
34
|
+
/** Deletes a node from the prefix tree, returning the value it contained. */
|
|
18
35
|
delete(key: Iterable<string>): V | undefined;
|
|
36
|
+
/** Deletes a subtree from the prefix tree, returning the values they contained. */
|
|
19
37
|
deleteRecursive(key: Iterable<string>): Iterable<V>;
|
|
38
|
+
/** Gets a value from the tree. */
|
|
20
39
|
find(key: Iterable<string>): V | undefined;
|
|
40
|
+
/** Gets whether the tree has the key, or a parent of the key, already inserted. */
|
|
21
41
|
hasKeyOrParent(key: Iterable<string>): boolean;
|
|
42
|
+
/** Gets whether the tree has the given key or any children. */
|
|
22
43
|
hasKeyOrChildren(key: Iterable<string>): boolean;
|
|
44
|
+
/** Gets whether the tree has the given key. */
|
|
23
45
|
hasKey(key: Iterable<string>): boolean;
|
|
24
46
|
private getPathToKey;
|
|
25
47
|
private opNode;
|
|
48
|
+
/** Returns an iterable of the tree values in no defined order. */
|
|
26
49
|
values(): Generator<V, void, unknown>;
|
|
27
50
|
}
|
|
28
51
|
declare class Node<T> implements IPrefixTreeNode<T> {
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides safe access to the `cwd` property in node.js, sandboxed or web
|
|
3
|
+
* environments.
|
|
4
|
+
*
|
|
5
|
+
* Note: in web, this property is hardcoded to be `/`.
|
|
6
|
+
*
|
|
7
|
+
* @skipMangle
|
|
8
|
+
*/
|
|
1
9
|
export declare const cwd: () => string;
|
|
10
|
+
/**
|
|
11
|
+
* Provides safe access to the `env` property in node.js, sandboxed or web
|
|
12
|
+
* environments.
|
|
13
|
+
*
|
|
14
|
+
* Note: in web, this property is hardcoded to be `{}`.
|
|
15
|
+
*/
|
|
2
16
|
export declare const env: import("./platform.js").IProcessEnvironment;
|
|
17
|
+
/**
|
|
18
|
+
* Provides safe access to the `platform` property in node.js, sandboxed or web
|
|
19
|
+
* environments.
|
|
20
|
+
*/
|
|
3
21
|
export declare const platform: string;
|
|
22
|
+
/**
|
|
23
|
+
* Provides safe access to the `arch` method in node.js, sandboxed or web
|
|
24
|
+
* environments.
|
|
25
|
+
* Note: `arch` is `undefined` in web
|
|
26
|
+
*/
|
|
4
27
|
export declare const arch: string | undefined;
|
|
@@ -7,6 +7,10 @@ export interface IRangedGroup {
|
|
|
7
7
|
size: number;
|
|
8
8
|
}
|
|
9
9
|
export declare namespace Range {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the intersection between two ranges as a range itself.
|
|
12
|
+
* Returns `{ start: 0, end: 0 }` if the intersection is empty.
|
|
13
|
+
*/
|
|
10
14
|
function intersect(one: IRange, other: IRange): IRange;
|
|
11
15
|
function isEmpty(range: IRange): boolean;
|
|
12
16
|
function intersects(one: IRange, other: IRange): boolean;
|
|
@@ -1,23 +1,106 @@
|
|
|
1
1
|
import { URI } from "./uri.js";
|
|
2
2
|
export declare function originalFSPath(uri: URI): string;
|
|
3
3
|
export interface IExtUri {
|
|
4
|
+
/**
|
|
5
|
+
* Compares two uris.
|
|
6
|
+
*
|
|
7
|
+
* @param uri1 Uri
|
|
8
|
+
* @param uri2 Uri
|
|
9
|
+
* @param ignoreFragment Ignore the fragment (defaults to `false`)
|
|
10
|
+
*/
|
|
4
11
|
compare(uri1: URI, uri2: URI, ignoreFragment?: boolean): number;
|
|
12
|
+
/**
|
|
13
|
+
* Tests whether two uris are equal
|
|
14
|
+
*
|
|
15
|
+
* @param uri1 Uri
|
|
16
|
+
* @param uri2 Uri
|
|
17
|
+
* @param ignoreFragment Ignore the fragment (defaults to `false`)
|
|
18
|
+
*/
|
|
5
19
|
isEqual(uri1: URI | undefined, uri2: URI | undefined, ignoreFragment?: boolean): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Tests whether a `candidate` URI is a parent or equal of a given `base` URI.
|
|
22
|
+
*
|
|
23
|
+
* @param base A uri which is "longer" or at least same length as `parentCandidate`
|
|
24
|
+
* @param parentCandidate A uri which is "shorter" or up to same length as `base`
|
|
25
|
+
* @param ignoreFragment Ignore the fragment (defaults to `false`)
|
|
26
|
+
*/
|
|
6
27
|
isEqualOrParent(base: URI, parentCandidate: URI, ignoreFragment?: boolean): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a key from a resource URI to be used to resource comparison and for resource maps.
|
|
30
|
+
* @see {@link ResourceMap}
|
|
31
|
+
* @param uri Uri
|
|
32
|
+
* @param ignoreFragment Ignore the fragment (defaults to `false`)
|
|
33
|
+
*/
|
|
7
34
|
getComparisonKey(uri: URI, ignoreFragment?: boolean): string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the casing of the path-component of the uri should be ignored.
|
|
37
|
+
*/
|
|
8
38
|
ignorePathCasing(uri: URI): boolean;
|
|
9
39
|
basenameOrAuthority(resource: URI): string;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the basename of the path component of an uri.
|
|
42
|
+
* @param resource
|
|
43
|
+
*/
|
|
10
44
|
basename(resource: URI): string;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the extension of the path component of an uri.
|
|
47
|
+
* @param resource
|
|
48
|
+
*/
|
|
11
49
|
extname(resource: URI): string;
|
|
50
|
+
/**
|
|
51
|
+
* Return a URI representing the directory of a URI path.
|
|
52
|
+
*
|
|
53
|
+
* @param resource The input URI.
|
|
54
|
+
* @returns The URI representing the directory of the input URI.
|
|
55
|
+
*/
|
|
12
56
|
dirname(resource: URI): URI;
|
|
57
|
+
/**
|
|
58
|
+
* Join a URI path with path fragments and normalizes the resulting path.
|
|
59
|
+
*
|
|
60
|
+
* @param resource The input URI.
|
|
61
|
+
* @param pathFragment The path fragment to add to the URI path.
|
|
62
|
+
* @returns The resulting URI.
|
|
63
|
+
*/
|
|
13
64
|
joinPath(resource: URI, ...pathFragment: string[]): URI;
|
|
65
|
+
/**
|
|
66
|
+
* Normalizes the path part of a URI: Resolves `.` and `..` elements with directory names.
|
|
67
|
+
*
|
|
68
|
+
* @param resource The URI to normalize the path.
|
|
69
|
+
* @returns The URI with the normalized path.
|
|
70
|
+
*/
|
|
14
71
|
normalizePath(resource: URI): URI;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param from
|
|
75
|
+
* @param to
|
|
76
|
+
*/
|
|
15
77
|
relativePath(from: URI, to: URI): string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Resolves an absolute or relative path against a base URI.
|
|
80
|
+
* The path can be relative or absolute posix or a Windows path
|
|
81
|
+
*/
|
|
16
82
|
resolvePath(base: URI, path: string): URI;
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the URI path is absolute.
|
|
85
|
+
*/
|
|
17
86
|
isAbsolutePath(resource: URI): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Tests whether the two authorities are the same
|
|
89
|
+
*/
|
|
18
90
|
isEqualAuthority(a1: string, a2: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if the URI path has a trailing path separator
|
|
93
|
+
*/
|
|
19
94
|
hasTrailingPathSeparator(resource: URI, sep?: string): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Removes a trailing path separator, if there's one.
|
|
97
|
+
* Important: Doesn't remove the first slash, it would make the URI invalid
|
|
98
|
+
*/
|
|
20
99
|
removeTrailingPathSeparator(resource: URI, sep?: string): URI;
|
|
100
|
+
/**
|
|
101
|
+
* Adds a trailing path separator to the URI if there isn't one already.
|
|
102
|
+
* For example, c:\ would be unchanged, but c:\users would become c:\users\
|
|
103
|
+
*/
|
|
21
104
|
addTrailingPathSeparator(resource: URI, sep?: string): URI;
|
|
22
105
|
}
|
|
23
106
|
export declare class ExtUri implements IExtUri {
|
|
@@ -42,8 +125,37 @@ export declare class ExtUri implements IExtUri {
|
|
|
42
125
|
removeTrailingPathSeparator(resource: URI, sep?: string): URI;
|
|
43
126
|
addTrailingPathSeparator(resource: URI, sep?: string): URI;
|
|
44
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Unbiased utility that takes uris "as they are". This means it can be interchanged with
|
|
130
|
+
* uri#toString() usages. The following is true
|
|
131
|
+
* ```
|
|
132
|
+
* assertEqual(aUri.toString() === bUri.toString(), exturi.isEqual(aUri, bUri))
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
45
135
|
export declare const extUri: ExtUri;
|
|
136
|
+
/**
|
|
137
|
+
* BIASED utility that _mostly_ ignored the case of urs paths. ONLY use this util if you
|
|
138
|
+
* understand what you are doing.
|
|
139
|
+
*
|
|
140
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
141
|
+
*
|
|
142
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
143
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
144
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
145
|
+
* casing matters.
|
|
146
|
+
*/
|
|
46
147
|
export declare const extUriBiasedIgnorePathCase: ExtUri;
|
|
148
|
+
/**
|
|
149
|
+
* BIASED utility that always ignores the casing of uris paths. ONLY use this util if you
|
|
150
|
+
* understand what you are doing.
|
|
151
|
+
*
|
|
152
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
153
|
+
*
|
|
154
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
155
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
156
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
157
|
+
* casing matters.
|
|
158
|
+
*/
|
|
47
159
|
export declare const extUriIgnorePathCase: ExtUri;
|
|
48
160
|
export declare const isEqual: (uri1: URI | undefined, uri2: URI | undefined, ignoreFragment?: boolean) => boolean;
|
|
49
161
|
export declare const isEqualOrParent: (base: URI, parentCandidate: URI, ignoreFragment?: boolean) => boolean;
|
|
@@ -62,6 +174,9 @@ export declare const hasTrailingPathSeparator: (resource: URI, sep?: string) =>
|
|
|
62
174
|
export declare const removeTrailingPathSeparator: (resource: URI, sep?: string) => URI;
|
|
63
175
|
export declare const addTrailingPathSeparator: (resource: URI, sep?: string) => URI;
|
|
64
176
|
export declare function distinctParents<T>(items: T[], resourceAccessor: (item: T) => URI): T[];
|
|
177
|
+
/**
|
|
178
|
+
* Data URI related helpers.
|
|
179
|
+
*/
|
|
65
180
|
export declare namespace DataUri {
|
|
66
181
|
const META_DATA_LABEL = "label";
|
|
67
182
|
const META_DATA_DESCRIPTION = "description";
|
|
@@ -70,8 +70,17 @@ export interface INewScrollPosition {
|
|
|
70
70
|
scrollTop?: number;
|
|
71
71
|
}
|
|
72
72
|
export interface IScrollableOptions {
|
|
73
|
+
/**
|
|
74
|
+
* Define if the scroll values should always be integers.
|
|
75
|
+
*/
|
|
73
76
|
forceIntegerValues: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Set the duration (ms) used for smooth scroll animations.
|
|
79
|
+
*/
|
|
74
80
|
smoothScrollDuration: number;
|
|
81
|
+
/**
|
|
82
|
+
* A function to schedule an update at the next frame (used for smooth scroll animations).
|
|
83
|
+
*/
|
|
75
84
|
scheduleAtNextAnimationFrame: (callback: () => void) => IDisposable;
|
|
76
85
|
}
|
|
77
86
|
export declare class Scrollable extends Disposable {
|
|
@@ -88,7 +97,15 @@ export declare class Scrollable extends Disposable {
|
|
|
88
97
|
validateScrollPosition(scrollPosition: INewScrollPosition): IScrollPosition;
|
|
89
98
|
getScrollDimensions(): IScrollDimensions;
|
|
90
99
|
setScrollDimensions(dimensions: INewScrollDimensions, useRawScrollPositions: boolean): void;
|
|
100
|
+
/**
|
|
101
|
+
* Returns the final scroll position that the instance will have once the smooth scroll animation concludes.
|
|
102
|
+
* If no scroll animation is occurring, it will return the current scroll position instead.
|
|
103
|
+
*/
|
|
91
104
|
getFutureScrollPosition(): IScrollPosition;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the current scroll position.
|
|
107
|
+
* Note: This result might be an intermediate scroll position, as there might be an ongoing smooth scroll animation.
|
|
108
|
+
*/
|
|
92
109
|
getCurrentScrollPosition(): IScrollPosition;
|
|
93
110
|
setScrollPositionNow(update: INewScrollPosition): void;
|
|
94
111
|
setScrollPositionSmooth(update: INewScrollPosition, reuseAnimation?: boolean): void;
|
|
@@ -5,6 +5,10 @@ declare enum Severity {
|
|
|
5
5
|
Error = 3
|
|
6
6
|
}
|
|
7
7
|
declare namespace Severity {
|
|
8
|
+
/**
|
|
9
|
+
* Parses 'error', 'warning', 'warn', 'info' in call casings
|
|
10
|
+
* and falls back to ignore.
|
|
11
|
+
*/
|
|
8
12
|
function fromValue(value: string): Severity;
|
|
9
13
|
function toString(severity: Severity): string;
|
|
10
14
|
}
|
|
@@ -5,6 +5,10 @@ export declare class SkipList<K, V> implements Map<K, V> {
|
|
|
5
5
|
private _level;
|
|
6
6
|
private _header;
|
|
7
7
|
private _size;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param capacity Capacity at which the list performs best
|
|
11
|
+
*/
|
|
8
12
|
constructor(comparator: (a: K, b: K) => number, capacity?: number);
|
|
9
13
|
get size(): number;
|
|
10
14
|
clear(): void;
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parser for Server-Sent Events (SSE) streams according to the HTML specification.
|
|
3
|
+
* @see https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents an event dispatched from an SSE stream.
|
|
7
|
+
*/
|
|
1
8
|
export interface ISSEEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The event type. If not specified, the type is "message".
|
|
11
|
+
*/
|
|
2
12
|
type: string;
|
|
13
|
+
/**
|
|
14
|
+
* The event data.
|
|
15
|
+
*/
|
|
3
16
|
data: string;
|
|
17
|
+
/**
|
|
18
|
+
* The last event ID, used for reconnection.
|
|
19
|
+
*/
|
|
4
20
|
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Reconnection time in milliseconds.
|
|
23
|
+
*/
|
|
5
24
|
retry?: number;
|
|
6
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Callback function type for event dispatch.
|
|
28
|
+
*/
|
|
7
29
|
export type SSEEventHandler = (event: ISSEEvent) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Parser for Server-Sent Events (SSE) streams.
|
|
32
|
+
*/
|
|
8
33
|
export declare class SSEParser {
|
|
9
34
|
private dataBuffer;
|
|
10
35
|
private eventTypeBuffer;
|
|
@@ -15,12 +40,38 @@ export declare class SSEParser {
|
|
|
15
40
|
private endedOnCR;
|
|
16
41
|
private readonly onEventHandler;
|
|
17
42
|
private readonly decoder;
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new SSE parser.
|
|
45
|
+
* @param onEvent The callback to invoke when an event is dispatched.
|
|
46
|
+
*/
|
|
18
47
|
constructor(onEvent: SSEEventHandler);
|
|
48
|
+
/**
|
|
49
|
+
* Gets the last event ID received by this parser.
|
|
50
|
+
*/
|
|
19
51
|
getLastEventId(): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Gets the reconnection time in milliseconds, if one was specified by the server.
|
|
54
|
+
*/
|
|
20
55
|
getReconnectionTime(): number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Feeds a chunk of the SSE stream to the parser.
|
|
58
|
+
* @param chunk The chunk to parse as a Uint8Array of UTF-8 encoded data.
|
|
59
|
+
*/
|
|
21
60
|
feed(chunk: Uint8Array): void;
|
|
61
|
+
/**
|
|
62
|
+
* Processes a single line from the SSE stream.
|
|
63
|
+
*/
|
|
22
64
|
private processLine;
|
|
65
|
+
/**
|
|
66
|
+
* Processes a field with the given name and value.
|
|
67
|
+
*/
|
|
23
68
|
private processField;
|
|
69
|
+
/**
|
|
70
|
+
* Dispatches the event based on the current buffer states.
|
|
71
|
+
*/
|
|
24
72
|
private dispatchEvent;
|
|
73
|
+
/**
|
|
74
|
+
* Resets the parser state.
|
|
75
|
+
*/
|
|
25
76
|
reset(): void;
|
|
26
77
|
}
|
|
@@ -1,28 +1,118 @@
|
|
|
1
1
|
import { CancellationToken } from "./cancellation.js";
|
|
2
|
+
/**
|
|
3
|
+
* The payload that flows in readable stream events.
|
|
4
|
+
*/
|
|
2
5
|
export type ReadableStreamEventPayload<T> = T | Error | "end";
|
|
3
6
|
export interface ReadableStreamEvents<T> {
|
|
7
|
+
/**
|
|
8
|
+
* The 'data' event is emitted whenever the stream is
|
|
9
|
+
* relinquishing ownership of a chunk of data to a consumer.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: PLEASE UNDERSTAND THAT ADDING A DATA LISTENER CAN
|
|
12
|
+
* TURN THE STREAM INTO FLOWING MODE. IT IS THEREFOR THE
|
|
13
|
+
* LAST LISTENER THAT SHOULD BE ADDED AND NOT THE FIRST
|
|
14
|
+
*
|
|
15
|
+
* Use `listenStream` as a helper method to listen to
|
|
16
|
+
* stream events in the right order.
|
|
17
|
+
*/
|
|
4
18
|
on(event: "data", callback: (data: T) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* Emitted when any error occurs.
|
|
21
|
+
*/
|
|
5
22
|
on(event: "error", callback: (err: Error) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* The 'end' event is emitted when there is no more data
|
|
25
|
+
* to be consumed from the stream. The 'end' event will
|
|
26
|
+
* not be emitted unless the data is completely consumed.
|
|
27
|
+
*/
|
|
6
28
|
on(event: "end", callback: () => void): void;
|
|
7
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* A interface that emulates the API shape of a node.js readable
|
|
32
|
+
* stream for use in native and web environments.
|
|
33
|
+
*/
|
|
8
34
|
export interface ReadableStream<T> extends ReadableStreamEvents<T> {
|
|
35
|
+
/**
|
|
36
|
+
* Stops emitting any events until resume() is called.
|
|
37
|
+
*/
|
|
9
38
|
pause(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Starts emitting events again after pause() was called.
|
|
41
|
+
*/
|
|
10
42
|
resume(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Destroys the stream and stops emitting any event.
|
|
45
|
+
*/
|
|
11
46
|
destroy(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Allows to remove a listener that was previously added.
|
|
49
|
+
*/
|
|
12
50
|
removeListener(event: string, callback: Function): void;
|
|
13
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* A interface that emulates the API shape of a node.js readable
|
|
54
|
+
* for use in native and web environments.
|
|
55
|
+
*/
|
|
14
56
|
export interface Readable<T> {
|
|
57
|
+
/**
|
|
58
|
+
* Read data from the underlying source. Will return
|
|
59
|
+
* null to indicate that no more data can be read.
|
|
60
|
+
*/
|
|
15
61
|
read(): T | null;
|
|
16
62
|
}
|
|
17
63
|
export declare function isReadable<T>(obj: unknown): obj is Readable<T>;
|
|
64
|
+
/**
|
|
65
|
+
* A interface that emulates the API shape of a node.js writeable
|
|
66
|
+
* stream for use in native and web environments.
|
|
67
|
+
*/
|
|
18
68
|
export interface WriteableStream<T> extends ReadableStream<T> {
|
|
69
|
+
/**
|
|
70
|
+
* Writing data to the stream will trigger the on('data')
|
|
71
|
+
* event listener if the stream is flowing and buffer the
|
|
72
|
+
* data otherwise until the stream is flowing.
|
|
73
|
+
*
|
|
74
|
+
* If a `highWaterMark` is configured and writing to the
|
|
75
|
+
* stream reaches this mark, a promise will be returned
|
|
76
|
+
* that should be awaited on before writing more data.
|
|
77
|
+
* Otherwise there is a risk of buffering a large number
|
|
78
|
+
* of data chunks without consumer.
|
|
79
|
+
*/
|
|
19
80
|
write(data: T): void | Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Signals an error to the consumer of the stream via the
|
|
83
|
+
* on('error') handler if the stream is flowing.
|
|
84
|
+
*
|
|
85
|
+
* NOTE: call `end` to signal that the stream has ended,
|
|
86
|
+
* this DOES NOT happen automatically from `error`.
|
|
87
|
+
*/
|
|
20
88
|
error(error: Error): void;
|
|
89
|
+
/**
|
|
90
|
+
* Signals the end of the stream to the consumer. If the
|
|
91
|
+
* result is provided, will trigger the on('data') event
|
|
92
|
+
* listener if the stream is flowing and buffer the data
|
|
93
|
+
* otherwise until the stream is flowing.
|
|
94
|
+
*/
|
|
21
95
|
end(result?: T): void;
|
|
22
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* A stream that has a buffer already read. Returns the original stream
|
|
99
|
+
* that was read as well as the chunks that got read.
|
|
100
|
+
*
|
|
101
|
+
* The `ended` flag indicates if the stream has been fully consumed.
|
|
102
|
+
*/
|
|
23
103
|
export interface ReadableBufferedStream<T> {
|
|
104
|
+
/**
|
|
105
|
+
* The original stream that is being read.
|
|
106
|
+
*/
|
|
24
107
|
stream: ReadableStream<T>;
|
|
108
|
+
/**
|
|
109
|
+
* An array of chunks already read from this stream.
|
|
110
|
+
*/
|
|
25
111
|
buffer: T[];
|
|
112
|
+
/**
|
|
113
|
+
* Signals if the stream has ended or not. If not, consumers
|
|
114
|
+
* should continue to read from the stream until consumed.
|
|
115
|
+
*/
|
|
26
116
|
ended: boolean;
|
|
27
117
|
}
|
|
28
118
|
export declare function isReadableStream<T>(obj: unknown): obj is ReadableStream<T>;
|
|
@@ -42,22 +132,80 @@ export interface ITransformer<Original, Transformed> {
|
|
|
42
132
|
}
|
|
43
133
|
export declare function newWriteableStream<T>(reducer: IReducer<T> | null, options?: WriteableStreamOptions): WriteableStream<T>;
|
|
44
134
|
export interface WriteableStreamOptions {
|
|
135
|
+
/**
|
|
136
|
+
* The number of objects to buffer before WriteableStream#write()
|
|
137
|
+
* signals back that the buffer is full. Can be used to reduce
|
|
138
|
+
* the memory pressure when the stream is not flowing.
|
|
139
|
+
*/
|
|
45
140
|
highWaterMark?: number;
|
|
46
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Helper to fully read a T readable into a T.
|
|
144
|
+
*/
|
|
47
145
|
export declare function consumeReadable<T>(readable: Readable<T>, reducer: IReducer<T>): T;
|
|
146
|
+
/**
|
|
147
|
+
* Helper to read a T readable up to a maximum of chunks. If the limit is
|
|
148
|
+
* reached, will return a readable instead to ensure all data can still
|
|
149
|
+
* be read.
|
|
150
|
+
*/
|
|
48
151
|
export declare function peekReadable<T>(readable: Readable<T>, reducer: IReducer<T>, maxChunks: number): T | Readable<T>;
|
|
152
|
+
/**
|
|
153
|
+
* Helper to fully read a T stream into a T or consuming
|
|
154
|
+
* a stream fully, awaiting all the events without caring
|
|
155
|
+
* about the data.
|
|
156
|
+
*/
|
|
49
157
|
export declare function consumeStream<T, R = T>(stream: ReadableStreamEvents<T>, reducer: IReducer<T, R>): Promise<R>;
|
|
50
158
|
export declare function consumeStream(stream: ReadableStreamEvents<unknown>): Promise<undefined>;
|
|
51
159
|
export interface IStreamListener<T> {
|
|
160
|
+
/**
|
|
161
|
+
* The 'data' event is emitted whenever the stream is
|
|
162
|
+
* relinquishing ownership of a chunk of data to a consumer.
|
|
163
|
+
*/
|
|
52
164
|
onData(data: T): void;
|
|
165
|
+
/**
|
|
166
|
+
* Emitted when any error occurs.
|
|
167
|
+
*/
|
|
53
168
|
onError(err: Error): void;
|
|
169
|
+
/**
|
|
170
|
+
* The 'end' event is emitted when there is no more data
|
|
171
|
+
* to be consumed from the stream. The 'end' event will
|
|
172
|
+
* not be emitted unless the data is completely consumed.
|
|
173
|
+
*/
|
|
54
174
|
onEnd(): void;
|
|
55
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Helper to listen to all events of a T stream in proper order.
|
|
178
|
+
*/
|
|
56
179
|
export declare function listenStream<T>(stream: ReadableStreamEvents<T>, listener: IStreamListener<T>, token?: CancellationToken): void;
|
|
180
|
+
/**
|
|
181
|
+
* Helper to peek up to `maxChunks` into a stream. The return type signals if
|
|
182
|
+
* the stream has ended or not. If not, caller needs to add a `data` listener
|
|
183
|
+
* to continue reading.
|
|
184
|
+
*/
|
|
57
185
|
export declare function peekStream<T>(stream: ReadableStream<T>, maxChunks: number): Promise<ReadableBufferedStream<T>>;
|
|
186
|
+
/**
|
|
187
|
+
* Helper to create a readable stream from an existing T.
|
|
188
|
+
*/
|
|
58
189
|
export declare function toStream<T>(t: T, reducer: IReducer<T>): ReadableStream<T>;
|
|
190
|
+
/**
|
|
191
|
+
* Helper to create an empty stream
|
|
192
|
+
*/
|
|
59
193
|
export declare function emptyStream(): ReadableStream<never>;
|
|
194
|
+
/**
|
|
195
|
+
* Helper to convert a T into a Readable<T>.
|
|
196
|
+
*/
|
|
60
197
|
export declare function toReadable<T>(t: T): Readable<T>;
|
|
198
|
+
/**
|
|
199
|
+
* Helper to transform a readable stream into another stream.
|
|
200
|
+
*/
|
|
61
201
|
export declare function transform<Original, Transformed>(stream: ReadableStreamEvents<Original>, transformer: ITransformer<Original, Transformed>, reducer: IReducer<Transformed>): ReadableStream<Transformed>;
|
|
202
|
+
/**
|
|
203
|
+
* Helper to take an existing readable that will
|
|
204
|
+
* have a prefix injected to the beginning.
|
|
205
|
+
*/
|
|
62
206
|
export declare function prefixedReadable<T>(prefix: T, readable: Readable<T>, reducer: IReducer<T>): Readable<T>;
|
|
207
|
+
/**
|
|
208
|
+
* Helper to take an existing stream that will
|
|
209
|
+
* have a prefix injected to the beginning.
|
|
210
|
+
*/
|
|
63
211
|
export declare function prefixedStream<T>(prefix: T, stream: ReadableStream<T>, reducer: IReducer<T>): ReadableStream<T>;
|