@codingame/monaco-vscode-api 20.1.0 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2 -2
- 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
|
@@ -8,15 +8,50 @@ export declare function isThenable<T>(obj: unknown): obj is Promise<T>;
|
|
|
8
8
|
export interface CancelablePromise<T> extends Promise<T> {
|
|
9
9
|
cancel(): void;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns a promise that can be cancelled using the provided cancellation token.
|
|
13
|
+
*
|
|
14
|
+
* @remarks When cancellation is requested, the promise will be rejected with a {@link CancellationError}.
|
|
15
|
+
* If the promise resolves to a disposable object, it will be automatically disposed when cancellation
|
|
16
|
+
* is requested.
|
|
17
|
+
*
|
|
18
|
+
* @param callback A function that accepts a cancellation token and returns a promise
|
|
19
|
+
* @returns A promise that can be cancelled
|
|
20
|
+
*/
|
|
11
21
|
export declare function createCancelablePromise<T>(callback: (token: CancellationToken) => Promise<T>): CancelablePromise<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a promise that resolves with `undefined` as soon as the passed token is cancelled.
|
|
24
|
+
* @see {@link raceCancellationError}
|
|
25
|
+
*/
|
|
12
26
|
export declare function raceCancellation<T>(promise: Promise<T>, token: CancellationToken): Promise<T | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a promise that resolves with `defaultValue` as soon as the passed token is cancelled.
|
|
29
|
+
* @see {@link raceCancellationError}
|
|
30
|
+
*/
|
|
13
31
|
export declare function raceCancellation<T>(promise: Promise<T>, token: CancellationToken, defaultValue: T): Promise<T>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a promise that rejects with an {@CancellationError} as soon as the passed token is cancelled.
|
|
34
|
+
* @see {@link raceCancellation}
|
|
35
|
+
*/
|
|
14
36
|
export declare function raceCancellationError<T>(promise: Promise<T>, token: CancellationToken): Promise<T>;
|
|
37
|
+
/**
|
|
38
|
+
* Wraps a cancellable promise such that it is no cancellable. Can be used to
|
|
39
|
+
* avoid issues with shared promises that would normally be returned as
|
|
40
|
+
* cancellable to consumers.
|
|
41
|
+
*/
|
|
15
42
|
export declare function notCancellablePromise<T>(promise: CancelablePromise<T>): Promise<T>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns as soon as one of the promises resolves or rejects and cancels remaining promises
|
|
45
|
+
*/
|
|
16
46
|
export declare function raceCancellablePromises<T>(cancellablePromises: (CancelablePromise<T> | Promise<T>)[]): CancelablePromise<T>;
|
|
17
47
|
export declare function raceTimeout<T>(promise: Promise<T>, timeout: number, onTimeout?: () => void): Promise<T | undefined>;
|
|
18
48
|
export declare function raceFilter<T>(promises: Promise<T>[], filter: (result: T) => boolean): Promise<T | undefined>;
|
|
19
49
|
export declare function asPromise<T>(callback: () => T | Thenable<T>): Promise<T>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates and returns a new promise, plus its `resolve` and `reject` callbacks.
|
|
52
|
+
*
|
|
53
|
+
* Replace with standardized [`Promise.withResolvers`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers) once it is supported
|
|
54
|
+
*/
|
|
20
55
|
export declare function promiseWithResolvers<T>(): {
|
|
21
56
|
promise: Promise<T>;
|
|
22
57
|
resolve: (value: T | PromiseLike<T>) => void;
|
|
@@ -25,6 +60,32 @@ export declare function promiseWithResolvers<T>(): {
|
|
|
25
60
|
export interface ITask<T> {
|
|
26
61
|
(): T;
|
|
27
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* A helper to prevent accumulation of sequential async tasks.
|
|
65
|
+
*
|
|
66
|
+
* Imagine a mail man with the sole task of delivering letters. As soon as
|
|
67
|
+
* a letter submitted for delivery, he drives to the destination, delivers it
|
|
68
|
+
* and returns to his base. Imagine that during the trip, N more letters were submitted.
|
|
69
|
+
* When the mail man returns, he picks those N letters and delivers them all in a
|
|
70
|
+
* single trip. Even though N+1 submissions occurred, only 2 deliveries were made.
|
|
71
|
+
*
|
|
72
|
+
* The throttler implements this via the queue() method, by providing it a task
|
|
73
|
+
* factory. Following the example:
|
|
74
|
+
*
|
|
75
|
+
* const throttler = new Throttler();
|
|
76
|
+
* const letters = [];
|
|
77
|
+
*
|
|
78
|
+
* function deliver() {
|
|
79
|
+
* const lettersToDeliver = letters;
|
|
80
|
+
* letters = [];
|
|
81
|
+
* return makeTheTrip(lettersToDeliver);
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* function onLetterReceived(l) {
|
|
85
|
+
* letters.push(l);
|
|
86
|
+
* throttler.queue(deliver);
|
|
87
|
+
* }
|
|
88
|
+
*/
|
|
28
89
|
export declare class Throttler implements IDisposable {
|
|
29
90
|
private activePromise;
|
|
30
91
|
private queuedPromise;
|
|
@@ -43,6 +104,29 @@ export declare class SequencerByKey<TKey> {
|
|
|
43
104
|
queue<T>(key: TKey, promiseTask: ITask<Promise<T>>): Promise<T>;
|
|
44
105
|
keys(): IterableIterator<TKey>;
|
|
45
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* A helper to delay (debounce) execution of a task that is being requested often.
|
|
109
|
+
*
|
|
110
|
+
* Following the throttler, now imagine the mail man wants to optimize the number of
|
|
111
|
+
* trips proactively. The trip itself can be long, so he decides not to make the trip
|
|
112
|
+
* as soon as a letter is submitted. Instead he waits a while, in case more
|
|
113
|
+
* letters are submitted. After said waiting period, if no letters were submitted, he
|
|
114
|
+
* decides to make the trip. Imagine that N more letters were submitted after the first
|
|
115
|
+
* one, all within a short period of time between each other. Even though N+1
|
|
116
|
+
* submissions occurred, only 1 delivery was made.
|
|
117
|
+
*
|
|
118
|
+
* The delayer offers this behavior via the trigger() method, into which both the task
|
|
119
|
+
* to be executed and the waiting period (delay) must be passed in as arguments. Following
|
|
120
|
+
* the example:
|
|
121
|
+
*
|
|
122
|
+
* const delayer = new Delayer(WAITING_PERIOD);
|
|
123
|
+
* const letters = [];
|
|
124
|
+
*
|
|
125
|
+
* function letterReceived(l) {
|
|
126
|
+
* letters.push(l);
|
|
127
|
+
* delayer.trigger(() => { return makeTheTrip(); });
|
|
128
|
+
* }
|
|
129
|
+
*/
|
|
46
130
|
export declare class Delayer<T> implements IDisposable {
|
|
47
131
|
defaultDelay: number | typeof MicrotaskDelay;
|
|
48
132
|
private deferred;
|
|
@@ -57,6 +141,15 @@ export declare class Delayer<T> implements IDisposable {
|
|
|
57
141
|
private cancelTimeout;
|
|
58
142
|
dispose(): void;
|
|
59
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* A helper to delay execution of a task that is being requested often, while
|
|
146
|
+
* preventing accumulation of consecutive executions, while the task runs.
|
|
147
|
+
*
|
|
148
|
+
* The mail man is clever and waits for a certain amount of time, before going
|
|
149
|
+
* out to deliver letters. While the mail man is going out, more letters arrive
|
|
150
|
+
* and can only be delivered once he is back. Once he is back the mail man will
|
|
151
|
+
* do one more trip to deliver the letters that have accumulated while he was out.
|
|
152
|
+
*/
|
|
60
153
|
export declare class ThrottledDelayer<T> {
|
|
61
154
|
private delayer;
|
|
62
155
|
private throttler;
|
|
@@ -66,6 +159,9 @@ export declare class ThrottledDelayer<T> {
|
|
|
66
159
|
cancel(): void;
|
|
67
160
|
dispose(): void;
|
|
68
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* A barrier that is initially closed and then becomes opened permanently.
|
|
164
|
+
*/
|
|
69
165
|
export declare class Barrier {
|
|
70
166
|
private _isOpen;
|
|
71
167
|
private _promise;
|
|
@@ -75,6 +171,10 @@ export declare class Barrier {
|
|
|
75
171
|
open(): void;
|
|
76
172
|
wait(): Promise<boolean>;
|
|
77
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* A barrier that is initially closed and then becomes opened permanently after a certain period of
|
|
176
|
+
* time or when open is called explicitly
|
|
177
|
+
*/
|
|
78
178
|
export declare class AutoOpenBarrier extends Barrier {
|
|
79
179
|
private readonly _timeout;
|
|
80
180
|
constructor(autoOpenTimeMs: number);
|
|
@@ -82,9 +182,34 @@ export declare class AutoOpenBarrier extends Barrier {
|
|
|
82
182
|
}
|
|
83
183
|
export declare function timeout(millis: number): CancelablePromise<void>;
|
|
84
184
|
export declare function timeout(millis: number, token: CancellationToken): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Creates a timeout that can be disposed using its returned value.
|
|
187
|
+
* @param handler The timeout handler.
|
|
188
|
+
* @param timeout An optional timeout in milliseconds.
|
|
189
|
+
* @param store An optional {@link DisposableStore} that will have the timeout disposable managed automatically.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* const store = new DisposableStore;
|
|
193
|
+
* // Call the timeout after 1000ms at which point it will be automatically
|
|
194
|
+
* // evicted from the store.
|
|
195
|
+
* const timeoutDisposable = disposableTimeout(() => {}, 1000, store);
|
|
196
|
+
*
|
|
197
|
+
* if (foo) {
|
|
198
|
+
* // Cancel the timeout and evict it from store.
|
|
199
|
+
* timeoutDisposable.dispose();
|
|
200
|
+
* }
|
|
201
|
+
*/
|
|
85
202
|
export declare function disposableTimeout(handler: () => void, timeout?: number, store?: DisposableStore): IDisposable;
|
|
203
|
+
/**
|
|
204
|
+
* Runs the provided list of promise factories in sequential order. The returned
|
|
205
|
+
* promise will complete to an array of results from each promise.
|
|
206
|
+
*/
|
|
86
207
|
export declare function sequence<T>(promiseFactories: ITask<Promise<T>>[]): Promise<T[]>;
|
|
87
208
|
export declare function first<T>(promiseFactories: ITask<Promise<T>>[], shouldStop?: (t: T) => boolean, defaultValue?: T | null): Promise<T | null>;
|
|
209
|
+
/**
|
|
210
|
+
* Returns the result of the first promise that matches the "shouldStop",
|
|
211
|
+
* running all promises in parallel. Supports cancelable promises.
|
|
212
|
+
*/
|
|
88
213
|
export declare function firstParallel<T>(promiseList: Promise<T>[], shouldStop?: (t: T) => boolean, defaultValue?: T | null): Promise<T | null>;
|
|
89
214
|
export declare function firstParallel<T, R extends T>(promiseList: Promise<T>[], shouldStop: (t: T) => t is R, defaultValue?: R | null): Promise<R | null>;
|
|
90
215
|
export interface ILimiter<T> {
|
|
@@ -92,6 +217,10 @@ export interface ILimiter<T> {
|
|
|
92
217
|
queue(factory: ITask<Promise<T>>): Promise<T>;
|
|
93
218
|
clear(): void;
|
|
94
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* A helper to queue N promises and run them all with a max degree of parallelism. The helper
|
|
222
|
+
* ensures that at any time no more than M promises are running at the same time.
|
|
223
|
+
*/
|
|
95
224
|
export declare class Limiter<T> implements ILimiter<T> {
|
|
96
225
|
private _size;
|
|
97
226
|
private _isDisposed;
|
|
@@ -100,6 +229,11 @@ export declare class Limiter<T> implements ILimiter<T> {
|
|
|
100
229
|
private readonly outstandingPromises;
|
|
101
230
|
private readonly _onDrained;
|
|
102
231
|
constructor(maxDegreeOfParalellism: number);
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @returns A promise that resolved when all work is done (onDrained) or when
|
|
235
|
+
* there is nothing to do
|
|
236
|
+
*/
|
|
103
237
|
whenIdle(): Promise<void>;
|
|
104
238
|
get onDrained(): Event<void>;
|
|
105
239
|
get size(): number;
|
|
@@ -109,14 +243,29 @@ export declare class Limiter<T> implements ILimiter<T> {
|
|
|
109
243
|
clear(): void;
|
|
110
244
|
dispose(): void;
|
|
111
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* A queue is handles one promise at a time and guarantees that at any time only one promise is executing.
|
|
248
|
+
*/
|
|
112
249
|
export declare class Queue<T> extends Limiter<T> {
|
|
113
250
|
constructor();
|
|
114
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Same as `Queue`, ensures that only 1 task is executed at the same time. The difference to `Queue` is that
|
|
254
|
+
* there is only 1 task about to be scheduled next. As such, calling `queue` while a task is executing will
|
|
255
|
+
* replace the currently queued task until it executes.
|
|
256
|
+
*
|
|
257
|
+
* As such, the returned promise may not be from the factory that is passed in but from the next factory that
|
|
258
|
+
* is running after having called `queue`.
|
|
259
|
+
*/
|
|
115
260
|
export declare class LimitedQueue {
|
|
116
261
|
private readonly sequentializer;
|
|
117
262
|
private tasks;
|
|
118
263
|
queue(factory: ITask<Promise<void>>): Promise<void>;
|
|
119
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* A helper to organize queues per resource. The ResourceQueue makes sure to manage queues per resource
|
|
267
|
+
* by disposing them once the queue is empty.
|
|
268
|
+
*/
|
|
120
269
|
export declare class ResourceQueue implements IDisposable {
|
|
121
270
|
private readonly queues;
|
|
122
271
|
private readonly drainers;
|
|
@@ -131,13 +280,27 @@ export declare class ResourceQueue implements IDisposable {
|
|
|
131
280
|
dispose(): void;
|
|
132
281
|
}
|
|
133
282
|
export type Task<T = void> = () => (Promise<T> | T);
|
|
283
|
+
/**
|
|
284
|
+
* Processes tasks in the order they were scheduled.
|
|
285
|
+
*/
|
|
134
286
|
export declare class TaskQueue {
|
|
135
287
|
private _runningTask;
|
|
136
288
|
private _pendingTasks;
|
|
289
|
+
/**
|
|
290
|
+
* Waits for the current and pending tasks to finish, then runs and awaits the given task.
|
|
291
|
+
* If the task is skipped because of clearPending, the promise is rejected with a CancellationError.
|
|
292
|
+
*/
|
|
137
293
|
schedule<T>(task: Task<T>): Promise<T>;
|
|
294
|
+
/**
|
|
295
|
+
* Waits for the current and pending tasks to finish, then runs and awaits the given task.
|
|
296
|
+
* If the task is skipped because of clearPending, the promise is resolved with undefined.
|
|
297
|
+
*/
|
|
138
298
|
scheduleSkipIfCleared<T>(task: Task<T>): Promise<T | undefined>;
|
|
139
299
|
private _runIfNotRunning;
|
|
140
300
|
private _processQueue;
|
|
301
|
+
/**
|
|
302
|
+
* Clears all pending tasks. Does not cancel the currently running task.
|
|
303
|
+
*/
|
|
141
304
|
clearPending(): void;
|
|
142
305
|
}
|
|
143
306
|
export declare class TimeoutTimer implements IDisposable {
|
|
@@ -163,16 +326,36 @@ export declare class RunOnceScheduler implements IDisposable {
|
|
|
163
326
|
private timeout;
|
|
164
327
|
private timeoutHandler;
|
|
165
328
|
constructor(runner: (...args: any[]) => void, delay: number);
|
|
329
|
+
/**
|
|
330
|
+
* Dispose RunOnceScheduler
|
|
331
|
+
*/
|
|
166
332
|
dispose(): void;
|
|
333
|
+
/**
|
|
334
|
+
* Cancel current scheduled runner (if any).
|
|
335
|
+
*/
|
|
167
336
|
cancel(): void;
|
|
337
|
+
/**
|
|
338
|
+
* Cancel previous runner (if any) & schedule a new runner.
|
|
339
|
+
*/
|
|
168
340
|
schedule(delay?: number): void;
|
|
169
341
|
get delay(): number;
|
|
170
342
|
set delay(value: number);
|
|
343
|
+
/**
|
|
344
|
+
* Returns true if scheduled.
|
|
345
|
+
*/
|
|
171
346
|
isScheduled(): boolean;
|
|
172
347
|
flush(): void;
|
|
173
348
|
private onTimeout;
|
|
174
349
|
protected doRun(): void;
|
|
175
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Same as `RunOnceScheduler`, but doesn't count the time spent in sleep mode.
|
|
353
|
+
* > **NOTE**: Only offers 1s resolution.
|
|
354
|
+
*
|
|
355
|
+
* When calling `setTimeout` with 3hrs, and putting the computer immediately to sleep
|
|
356
|
+
* for 8hrs, `setTimeout` will fire **as soon as the computer wakes from sleep**. But
|
|
357
|
+
* this scheduler will execute 3hrs **after waking the computer from sleep**.
|
|
358
|
+
*/
|
|
176
359
|
export declare class ProcessTimeRunOnceScheduler {
|
|
177
360
|
private runner;
|
|
178
361
|
private timeout;
|
|
@@ -182,7 +365,13 @@ export declare class ProcessTimeRunOnceScheduler {
|
|
|
182
365
|
constructor(runner: () => void, delay: number);
|
|
183
366
|
dispose(): void;
|
|
184
367
|
cancel(): void;
|
|
368
|
+
/**
|
|
369
|
+
* Cancel previous runner (if any) & schedule a new runner.
|
|
370
|
+
*/
|
|
185
371
|
schedule(delay?: number): void;
|
|
372
|
+
/**
|
|
373
|
+
* Returns true if scheduled.
|
|
374
|
+
*/
|
|
186
375
|
isScheduled(): boolean;
|
|
187
376
|
private onInterval;
|
|
188
377
|
}
|
|
@@ -194,11 +383,32 @@ export declare class RunOnceWorker<T> extends RunOnceScheduler {
|
|
|
194
383
|
dispose(): void;
|
|
195
384
|
}
|
|
196
385
|
export interface IThrottledWorkerOptions {
|
|
386
|
+
/**
|
|
387
|
+
* maximum of units the worker will pass onto handler at once
|
|
388
|
+
*/
|
|
197
389
|
maxWorkChunkSize: number;
|
|
390
|
+
/**
|
|
391
|
+
* maximum of units the worker will keep in memory for processing
|
|
392
|
+
*/
|
|
198
393
|
maxBufferedWork: number | undefined;
|
|
394
|
+
/**
|
|
395
|
+
* delay before processing the next round of chunks when chunk size exceeds limits
|
|
396
|
+
*/
|
|
199
397
|
throttleDelay: number;
|
|
398
|
+
/**
|
|
399
|
+
* When enabled will guarantee that two distinct calls to `work()` are not executed
|
|
400
|
+
* without throttle delay between them.
|
|
401
|
+
* Otherwise if the worker isn't currently throttling it will execute work immediately.
|
|
402
|
+
*/
|
|
200
403
|
waitThrottleDelayBetweenWorkUnits?: boolean;
|
|
201
404
|
}
|
|
405
|
+
/**
|
|
406
|
+
* The `ThrottledWorker` will accept units of work `T`
|
|
407
|
+
* to handle. The contract is:
|
|
408
|
+
* * there is a maximum of units the worker can handle at once (via `maxWorkChunkSize`)
|
|
409
|
+
* * there is a maximum of units the worker will keep in memory for processing (via `maxBufferedWork`)
|
|
410
|
+
* * after having handled `maxWorkChunkSize` units, the worker needs to rest (via `throttleDelay`)
|
|
411
|
+
*/
|
|
202
412
|
export declare class ThrottledWorker<T> extends Disposable {
|
|
203
413
|
private options;
|
|
204
414
|
private readonly handler;
|
|
@@ -207,7 +417,20 @@ export declare class ThrottledWorker<T> extends Disposable {
|
|
|
207
417
|
private disposed;
|
|
208
418
|
private lastExecutionTime;
|
|
209
419
|
constructor(options: IThrottledWorkerOptions, handler: (units: T[]) => void);
|
|
420
|
+
/**
|
|
421
|
+
* The number of work units that are pending to be processed.
|
|
422
|
+
*/
|
|
210
423
|
get pending(): number;
|
|
424
|
+
/**
|
|
425
|
+
* Add units to be worked on. Use `pending` to figure out
|
|
426
|
+
* how many units are not yet processed after this method
|
|
427
|
+
* was called.
|
|
428
|
+
*
|
|
429
|
+
* @returns whether the work was accepted or not. If the
|
|
430
|
+
* worker is disposed, it will not accept any more work.
|
|
431
|
+
* If the number of pending units would become larger
|
|
432
|
+
* than `maxPendingWork`, more work will also not be accepted.
|
|
433
|
+
*/
|
|
211
434
|
work(units: readonly T[]): boolean;
|
|
212
435
|
private doWork;
|
|
213
436
|
private scheduleThrottler;
|
|
@@ -218,6 +441,27 @@ export interface IdleDeadline {
|
|
|
218
441
|
timeRemaining(): number;
|
|
219
442
|
}
|
|
220
443
|
type IdleApi = Pick<typeof globalThis, "requestIdleCallback" | "cancelIdleCallback">;
|
|
444
|
+
/**
|
|
445
|
+
* Execute the callback the next time the browser is idle, returning an
|
|
446
|
+
* {@link IDisposable} that will cancel the callback when disposed. This wraps
|
|
447
|
+
* [requestIdleCallback] so it will fallback to [setTimeout] if the environment
|
|
448
|
+
* doesn't support it.
|
|
449
|
+
*
|
|
450
|
+
* @param callback The callback to run when idle, this includes an
|
|
451
|
+
* [IdleDeadline] that provides the time alloted for the idle callback by the
|
|
452
|
+
* browser. Not respecting this deadline will result in a degraded user
|
|
453
|
+
* experience.
|
|
454
|
+
* @param timeout A timeout at which point to queue no longer wait for an idle
|
|
455
|
+
* callback but queue it on the regular event loop (like setTimeout). Typically
|
|
456
|
+
* this should not be used.
|
|
457
|
+
*
|
|
458
|
+
* [IdleDeadline]: https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline
|
|
459
|
+
* [requestIdleCallback]: https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback
|
|
460
|
+
* [setTimeout]: https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout
|
|
461
|
+
*
|
|
462
|
+
* **Note** that there is `dom.ts#runWhenWindowIdle` which is better suited when running inside a browser
|
|
463
|
+
* context
|
|
464
|
+
*/
|
|
221
465
|
export declare let runWhenGlobalIdle: (callback: (idle: IdleDeadline) => void, timeout?: number) => IDisposable;
|
|
222
466
|
export declare let _runWhenIdle: (targetWindow: IdleApi, callback: (idle: IdleDeadline) => void, timeout?: number) => IDisposable;
|
|
223
467
|
export declare abstract class AbstractIdleValue<T> {
|
|
@@ -231,6 +475,12 @@ export declare abstract class AbstractIdleValue<T> {
|
|
|
231
475
|
get value(): T;
|
|
232
476
|
get isInitialized(): boolean;
|
|
233
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* An `IdleValue` that always uses the current window (which might be throttled or inactive)
|
|
480
|
+
*
|
|
481
|
+
* **Note** that there is `dom.ts#WindowIdleValue` which is better suited when running inside a browser
|
|
482
|
+
* context
|
|
483
|
+
*/
|
|
234
484
|
export declare class GlobalIdleValue<T> extends AbstractIdleValue<T> {
|
|
235
485
|
constructor(executor: () => T);
|
|
236
486
|
}
|
|
@@ -247,6 +497,9 @@ export interface ITaskSequentializerWithRunningTask {
|
|
|
247
497
|
export interface ITaskSequentializerWithQueuedTask {
|
|
248
498
|
readonly queued: IQueuedTask;
|
|
249
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* @deprecated use `LimitedQueue` instead for an easier to use API
|
|
502
|
+
*/
|
|
250
503
|
export declare class TaskSequentializer {
|
|
251
504
|
private _running?;
|
|
252
505
|
private _queued?;
|
|
@@ -256,10 +509,23 @@ export declare class TaskSequentializer {
|
|
|
256
509
|
run(taskId: number, promise: Promise<void>, onCancel?: () => void): Promise<void>;
|
|
257
510
|
private doneRunning;
|
|
258
511
|
private runQueued;
|
|
512
|
+
/**
|
|
513
|
+
* Note: the promise to schedule as next run MUST itself call `run`.
|
|
514
|
+
* Otherwise, this sequentializer will report `false` for `isRunning`
|
|
515
|
+
* even when this task is running. Missing this detail means that
|
|
516
|
+
* suddenly multiple tasks will run in parallel.
|
|
517
|
+
*/
|
|
259
518
|
queue(run: ITask<Promise<void>>): Promise<void>;
|
|
260
519
|
hasQueued(): this is ITaskSequentializerWithQueuedTask;
|
|
261
520
|
join(): Promise<void>;
|
|
262
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* The `IntervalCounter` allows to count the number
|
|
524
|
+
* of calls to `increment()` over a duration of
|
|
525
|
+
* `interval`. This utility can be used to conditionally
|
|
526
|
+
* throttle a frequent task when a certain threshold
|
|
527
|
+
* is reached.
|
|
528
|
+
*/
|
|
263
529
|
export declare class IntervalCounter {
|
|
264
530
|
private readonly interval;
|
|
265
531
|
private readonly nowFn;
|
|
@@ -269,6 +535,9 @@ export declare class IntervalCounter {
|
|
|
269
535
|
increment(): number;
|
|
270
536
|
}
|
|
271
537
|
export type ValueCallback<T = unknown> = (value: T | Promise<T>) => void;
|
|
538
|
+
/**
|
|
539
|
+
* Creates a promise whose resolution or rejection can be controlled imperatively.
|
|
540
|
+
*/
|
|
272
541
|
export declare class DeferredPromise<T> {
|
|
273
542
|
private completeCallback;
|
|
274
543
|
private errorCallback;
|
|
@@ -285,7 +554,24 @@ export declare class DeferredPromise<T> {
|
|
|
285
554
|
cancel(): Promise<void>;
|
|
286
555
|
}
|
|
287
556
|
export declare namespace Promises {
|
|
557
|
+
/**
|
|
558
|
+
* A drop-in replacement for `Promise.all` with the only difference
|
|
559
|
+
* that the method awaits every promise to either fulfill or reject.
|
|
560
|
+
*
|
|
561
|
+
* Similar to `Promise.all`, only the first error will be returned
|
|
562
|
+
* if any.
|
|
563
|
+
*/
|
|
288
564
|
function settled<T>(promises: Promise<T>[]): Promise<T[]>;
|
|
565
|
+
/**
|
|
566
|
+
* A helper to create a new `Promise<T>` with a body that is a promise
|
|
567
|
+
* itself. By default, an error that raises from the async body will
|
|
568
|
+
* end up as a unhandled rejection, so this utility properly awaits the
|
|
569
|
+
* body and rejects the promise as a normal promise does without async
|
|
570
|
+
* body.
|
|
571
|
+
*
|
|
572
|
+
* This method should only be used in rare cases where otherwise `async`
|
|
573
|
+
* cannot be used (e.g. when callbacks are involved that require this).
|
|
574
|
+
*/
|
|
289
575
|
function withAsyncBody<T, E = Error>(bodyFn: (resolve: (value: T) => unknown, reject: (error: E) => unknown) => Promise<unknown>): Promise<T>;
|
|
290
576
|
}
|
|
291
577
|
export declare class StatefulPromise<T> {
|
|
@@ -297,24 +583,67 @@ export declare class StatefulPromise<T> {
|
|
|
297
583
|
get isResolved(): boolean;
|
|
298
584
|
readonly promise: Promise<T>;
|
|
299
585
|
constructor(promise: Promise<T>);
|
|
586
|
+
/**
|
|
587
|
+
* Returns the resolved value.
|
|
588
|
+
* Throws if the promise is not resolved yet.
|
|
589
|
+
*/
|
|
300
590
|
requireValue(): T;
|
|
301
591
|
}
|
|
302
592
|
export declare class LazyStatefulPromise<T> {
|
|
303
593
|
private readonly _compute;
|
|
304
594
|
private readonly _promise;
|
|
305
595
|
constructor(_compute: () => Promise<T>);
|
|
596
|
+
/**
|
|
597
|
+
* Returns the resolved value.
|
|
598
|
+
* Throws if the promise is not resolved yet.
|
|
599
|
+
*/
|
|
306
600
|
requireValue(): T;
|
|
601
|
+
/**
|
|
602
|
+
* Returns the promise (and triggers a computation of the promise if not yet done so).
|
|
603
|
+
*/
|
|
307
604
|
getPromise(): Promise<T>;
|
|
605
|
+
/**
|
|
606
|
+
* Reads the current value without triggering a computation of the promise.
|
|
607
|
+
*/
|
|
308
608
|
get currentValue(): T | undefined;
|
|
309
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* An object that allows to emit async values asynchronously or bring the iterable to an error state using `reject()`.
|
|
612
|
+
* This emitter is valid only for the duration of the executor (until the promise returned by the executor settles).
|
|
613
|
+
*/
|
|
310
614
|
export interface AsyncIterableEmitter<T> {
|
|
615
|
+
/**
|
|
616
|
+
* The value will be appended at the end.
|
|
617
|
+
*
|
|
618
|
+
* **NOTE** If `reject()` has already been called, this method has no effect.
|
|
619
|
+
*/
|
|
311
620
|
emitOne(value: T): void;
|
|
621
|
+
/**
|
|
622
|
+
* The values will be appended at the end.
|
|
623
|
+
*
|
|
624
|
+
* **NOTE** If `reject()` has already been called, this method has no effect.
|
|
625
|
+
*/
|
|
312
626
|
emitMany(values: T[]): void;
|
|
627
|
+
/**
|
|
628
|
+
* Writing an error will permanently invalidate this iterable.
|
|
629
|
+
* The current users will receive an error thrown, as will all future users.
|
|
630
|
+
*
|
|
631
|
+
* **NOTE** If `reject()` have already been called, this method has no effect.
|
|
632
|
+
*/
|
|
313
633
|
reject(error: Error): void;
|
|
314
634
|
}
|
|
635
|
+
/**
|
|
636
|
+
* An executor for the `AsyncIterableObject` that has access to an emitter.
|
|
637
|
+
*/
|
|
315
638
|
export interface AsyncIterableExecutor<T> {
|
|
639
|
+
/**
|
|
640
|
+
* @param emitter An object that allows to emit async values valid only for the duration of the executor.
|
|
641
|
+
*/
|
|
316
642
|
(emitter: AsyncIterableEmitter<T>): unknown | Promise<unknown>;
|
|
317
643
|
}
|
|
644
|
+
/**
|
|
645
|
+
* A rich implementation for an `AsyncIterable<T>`.
|
|
646
|
+
*/
|
|
318
647
|
export declare class AsyncIterableObject<T> implements AsyncIterable<T> {
|
|
319
648
|
static fromArray<T>(items: T[]): AsyncIterableObject<T>;
|
|
320
649
|
static fromPromise<T>(promise: Promise<T[]>): AsyncIterableObject<T>;
|
|
@@ -337,9 +666,31 @@ export declare class AsyncIterableObject<T> implements AsyncIterable<T> {
|
|
|
337
666
|
coalesce(): AsyncIterableObject<NonNullable<T>>;
|
|
338
667
|
static toPromise<T>(iterable: AsyncIterable<T>): Promise<T[]>;
|
|
339
668
|
toPromise(): Promise<T[]>;
|
|
669
|
+
/**
|
|
670
|
+
* The value will be appended at the end.
|
|
671
|
+
*
|
|
672
|
+
* **NOTE** If `resolve()` or `reject()` have already been called, this method has no effect.
|
|
673
|
+
*/
|
|
340
674
|
private emitOne;
|
|
675
|
+
/**
|
|
676
|
+
* The values will be appended at the end.
|
|
677
|
+
*
|
|
678
|
+
* **NOTE** If `resolve()` or `reject()` have already been called, this method has no effect.
|
|
679
|
+
*/
|
|
341
680
|
private emitMany;
|
|
681
|
+
/**
|
|
682
|
+
* Calling `resolve()` will mark the result array as complete.
|
|
683
|
+
*
|
|
684
|
+
* **NOTE** `resolve()` must be called, otherwise all consumers of this iterable will hang indefinitely, similar to a non-resolved promise.
|
|
685
|
+
* **NOTE** If `resolve()` or `reject()` have already been called, this method has no effect.
|
|
686
|
+
*/
|
|
342
687
|
private resolve;
|
|
688
|
+
/**
|
|
689
|
+
* Writing an error will permanently invalidate this iterable.
|
|
690
|
+
* The current users will receive an error thrown, as will all future users.
|
|
691
|
+
*
|
|
692
|
+
* **NOTE** If `resolve()` or `reject()` have already been called, this method has no effect.
|
|
693
|
+
*/
|
|
343
694
|
private reject;
|
|
344
695
|
}
|
|
345
696
|
export declare class CancelableAsyncIterableObject<T> extends AsyncIterableObject<T> {
|
|
@@ -354,6 +705,12 @@ export declare class AsyncIterableSource<T> {
|
|
|
354
705
|
private _errorFn;
|
|
355
706
|
private _emitOneFn;
|
|
356
707
|
private _emitManyFn;
|
|
708
|
+
/**
|
|
709
|
+
*
|
|
710
|
+
* @param onReturn A function that will be called when consuming the async iterable
|
|
711
|
+
* has finished by the consumer, e.g the for-await-loop has be existed (break, return) early.
|
|
712
|
+
* This is NOT called when resolving this source by its owner.
|
|
713
|
+
*/
|
|
357
714
|
constructor(onReturn?: () => Promise<void> | void);
|
|
358
715
|
get asyncIterable(): AsyncIterableObject<T>;
|
|
359
716
|
resolve(): void;
|
|
@@ -362,6 +719,10 @@ export declare class AsyncIterableSource<T> {
|
|
|
362
719
|
emitMany(items: T[]): void;
|
|
363
720
|
}
|
|
364
721
|
export declare function cancellableIterable<T>(iterableOrIterator: AsyncIterator<T> | AsyncIterable<T>, token: CancellationToken): AsyncIterableIterator<T>;
|
|
722
|
+
/**
|
|
723
|
+
* Important difference to AsyncIterableObject:
|
|
724
|
+
* If it is iterated two times, the second iterator will not see the values emitted by the first iterator.
|
|
725
|
+
*/
|
|
365
726
|
export declare class AsyncIterableProducer<T> implements AsyncIterable<T> {
|
|
366
727
|
private readonly _onReturn?;
|
|
367
728
|
private readonly _producerConsumer;
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import * as streams from "./stream.js";
|
|
2
2
|
export declare class VSBuffer {
|
|
3
|
+
/**
|
|
4
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
5
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
6
|
+
*/
|
|
3
7
|
static alloc(byteLength: number): VSBuffer;
|
|
8
|
+
/**
|
|
9
|
+
* When running in a nodejs context, if `actual` is not a nodejs Buffer, the backing store for
|
|
10
|
+
* the returned `VSBuffer` instance might use a nodejs Buffer allocated from node's Buffer pool,
|
|
11
|
+
* which is not transferrable.
|
|
12
|
+
*/
|
|
4
13
|
static wrap(actual: Uint8Array): VSBuffer;
|
|
14
|
+
/**
|
|
15
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
16
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
17
|
+
*/
|
|
5
18
|
static fromString(source: string, options?: {
|
|
6
19
|
dontUseNodeBuffer?: boolean;
|
|
7
20
|
}): VSBuffer;
|
|
21
|
+
/**
|
|
22
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
23
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
24
|
+
*/
|
|
8
25
|
static fromByteArray(source: number[]): VSBuffer;
|
|
26
|
+
/**
|
|
27
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
28
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
29
|
+
*/
|
|
9
30
|
static concat(buffers: VSBuffer[], totalLength?: number): VSBuffer;
|
|
10
31
|
static isNativeBuffer(buffer: unknown): boolean;
|
|
11
32
|
readonly buffer: Uint8Array;
|
|
12
33
|
readonly byteLength: number;
|
|
13
34
|
private constructor();
|
|
35
|
+
/**
|
|
36
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
37
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
38
|
+
*/
|
|
14
39
|
clone(): VSBuffer;
|
|
15
40
|
toString(): string;
|
|
16
41
|
slice(start?: number, end?: number): VSBuffer;
|
|
@@ -28,6 +53,10 @@ export declare class VSBuffer {
|
|
|
28
53
|
indexOf(subarray: VSBuffer | Uint8Array, offset?: number): number;
|
|
29
54
|
equals(other: VSBuffer): boolean;
|
|
30
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Like String.indexOf, but works on Uint8Arrays.
|
|
58
|
+
* Uses the boyer-moore-horspool algorithm to be reasonably speedy.
|
|
59
|
+
*/
|
|
31
60
|
export declare function binaryIndexOf(haystack: Uint8Array, needle: Uint8Array, offset?: number): number;
|
|
32
61
|
export declare function readUInt16LE(source: Uint8Array, offset: number): number;
|
|
33
62
|
export declare function writeUInt16LE(destination: Uint8Array, value: number, offset: number): void;
|
|
@@ -54,7 +83,9 @@ export declare function streamToBufferReadableStream(stream: streams.ReadableStr
|
|
|
54
83
|
export declare function newWriteableBufferStream(options?: streams.WriteableStreamOptions): streams.WriteableStream<VSBuffer>;
|
|
55
84
|
export declare function prefixedBufferReadable(prefix: VSBuffer, readable: VSBufferReadable): VSBufferReadable;
|
|
56
85
|
export declare function prefixedBufferStream(prefix: VSBuffer, stream: VSBufferReadableStream): VSBufferReadableStream;
|
|
86
|
+
/** Decodes base64 to a uint8 array. URL-encoded and unpadded base64 is allowed. */
|
|
57
87
|
export declare function decodeBase64(encoded: string): VSBuffer;
|
|
88
|
+
/** Encodes a buffer to a base64 string. */
|
|
58
89
|
export declare function encodeBase64({ buffer }: VSBuffer, padded?: boolean, urlSafe?: boolean): string;
|
|
59
90
|
export declare function encodeHex({ buffer }: VSBuffer): string;
|
|
60
91
|
export declare function decodeHex(hex: string): VSBuffer;
|
|
@@ -11,8 +11,16 @@ export declare class Cache<T> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function identity<T>(t: T): T;
|
|
13
13
|
interface ICacheOptions<TArg> {
|
|
14
|
+
/**
|
|
15
|
+
* The cache key is used to identify the cache entry.
|
|
16
|
+
* Strict equality is used to compare cache keys.
|
|
17
|
+
*/
|
|
14
18
|
getCacheKey: (arg: TArg) => unknown;
|
|
15
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Uses a LRU cache to make a given parametrized function cached.
|
|
22
|
+
* Caches just the last key/value.
|
|
23
|
+
*/
|
|
16
24
|
export declare class LRUCachedFunction<TArg, TComputed> {
|
|
17
25
|
private lastCache;
|
|
18
26
|
private lastArgKey;
|
|
@@ -22,6 +30,9 @@ export declare class LRUCachedFunction<TArg, TComputed> {
|
|
|
22
30
|
constructor(options: ICacheOptions<TArg>, fn: (arg: TArg) => TComputed);
|
|
23
31
|
get(arg: TArg): TComputed;
|
|
24
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Uses an unbounded cache to memoize the results of the given function.
|
|
35
|
+
*/
|
|
25
36
|
export declare class CachedFunction<TArg, TComputed> {
|
|
26
37
|
private readonly _map;
|
|
27
38
|
private readonly _map2;
|