@codingame/monaco-vscode-api 10.1.4 → 11.0.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/_virtual/semver.js +2 -0
- package/_virtual/semver2.js +1 -0
- package/api.js +15 -8
- package/assets.js +2 -0
- package/extensions.d.ts +1 -1
- package/extensions.js +4 -2
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
- package/external/tslib/tslib.es6.js +1 -0
- package/external/vscode-semver/semver.js +2 -0
- package/l10n.js +2 -0
- package/lifecycle.js +2 -0
- package/localExtensionHost.js +2 -1
- package/missing-services.js +69 -4
- package/monaco.js +4 -2
- package/override/vs/workbench/browser/parts/editor/textEditor.js +2 -0
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -0
- package/package.json +9 -9
- package/service-override/terminal.d.ts +2 -0
- package/service-override/tools/editor.js +4 -2
- package/service-override/tools/url.js +1 -0
- package/service-override/tools/views.js +2 -0
- package/services.js +4 -3
- package/tools/injection.js +2 -0
- package/tools.js +1 -0
- package/vscode/src/vs/amdX.js +172 -0
- package/vscode/src/vs/base/browser/broadcast.js +2 -0
- package/vscode/src/vs/base/browser/browser.js +2 -0
- package/vscode/src/vs/base/browser/canIUse.js +2 -0
- package/vscode/src/vs/base/browser/cssValue.js +27 -0
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +15 -16
- package/vscode/src/vs/base/browser/deviceAccess.js +1 -0
- package/vscode/src/vs/base/browser/dnd.js +2 -0
- package/vscode/src/vs/base/browser/dom.js +10 -31
- package/vscode/src/vs/base/browser/domObservable.js +2 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.js +884 -829
- package/vscode/src/vs/base/browser/event.js +2 -0
- package/vscode/src/vs/base/browser/fastDomNode.js +1 -0
- package/vscode/src/vs/base/browser/fonts.js +2 -0
- package/vscode/src/vs/base/browser/formattedTextRenderer.js +2 -0
- package/vscode/src/vs/base/browser/globalPointerMoveMonitor.js +2 -0
- package/vscode/src/vs/base/browser/iframe.js +1 -0
- package/vscode/src/vs/base/browser/indexedDB.js +2 -0
- package/vscode/src/vs/base/browser/keyboardEvent.js +2 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +26 -19
- package/vscode/src/vs/base/browser/mouseEvent.js +2 -0
- package/vscode/src/vs/base/browser/performance.js +1 -0
- package/vscode/src/vs/base/browser/pixelRatio.js +4 -2
- package/vscode/src/vs/base/browser/touch.js +2 -0
- package/vscode/src/vs/base/browser/trustedTypes.js +2 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -1
- package/vscode/src/vs/base/browser/ui/aria/aria.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/aria/aria.js +2 -0
- package/vscode/src/vs/base/browser/ui/button/button.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +10 -6
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +3 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +6 -4
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.js +2 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +8 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +4 -2
- package/vscode/src/vs/base/browser/ui/findinput/findInput.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +3 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +5 -3
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +4 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +1 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegateFactory.js +2 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +5 -3
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +13 -3
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabels.js +2 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +5 -3
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +10 -7
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +4 -2
- package/vscode/src/vs/base/browser/ui/list/list.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/list/list.js +1 -0
- package/vscode/src/vs/base/browser/ui/list/listPaging.js +2 -0
- package/vscode/src/vs/base/browser/ui/list/listView.js +3 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +6 -3
- package/vscode/src/vs/base/browser/ui/list/rangeMap.js +2 -0
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -0
- package/vscode/src/vs/base/browser/ui/list/splice.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +2 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +5 -3
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.js +2 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +1 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +2 -0
- package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.js +5 -3
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/horizontalScrollbar.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarState.js +1 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +2 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/verticalScrollbar.js +2 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +2 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +5 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +2 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +4 -2
- package/vscode/src/vs/base/browser/ui/splitview/splitview.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +2 -0
- package/vscode/src/vs/base/browser/ui/table/table.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +4 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +4 -2
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +76 -34
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +31 -33
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +3 -1
- package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -0
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +7 -5
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +2 -0
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +2 -0
- package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +3 -1
- package/vscode/src/vs/base/browser/ui/tree/tree.js +1 -0
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +3 -1
- package/vscode/src/vs/base/browser/ui/widget.js +3 -1
- package/vscode/src/vs/base/browser/window.js +1 -0
- package/vscode/src/vs/base/common/actions.js +3 -1
- package/vscode/src/vs/base/common/arrays.js +2 -0
- package/vscode/src/vs/base/common/arraysFind.js +1 -0
- package/vscode/src/vs/base/common/assert.js +3 -1
- package/vscode/src/vs/base/common/async.js +5 -3
- package/vscode/src/vs/base/common/buffer.js +3 -1
- package/vscode/src/vs/base/common/cache.js +2 -0
- package/vscode/src/vs/base/common/cancellation.js +2 -0
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codicons.js +2 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/codiconsUtil.js +2 -0
- package/vscode/src/vs/base/common/collections.js +1 -0
- package/vscode/src/vs/base/common/color.js +1 -0
- package/vscode/src/vs/base/common/comparers.js +2 -0
- package/vscode/src/vs/base/common/controlFlow.js +2 -0
- package/vscode/src/vs/base/common/dataTransfer.js +2 -0
- package/vscode/src/vs/base/common/date.js +63 -61
- package/vscode/src/vs/base/common/decorators.js +3 -2
- package/vscode/src/vs/base/common/diff/diff.js +2 -0
- package/vscode/src/vs/base/common/diff/diffChange.js +1 -0
- package/vscode/src/vs/base/common/equals.js +2 -0
- package/vscode/src/vs/base/common/errorMessage.js +8 -6
- package/vscode/src/vs/base/common/errors.js +1 -0
- package/vscode/src/vs/base/common/event.js +5 -2
- package/vscode/src/vs/base/common/extpath.js +2 -0
- package/vscode/src/vs/base/common/filters.js +2 -0
- package/vscode/src/vs/base/common/functional.js +1 -0
- package/vscode/src/vs/base/common/fuzzyScorer.js +3 -1
- package/vscode/src/vs/base/common/glob.js +3 -1
- package/vscode/src/vs/base/common/hash.js +22 -24
- package/vscode/src/vs/base/common/hierarchicalKind.js +1 -0
- package/vscode/src/vs/base/common/history.js +2 -0
- package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -0
- package/vscode/src/vs/base/common/htmlContent.js +2 -0
- package/vscode/src/vs/base/common/iconLabels.js +2 -0
- package/vscode/src/vs/base/common/idGenerator.js +1 -0
- package/vscode/src/vs/base/common/ime.js +2 -0
- package/vscode/src/vs/base/common/iterator.js +4 -0
- package/vscode/src/vs/base/common/json.js +1 -0
- package/vscode/src/vs/base/common/jsonEdit.js +2 -0
- package/vscode/src/vs/base/common/jsonErrorMessages.js +11 -9
- package/vscode/src/vs/base/common/jsonFormatter.js +2 -0
- package/vscode/src/vs/base/common/jsonSchema.js +1 -0
- package/vscode/src/vs/base/common/keyCodes.js +1 -0
- package/vscode/src/vs/base/common/keybindingLabels.js +22 -20
- package/vscode/src/vs/base/common/keybindingParser.js +3 -1
- package/vscode/src/vs/base/common/keybindings.js +2 -0
- package/vscode/src/vs/base/common/labels.js +4 -2
- package/vscode/src/vs/base/common/lazy.js +1 -0
- package/vscode/src/vs/base/common/lifecycle.js +2 -0
- package/vscode/src/vs/base/common/linkedList.js +1 -0
- package/vscode/src/vs/base/common/linkedText.js +2 -0
- package/vscode/src/vs/base/common/map.js +1 -0
- package/vscode/src/vs/base/common/marshalling.js +2 -0
- package/vscode/src/vs/base/common/mime.js +2 -0
- package/vscode/src/vs/base/common/naturalLanguage/korean.js +1 -0
- package/vscode/src/vs/base/common/navigator.js +1 -0
- package/vscode/src/vs/base/common/network.js +5 -2
- package/vscode/src/vs/base/common/numbers.js +1 -0
- package/vscode/src/vs/base/common/objects.js +3 -1
- package/vscode/src/vs/base/common/observableInternal/api.js +2 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +12 -2
- package/vscode/src/vs/base/common/observableInternal/base.js +2 -0
- package/vscode/src/vs/base/common/observableInternal/debugName.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/derived.js +43 -12
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +2 -0
- package/vscode/src/vs/base/common/observableInternal/logging.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +2 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +4 -2
- package/vscode/src/vs/base/common/observableInternal/utilsCancellation.js +2 -0
- package/vscode/src/vs/base/common/path.js +3 -1
- package/vscode/src/vs/base/common/performance.d.ts +2 -8
- package/vscode/src/vs/base/common/performance.js +66 -78
- package/vscode/src/vs/base/common/platform.js +6 -1
- package/vscode/src/vs/base/common/prefixTree.js +2 -0
- package/vscode/src/vs/base/common/process.js +2 -0
- package/vscode/src/vs/base/common/product.d.ts +7 -0
- package/vscode/src/vs/base/common/range.js +1 -0
- package/vscode/src/vs/base/common/resourceTree.js +2 -0
- package/vscode/src/vs/base/common/resources.js +2 -0
- package/vscode/src/vs/base/common/scrollable.js +2 -0
- package/vscode/src/vs/base/common/search.js +2 -0
- package/vscode/src/vs/base/common/severity.js +2 -0
- package/vscode/src/vs/base/common/skipList.js +1 -0
- package/vscode/src/vs/base/common/stopwatch.js +1 -0
- package/vscode/src/vs/base/common/stream.js +3 -1
- package/vscode/src/vs/base/common/strings.js +6 -1
- package/vscode/src/vs/base/common/symbols.js +1 -0
- package/vscode/src/vs/base/common/ternarySearchTree.js +2 -0
- package/vscode/src/vs/base/common/tfIdf.js +1 -0
- package/vscode/src/vs/base/common/themables.js +2 -0
- package/vscode/src/vs/base/common/types.js +5 -1
- package/vscode/src/vs/base/common/uint.js +1 -0
- package/vscode/src/vs/base/common/uri.js +2 -0
- package/vscode/src/vs/base/common/uriIpc.js +2 -0
- package/vscode/src/vs/base/common/uuid.js +1 -0
- package/vscode/src/vs/base/common/verifier.js +2 -0
- package/vscode/src/vs/base/common/worker/simpleWorker.js +6 -4
- package/vscode/src/vs/base/common/worker/simpleWorkerBootstrap.js +2 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +28 -11
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +2 -0
- package/vscode/src/vs/base/parts/request/common/request.js +1 -0
- package/vscode/src/vs/base/parts/storage/common/storage.js +2 -0
- package/vscode/src/vs/editor/browser/config/charWidthReader.js +2 -0
- package/vscode/src/vs/editor/browser/config/domFontInfo.js +2 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +2 -0
- package/vscode/src/vs/editor/browser/config/elementSizeObserver.js +2 -0
- package/vscode/src/vs/editor/browser/config/fontMeasurements.js +3 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -0
- package/vscode/src/vs/editor/browser/config/tabFocus.js +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.js +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/{editContextUtils.js → editContext.js} +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.js +13 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +74 -19
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +15 -9
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +7 -4
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.css.js +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +15 -15
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +5 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js +10 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +6 -4
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +3 -1
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +2 -0
- package/vscode/src/vs/editor/browser/coreCommands.js +6 -4
- package/vscode/src/vs/editor/browser/dnd.js +7 -4
- package/vscode/src/vs/editor/browser/editorBrowser.js +2 -0
- package/vscode/src/vs/editor/browser/editorDom.js +4 -2
- package/vscode/src/vs/editor/browser/editorExtensions.js +9 -7
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasShelfAllocator.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/bufferDirtyTracker.js +1 -0
- package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.wgsl.js +1 -0
- package/vscode/src/vs/editor/browser/gpu/gpuDisposable.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/gpuUtils.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.wgsl.js +1 -0
- package/vscode/src/vs/editor/browser/gpu/taskQueue.js +2 -0
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +3 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +4 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.js +2 -0
- package/vscode/src/vs/editor/browser/services/codeEditorService.js +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +4 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +4 -2
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +3 -1
- package/vscode/src/vs/editor/browser/services/markerDecorations.js +2 -0
- package/vscode/src/vs/editor/browser/services/openerService.js +3 -1
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +1 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -0
- package/vscode/src/vs/editor/browser/view/dynamicViewOverlay.js +2 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.js +1 -0
- package/vscode/src/vs/editor/browser/view/viewController.js +4 -2
- package/vscode/src/vs/editor/browser/view/viewLayer.js +2 -0
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +2 -0
- package/vscode/src/vs/editor/browser/view/viewPart.js +2 -0
- package/vscode/src/vs/editor/browser/view/viewUserInputEvents.js +2 -0
- package/vscode/src/vs/editor/browser/view.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +6 -4
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +7 -5
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRenderer.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharSheet.js +1 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapPreBaked.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +5 -3
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/domReadingContext.js +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +5 -3
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.css.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +3 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +2 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +6 -4
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +2 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +14 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +17 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +7 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +5 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +4 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +12 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +9 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +4 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +2 -0
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css.js +2 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +2 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +2 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +5 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +2 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/utils.js +2 -0
- package/vscode/src/vs/editor/common/commands/replaceCommand.js +2 -0
- package/vscode/src/vs/editor/common/commands/shiftCommand.js +2 -0
- package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.js +2 -0
- package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +2 -0
- package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +56 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +13 -17
- package/vscode/src/vs/editor/common/config/editorOptions.js +296 -315
- package/vscode/src/vs/editor/common/config/editorZoom.js +2 -0
- package/vscode/src/vs/editor/common/config/fontInfo.js +4 -2
- package/vscode/src/vs/editor/common/core/characterClassifier.js +2 -0
- package/vscode/src/vs/editor/common/core/cursorColumns.js +3 -1
- package/vscode/src/vs/editor/common/core/editOperation.js +2 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +73 -71
- package/vscode/src/vs/editor/common/core/eolCounter.js +1 -0
- package/vscode/src/vs/editor/common/core/indentation.js +2 -0
- package/vscode/src/vs/editor/common/core/lineEdit.js +277 -0
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +26 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +52 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +7 -2
- package/vscode/src/vs/editor/common/core/offsetRange.js +2 -0
- package/vscode/src/vs/editor/common/core/position.js +1 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +20 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.js +13 -0
- package/vscode/src/vs/editor/common/core/range.js +2 -0
- package/vscode/src/vs/editor/common/core/rgba.js +1 -0
- package/vscode/src/vs/editor/common/core/selection.js +2 -0
- package/vscode/src/vs/editor/common/core/stringBuilder.js +2 -0
- package/vscode/src/vs/editor/common/core/textChange.js +2 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +15 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +111 -0
- package/vscode/src/vs/editor/common/core/textLength.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/core/textModelDefaults.js +1 -0
- package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +2 -0
- package/vscode/src/vs/editor/common/core/wordHelper.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursor.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorAtomicMoveOperations.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorColumnSelection.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorContext.js +1 -0
- package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +3 -1
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +2 -0
- package/vscode/src/vs/editor/common/cursor/oneCursor.js +2 -0
- package/vscode/src/vs/editor/common/cursorCommon.js +7 -5
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +2 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +3 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +3 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +4 -2
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +2 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +2 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +1 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +2 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +1 -0
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +2 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.js +1 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputers.js +2 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +2 -0
- package/vscode/src/vs/editor/common/editorAction.js +1 -0
- package/vscode/src/vs/editor/common/editorCommon.js +1 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +48 -46
- package/vscode/src/vs/editor/common/editorFeatures.js +1 -0
- package/vscode/src/vs/editor/common/editorTheme.js +1 -0
- package/vscode/src/vs/editor/common/encodedTokenAttributes.js +1 -0
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +2 -0
- package/vscode/src/vs/editor/common/languageSelector.js +2 -0
- package/vscode/src/vs/editor/common/languages/autoIndent.js +3 -1
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +2 -0
- package/vscode/src/vs/editor/common/languages/enterAction.js +2 -0
- package/vscode/src/vs/editor/common/languages/language.js +2 -0
- package/vscode/src/vs/editor/common/languages/languageConfiguration.js +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -0
- package/vscode/src/vs/editor/common/languages/linkComputer.js +2 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +3 -1
- package/vscode/src/vs/editor/common/languages/nullTokenize.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/characterPair.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/electricCharacter.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/indentRules.js +1 -0
- package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/inplaceReplaceSupport.js +1 -0
- package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/onEnter.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.js +3 -1
- package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -0
- package/vscode/src/vs/editor/common/languages/supports.js +1 -0
- package/vscode/src/vs/editor/common/languages/textToHtmlTokenizer.js +2 -0
- package/vscode/src/vs/editor/common/languages.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages.js +29 -27
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js +2 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js +1 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js +3 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.js +2 -0
- package/vscode/src/vs/editor/common/model/editStack.js +4 -2
- package/vscode/src/vs/editor/common/model/fixedArray.js +2 -0
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +3 -1
- package/vscode/src/vs/editor/common/model/indentationGuesser.js +1 -0
- package/vscode/src/vs/editor/common/model/intervalTree.js +1 -0
- package/vscode/src/vs/editor/common/model/mirrorTextModel.js +2 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +4 -2
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +3 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js +3 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.js +1 -0
- package/vscode/src/vs/editor/common/model/prefixSumComputer.js +2 -0
- package/vscode/src/vs/editor/common/model/textModel.js +5 -3
- package/vscode/src/vs/editor/common/model/textModelPart.js +2 -0
- package/vscode/src/vs/editor/common/model/textModelSearch.js +2 -0
- package/vscode/src/vs/editor/common/model/textModelText.js +2 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.js +2 -0
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +2 -0
- package/vscode/src/vs/editor/common/model/tokens.js +2 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokens.js +2 -0
- package/vscode/src/vs/editor/common/model/utils.js +1 -0
- package/vscode/src/vs/editor/common/model.js +2 -0
- package/vscode/src/vs/editor/common/modelLineProjectionData.js +2 -0
- package/vscode/src/vs/editor/common/services/editorBaseApi.js +2 -0
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -0
- package/vscode/src/vs/editor/common/services/editorWorker.js +2 -0
- package/vscode/src/vs/editor/common/services/editorWorkerBootstrap.js +2 -0
- package/vscode/src/vs/editor/common/services/editorWorkerHost.js +1 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +1 -0
- package/vscode/src/vs/editor/common/services/getIconClasses.js +2 -0
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.js +2 -0
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -0
- package/vscode/src/vs/editor/common/services/languageService.js +2 -0
- package/vscode/src/vs/editor/common/services/languagesAssociations.js +2 -0
- package/vscode/src/vs/editor/common/services/languagesRegistry.js +3 -1
- package/vscode/src/vs/editor/common/services/markerDecorations.js +2 -0
- package/vscode/src/vs/editor/common/services/markerDecorationsService.js +2 -0
- package/vscode/src/vs/editor/common/services/model.js +2 -0
- package/vscode/src/vs/editor/common/services/modelService.js +4 -2
- package/vscode/src/vs/editor/common/services/resolverService.js +2 -0
- package/vscode/src/vs/editor/common/services/semanticTokensDto.js +2 -0
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +2 -0
- package/vscode/src/vs/editor/common/services/semanticTokensStyling.js +2 -0
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -0
- package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.js +3 -1
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.js +2 -0
- package/vscode/src/vs/editor/common/services/treeSitterParserService.js +2 -0
- package/vscode/src/vs/editor/common/services/treeViewsDnd.js +1 -0
- package/vscode/src/vs/editor/common/services/treeViewsDndService.js +2 -0
- package/vscode/src/vs/editor/common/services/unicodeTextModelHighlighter.js +2 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +20 -19
- package/vscode/src/vs/editor/common/standaloneStrings.js +34 -32
- package/vscode/src/vs/editor/common/textModelBracketPairs.js +1 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +1 -0
- package/vscode/src/vs/editor/common/textModelGuides.js +1 -0
- package/vscode/src/vs/editor/common/tokenizationRegistry.js +2 -0
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +2 -0
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +3 -1
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokensBuilder.js +3 -1
- package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.js +2 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensStore.js +2 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +2 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +2 -0
- package/vscode/src/vs/editor/common/viewEventHandler.js +2 -0
- package/vscode/src/vs/editor/common/viewEvents.js +1 -0
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +2 -0
- package/vscode/src/vs/editor/common/viewLayout/linePart.js +1 -0
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +2 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +7 -5
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +4 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +3 -1
- package/vscode/src/vs/editor/common/viewModel/overviewZoneManager.js +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewContext.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +2 -0
- package/vscode/src/vs/editor/common/viewModel.js +2 -0
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +2 -0
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.css.js +2 -0
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +9 -7
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.css.js +2 -0
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +12 -10
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +4 -3
- package/vscode/src/vs/editor/contrib/caretOperations/browser/moveCaretCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -2
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +23 -21
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +10 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +33 -31
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +5 -4
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +15 -9
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +10 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +15 -13
- package/vscode/src/vs/editor/contrib/codeAction/common/types.js +2 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +2 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +3 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +6 -4
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerContribution.js +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParticipantUtils.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerBody.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +4 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +4 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +9 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerController.js +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +2 -0
- package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +8 -7
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +14 -12
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +5 -3
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +1 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.css.js +2 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.js +2 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dragAndDropCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/documentSymbols.js +1 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +6 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +12 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +10 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +3 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +5 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +2 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/editorState.js +2 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +3 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +19 -17
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +3 -1
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/findState.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +31 -29
- package/vscode/src/vs/editor/contrib/find/browser/replaceAllCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/find/browser/replacePattern.js +2 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css.js +2 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -22
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +11 -9
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +2 -0
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +1 -0
- package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.js +2 -0
- package/vscode/src/vs/editor/contrib/folding/browser/indentRangeProvider.js +2 -0
- package/vscode/src/vs/editor/contrib/folding/browser/syntaxRangeProvider.js +2 -0
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +5 -4
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -1
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -3
- package/vscode/src/vs/editor/contrib/format/browser/formattingEdit.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +11 -9
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +20 -18
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +43 -41
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +5 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +7 -5
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +6 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +10 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +6 -5
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +5 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverComputer.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +4 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +5 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +25 -23
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.js +2 -0
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +13 -11
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +21 -8
- package/vscode/src/vs/editor/contrib/hover/browser/resizableContentWidget.js +2 -0
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css.js +2 -0
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +4 -3
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -20
- package/vscode/src/vs/editor/contrib/indentation/common/indentUtils.js +1 -0
- package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +2 -0
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +3 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js +1 -0
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -9
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +76 -35
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -48
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +17 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +87 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +11 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +8 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +19 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +80 -37
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/singleTextEditHelpers.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +12 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.css.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.js +102 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsIndicatorView.js +77 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +251 -150
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +7 -1
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +4 -2
- package/vscode/src/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -30
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/sortLinesCommand.js +2 -0
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.css.js +2 -0
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +7 -5
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +2 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.css.js +2 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.js +18 -16
- package/vscode/src/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -0
- package/vscode/src/vs/editor/contrib/message/browser/messageController.css.js +2 -0
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +4 -2
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +26 -24
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css.js +2 -0
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +4 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +2 -0
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +7 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.js +2 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -19
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +2 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +2 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +4 -2
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +3 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +9 -7
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +37 -35
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +4 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +15 -13
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +11 -9
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +8 -6
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +2 -0
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -0
- package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -0
- package/vscode/src/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.js +1 -0
- package/vscode/src/vs/editor/contrib/smartSelect/browser/bracketSelections.js +2 -0
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +7 -5
- package/vscode/src/vs/editor/contrib/smartSelect/browser/wordSelections.js +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +7 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.css.js +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +4 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +6 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +2 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +13 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +14 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.js +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +4 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +7 -5
- package/vscode/src/vs/editor/contrib/suggest/browser/completionModel.js +3 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +11 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestCommitCharacters.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestOvertypingCapturer.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.js +2 -0
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css.js +2 -0
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +34 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +7 -5
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +3 -2
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css.js +2 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +2 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css.js +2 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +7 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css.js +2 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +11 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +2 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +43 -27
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -2
- package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +2 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.css.js +2 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +5 -3
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +2 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +7 -5
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +5 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +2 -0
- package/vscode/src/vs/editor/standalone/common/standaloneTheme.js +2 -0
- package/vscode/src/vs/editor/standalone/common/themes.js +2 -0
- package/vscode/src/vs/nls.js +2 -0
- package/vscode/src/vs/nls.messages.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +2 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +2 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.service.js +2 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.js +1 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.js +2 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +51 -49
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.js +2 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +2 -0
- package/vscode/src/vs/platform/action/common/action.js +1 -0
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +6 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +2 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +10 -8
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.js +2 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +10 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +2 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +2 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +10 -7
- package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -3
- package/vscode/src/vs/platform/actions/common/actions.contribution.js +1 -0
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -2
- package/vscode/src/vs/platform/actions/common/actions.js +9 -5
- package/vscode/src/vs/platform/actions/common/actions.service.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +3 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +5 -3
- package/vscode/src/vs/platform/backup/common/backup.js +1 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.js +2 -0
- package/vscode/src/vs/platform/commands/common/commands.js +2 -0
- package/vscode/src/vs/platform/commands/common/commands.service.js +2 -0
- package/vscode/src/vs/platform/configuration/common/configuration.js +2 -0
- package/vscode/src/vs/platform/configuration/common/configuration.service.js +2 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +23 -6
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +2 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +13 -11
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -0
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +4 -2
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +13 -11
- package/vscode/src/vs/platform/contextkey/common/contextkey.service.js +2 -0
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +12 -10
- package/vscode/src/vs/platform/contextkey/common/scanner.js +7 -5
- package/vscode/src/vs/platform/contextview/browser/contextMenuHandler.js +3 -1
- package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +2 -0
- package/vscode/src/vs/platform/contextview/browser/contextView.service.js +2 -0
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +2 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.js +2 -0
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +1 -0
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.service.js +2 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +11 -9
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.js +2 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +13 -5
- package/vscode/src/vs/platform/download/common/download.service.js +2 -0
- package/vscode/src/vs/platform/editor/common/editor.js +1 -0
- package/vscode/src/vs/platform/encryption/common/encryptionService.service.js +2 -0
- package/vscode/src/vs/platform/environment/common/environment.service.js +2 -0
- package/vscode/src/vs/platform/environment/common/environmentService.js +10 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +4 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +3 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +2 -0
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.js +2 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +2 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.js +2 -0
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +22 -28
- package/vscode/src/vs/platform/extensions/common/extensions.js +2 -0
- package/vscode/src/vs/platform/extensions/common/extensions.service.js +2 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +5 -4
- package/vscode/src/vs/platform/externalServices/common/serviceMachineId.js +2 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +6 -4
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +64 -9
- package/vscode/src/vs/platform/files/browser/webFileSystemAccess.js +9 -1
- package/vscode/src/vs/platform/files/common/files.js +2 -0
- package/vscode/src/vs/platform/files/common/files.service.js +2 -0
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +3 -1
- package/vscode/src/vs/platform/files/common/watcher.js +2 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +5 -3
- package/vscode/src/vs/platform/history/browser/historyWidgetKeybindingHint.js +1 -0
- package/vscode/src/vs/platform/hover/browser/hover.js +2 -0
- package/vscode/src/vs/platform/hover/browser/hover.service.js +2 -0
- package/vscode/src/vs/platform/instantiation/common/descriptors.js +1 -0
- package/vscode/src/vs/platform/instantiation/common/extensions.js +2 -0
- package/vscode/src/vs/platform/instantiation/common/graph.js +1 -0
- package/vscode/src/vs/platform/instantiation/common/instantiation.js +1 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +2 -0
- package/vscode/src/vs/platform/instantiation/common/serviceCollection.js +1 -0
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +2 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +6 -4
- package/vscode/src/vs/platform/keybinding/common/baseResolvedKeybinding.js +2 -0
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.js +2 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingResolver.js +2 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.js +3 -1
- package/vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js +1 -0
- package/vscode/src/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js +2 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +2 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.js +2 -0
- package/vscode/src/vs/platform/label/common/label.service.js +2 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +3 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.js +2 -0
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +5 -3
- package/vscode/src/vs/platform/layout/browser/layoutService.service.js +2 -0
- package/vscode/src/vs/platform/list/browser/listService.js +33 -31
- package/vscode/src/vs/platform/list/browser/listService.service.js +2 -0
- package/vscode/src/vs/platform/log/browser/log.js +2 -0
- package/vscode/src/vs/platform/log/common/bufferLog.js +2 -0
- package/vscode/src/vs/platform/log/common/log.js +2 -0
- package/vscode/src/vs/platform/log/common/log.service.js +2 -0
- package/vscode/src/vs/platform/log/common/logService.js +2 -0
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +5 -3
- package/vscode/src/vs/platform/markers/common/markers.service.js +2 -0
- package/vscode/src/vs/platform/notification/common/notification.js +2 -0
- package/vscode/src/vs/platform/notification/common/notification.service.js +2 -0
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -0
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -0
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +2 -0
- package/vscode/src/vs/platform/opener/browser/link.css.js +2 -0
- package/vscode/src/vs/platform/opener/browser/link.js +2 -0
- package/vscode/src/vs/platform/opener/common/opener.js +1 -0
- package/vscode/src/vs/platform/opener/common/opener.service.js +2 -0
- package/vscode/src/vs/platform/policy/common/policy.js +2 -0
- package/vscode/src/vs/platform/policy/common/policy.service.js +2 -0
- package/vscode/src/vs/platform/product/common/product.js +3 -1
- package/vscode/src/vs/platform/product/common/productService.js +1 -0
- package/vscode/src/vs/platform/product/common/productService.service.js +2 -0
- package/vscode/src/vs/platform/progress/common/progress.js +3 -1
- package/vscode/src/vs/platform/progress/common/progress.service.js +2 -0
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +2 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -2
- package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +11 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +9 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +5 -2
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +5 -3
- package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickAccess.js +2 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +2 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.js +2 -0
- package/vscode/src/vs/platform/registry/common/platform.js +2 -0
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +5 -3
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +2 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.js +2 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.js +2 -0
- package/vscode/src/vs/platform/remote/common/remoteHosts.js +2 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.js +2 -0
- package/vscode/src/vs/platform/request/common/request.js +17 -15
- package/vscode/src/vs/platform/request/common/request.service.js +2 -0
- package/vscode/src/vs/platform/secrets/common/secrets.service.js +2 -0
- package/vscode/src/vs/platform/severityIcon/browser/media/severityIcon.css.js +2 -0
- package/vscode/src/vs/platform/severityIcon/browser/severityIcon.js +2 -0
- package/vscode/src/vs/platform/sign/common/sign.js +1 -0
- package/vscode/src/vs/platform/sign/common/sign.service.js +2 -0
- package/vscode/src/vs/platform/storage/common/storage.js +2 -0
- package/vscode/src/vs/platform/storage/common/storage.service.js +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.js +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariableShared.js +1 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
- package/vscode/src/vs/platform/terminal/common/terminal.js +2 -0
- package/vscode/src/vs/platform/terminal/common/terminal.service.js +2 -0
- package/vscode/src/vs/platform/terminal/common/terminalDataBuffering.js +1 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +2 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +3 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +4 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +10 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -93
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -46
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +38 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +9 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +13 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +10 -8
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +11 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +4 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +7 -5
- package/vscode/src/vs/platform/theme/common/theme.js +1 -0
- package/vscode/src/vs/platform/theme/common/themeService.js +3 -1
- package/vscode/src/vs/platform/theme/common/themeService.service.js +2 -0
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +44 -42
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.service.js +2 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.js +2 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -20
- package/vscode/src/vs/platform/update/common/update.js +5 -2
- package/vscode/src/vs/platform/update/common/update.service.js +2 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.js +2 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +2 -0
- package/vscode/src/vs/platform/url/common/url.service.js +2 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +0 -2
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +13 -65
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.d.ts +0 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.js +2 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.service.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +4 -2
- package/vscode/src/vs/platform/userDataSync/common/content.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +3 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +9 -7
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.service.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +4 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.js +2 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +4 -2
- package/vscode/src/vs/platform/window/common/window.js +2 -0
- package/vscode/src/vs/platform/workspace/common/canonicalUri.service.js +2 -0
- package/vscode/src/vs/platform/workspace/common/editSessions.js +1 -0
- package/vscode/src/vs/platform/workspace/common/editSessions.service.js +2 -0
- package/vscode/src/vs/platform/workspace/common/virtualWorkspace.js +2 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +4 -2
- package/vscode/src/vs/platform/workspace/common/workspace.service.js +2 -0
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.js +2 -0
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +2 -0
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.js +2 -0
- package/vscode/src/vs/workbench/api/browser/statusBarService.js +2 -0
- package/vscode/src/vs/workbench/api/common/cache.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +23 -13
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +27 -26
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +80 -46
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +12 -10
- package/vscode/src/vs/workbench/api/common/extHostClipboard.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +21 -3
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -11
- package/vscode/src/vs/workbench/api/common/extHostComments.js +27 -11
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDecorations.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostDialogs.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostEmbedding.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +10 -8
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostInitDataService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostInteractive.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostLabelService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +13 -7
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +24 -39
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +47 -9
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostLocalizationService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostLoggerService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMemento.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocuments.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookRenderers.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostOutput.js +27 -31
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostRpcService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +51 -17
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSecretState.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostShare.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostStorage.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostStoragePaths.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTestItem.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTheming.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +136 -30
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +89 -17
- package/vscode/src/vs/workbench/api/common/extHostUriOpener.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostUrls.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostWebview.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostWebviewView.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +5 -3
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +3 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +14 -12
- package/vscode/src/vs/workbench/api/worker/extHost.worker.services.js +2 -1
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +2 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +2 -0
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +3 -1
- package/vscode/src/vs/workbench/api/worker/{extensionHostWorker.esm.js → extensionHostWorkerMain.js} +1 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +34 -33
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +134 -132
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +2 -0
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +9 -7
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +4 -2
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +31 -29
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +23 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +7 -5
- package/vscode/src/vs/workbench/browser/actions.js +2 -0
- package/vscode/src/vs/workbench/browser/codeeditor.js +3 -1
- package/vscode/src/vs/workbench/browser/composite.js +2 -0
- package/vscode/src/vs/workbench/browser/dnd.js +5 -3
- package/vscode/src/vs/workbench/browser/editor.js +4 -2
- package/vscode/src/vs/workbench/browser/labels.js +4 -2
- package/vscode/src/vs/workbench/browser/media/part.css.js +2 -0
- package/vscode/src/vs/workbench/browser/media/style.css.js +6 -0
- package/vscode/src/vs/workbench/browser/panecomposite.js +3 -1
- package/vscode/src/vs/workbench/browser/part.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +14 -12
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +17 -13
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +5 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +8 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution._autosave.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +32 -19
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +11 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +65 -63
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +9 -11
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorplaceholder.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorstatus.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/sidebysideeditor.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +5 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -17
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +5 -0
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +39 -37
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/menubarControl.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +21 -19
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +234 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +5 -3
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +79 -68
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +17 -11
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +10 -8
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +2 -0
- package/vscode/src/vs/workbench/browser/quickaccess.js +4 -2
- package/vscode/src/vs/workbench/browser/style.js +54 -0
- package/vscode/src/vs/workbench/browser/window.js +18 -16
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +225 -228
- package/vscode/src/vs/workbench/common/activity.js +1 -0
- package/vscode/src/vs/workbench/common/component.js +2 -0
- package/vscode/src/vs/workbench/common/configuration.js +12 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +72 -70
- package/vscode/src/vs/workbench/common/contributions.js +2 -0
- package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +2 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +3 -1
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +2 -0
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +3 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.js +2 -0
- package/vscode/src/vs/workbench/common/editor/editorModel.js +2 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +2 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +2 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +3 -1
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.js +2 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +2 -0
- package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +2 -0
- package/vscode/src/vs/workbench/common/editor.js +7 -5
- package/vscode/src/vs/workbench/common/memento.js +2 -0
- package/vscode/src/vs/workbench/common/resources.js +2 -0
- package/vscode/src/vs/workbench/common/theme.js +160 -158
- package/vscode/src/vs/workbench/common/views.d.ts +5 -0
- package/vscode/src/vs/workbench/common/views.js +6 -4
- package/vscode/src/vs/workbench/common/views.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +146 -144
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +44 -24
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +2 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +166 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatActions.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +46 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +53 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.service.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +21 -17
- package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +12 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +8 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +10 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +8 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +4 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +12 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +6 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +10 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/selectionClipboard.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +3 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +6 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +4 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +2 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +14 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +7 -1
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -10
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +14 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +59 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/media/all.png.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +3 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +2 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +2 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +180 -178
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +26 -24
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +7 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +4 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +5 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +6 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +3 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +20 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +17 -15
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +99 -96
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +8 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +39 -37
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +58 -56
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +3 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/media/explorerviewlet.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +3 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +6 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +24 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +20 -18
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +14 -12
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +7 -5
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +3 -1
- package/vscode/src/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +2 -0
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -14
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +22 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +5 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +7 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +38 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +28 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +6 -70
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +26 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +3 -1
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +2 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueTroubleshoot.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/issue/common/issue.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +2 -0
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +4 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +7 -5
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +206 -0
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +4 -2
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.js +1 -0
- package/vscode/src/vs/workbench/contrib/markers/common/markers.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +3 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +31 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +3 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +4 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +24 -22
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +10 -8
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +3 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +2 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +12 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +22 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +8 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +12 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +2 -0
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +7 -5
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +14 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +13 -11
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +52 -50
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +3 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +22 -11
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +23 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +19 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +70 -68
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +4 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +45 -36
- package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +16 -14
- package/vscode/src/vs/workbench/contrib/scm/browser/util.js +2 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModelBase.js +7 -0
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +14 -16
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.js +23 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +3 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +3 -1
- package/vscode/src/vs/workbench/contrib/search/browser/replace.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +8 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +18 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +359 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchCompare.js +117 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +29 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.js +110 -0
- package/vscode/src/vs/workbench/contrib/search/browser/{searchModel.service.js → searchTreeModel/searchViewModelWorkbenchService.service.js} +3 -1
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +4 -2
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/notebookSearch.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/search.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +2 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +2 -0
- package/vscode/src/vs/workbench/contrib/share/common/share.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +3 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +4 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +5 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +13 -11
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +3 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +31 -29
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +2 -0
- package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +7 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +5 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +98 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +17 -28
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermAddonImporter.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +28 -18
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +26 -24
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/links.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +3 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +3 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +2 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +2 -0
- package/vscode/src/vs/workbench/contrib/update/common/update.js +1 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.js +3 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +8 -6
- package/vscode/src/vs/workbench/contrib/url/common/urlGlob.js +1 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +6 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +2 -0
- package/vscode/src/vs/workbench/contrib/webview/common/webview.js +2 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +3 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +2 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +4 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +3 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service.js +2 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +4 -2
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +2 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +145 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.js +6 -4
- package/vscode/src/vs/workbench/services/activity/common/activity.service.js +2 -0
- package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service.js +2 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +1 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.js +2 -0
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +2 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.js +2 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.js +2 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.js +2 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +10 -8
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js +2 -0
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.service.js +2 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.js +1 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +2 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +18 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +19 -17
- package/vscode/src/vs/workbench/services/decorations/common/decorations.service.js +2 -0
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +2 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +2 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +4 -2
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.service.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +3 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorPaneService.service.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.js +2 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +2 -0
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +2 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js +3 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +8 -6
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.js +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +85 -83
- package/vscode/src/vs/workbench/services/extensions/common/lazyPromise.js +3 -1
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.js +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +2 -0
- package/vscode/src/vs/workbench/services/extensions/worker/polyfillNestedWorker.js +1 -0
- package/vscode/src/vs/workbench/services/files/common/elevatedFileService.service.js +2 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +7 -5
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.js +2 -0
- package/vscode/src/vs/workbench/services/history/common/history.js +1 -0
- package/vscode/src/vs/workbench/services/history/common/history.service.js +2 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.js +2 -0
- package/vscode/src/vs/workbench/services/integrity/common/integrity.service.js +2 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -0
- package/vscode/src/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.js +3 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.service.js +2 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -28
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -0
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.js +2 -0
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.js +2 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +3 -4
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.js +2 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +1 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.js +2 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +2 -0
- package/vscode/src/vs/workbench/services/localization/common/locale.service.js +2 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -0
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +3 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.service.js +2 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.js +2 -0
- package/vscode/src/vs/workbench/services/output/common/output.js +2 -0
- package/vscode/src/vs/workbench/services/output/common/output.service.js +2 -0
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +4 -0
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.js +2 -0
- package/vscode/src/vs/workbench/services/path/common/pathService.service.js +2 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +4 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +12 -10
- package/vscode/src/vs/workbench/services/preferences/common/preferences.js +2 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.js +2 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -2
- package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.js +2 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +10 -8
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js +2 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -7
- package/vscode/src/vs/workbench/services/search/common/fileSearchManager.js +10 -8
- package/vscode/src/vs/workbench/services/search/common/folderQuerySearchTree.js +50 -0
- package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +2 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +4 -2
- package/vscode/src/vs/workbench/services/search/common/search.js +2 -0
- package/vscode/src/vs/workbench/services/search/common/search.service.js +2 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtConversionTypes.js +2 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +1 -0
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +9 -8
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js +2 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +3 -1
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.js +2 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.js +2 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +11 -9
- package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +1 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +3 -1
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +2 -0
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js +2 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +11 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +2 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.js +2 -0
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +28 -26
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +31 -58
- package/vscode/src/vs/workbench/services/themes/common/hostColorSchemeService.service.js +2 -0
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -13
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +1 -0
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +1 -0
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +2 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +2 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +2 -0
- package/vscode/src/vs/workbench/services/timer/browser/timerService.service.js +2 -0
- package/vscode/src/vs/workbench/services/title/browser/titleService.service.js +2 -0
- package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.service.js +2 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +2 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +2 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.js +2 -0
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.js +2 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js +2 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +3 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service.js +2 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.js +2 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +15 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileService.js +2 -8
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +14 -12
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.js +2 -0
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +10 -8
- package/vscode/src/vs/workbench/services/views/common/viewsService.service.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +26 -18
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.js +1 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistory.service.js +2 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.js +2 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +2 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.js +2 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.js +2 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +2 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +29 -4
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +13 -1
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +33 -0
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +2 -0
- package/vscode-dts/vscode.proposed.lmTools.d.ts +1 -225
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +4 -1
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +1 -1
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +1 -2
- package/workbench.js +2 -0
- package/workers/extensionHost.worker.js +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +0 -289
- package/vscode/src/vs/base/common/amd.js +0 -102
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/commandIds.js +0 -5
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +0 -145
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +0 -194
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +0 -9
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.css.js +0 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +0 -347
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.css.js +0 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +0 -198
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.css.js +0 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.js +0 -301
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +0 -158
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -60
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +0 -290
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -761
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -140
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -425
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +0 -2132
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1433
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -155
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -328
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +0 -156
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +0 -1766
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +0 -162
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +0 -60
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +0 -255
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -145
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -71
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -293
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +0 -289
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -203
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +0 -167
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +0 -36
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -436
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -420
- package/vscode/src/vs/workbench/browser/web.api.js +0 -8
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +0 -110
- package/vscode/src/vs/workbench/common/notifications.js +0 -472
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -414
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +0 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +0 -308
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +0 -96
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +0 -111
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +0 -169
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +0 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +0 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.js +0 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +0 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +0 -371
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +0 -114
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +0 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +0 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatWarningContentPart.js +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +0 -206
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +0 -752
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +0 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +0 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +0 -73
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +0 -228
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +0 -943
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +0 -853
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +0 -241
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +0 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +0 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +0 -872
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +0 -740
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatContextAttachments.js +0 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +0 -242
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +0 -532
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatInlineAnchorWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +0 -129
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -852
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -177
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +0 -227
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +0 -331
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +0 -35
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +0 -155
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -46
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +0 -75
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +0 -102
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +0 -674
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +0 -305
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +0 -77
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +0 -260
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +0 -111
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +0 -107
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +0 -349
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +0 -423
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +0 -1369
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +0 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +0 -126
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +0 -444
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +0 -527
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +0 -218
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +0 -104
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +0 -55
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +0 -72
- package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +0 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -751
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -534
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1753
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -370
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -964
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +0 -160
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -100
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -264
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1666
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -123
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -31
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -295
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +0 -548
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +0 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +0 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -128
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +0 -415
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -580
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -153
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +0 -761
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -317
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -253
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1735
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -264
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -793
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -732
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -556
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -508
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -45
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2675
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -645
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -129
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -99
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -137
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -208
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -377
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -97
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -224
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -93
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -85
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -677
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -318
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -240
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -497
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -80
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -108
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -45
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -112
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -448
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -114
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1196
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -250
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1663
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -351
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2304
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -571
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -87
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -257
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -252
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -820
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -386
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -602
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -164
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -590
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -167
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -124
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -136
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -405
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -85
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -105
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -2222
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +0 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +0 -198
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +0 -168
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminal.accessibility.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/common/terminal.find.js +0 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.js +0 -11
- package/vscode/src/vs/workbench/services/search/common/replace.js +0 -203
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +0 -72
- package/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts +0 -7
|
@@ -1,2222 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { RunOnceScheduler } from '../../../../base/common/async.js';
|
|
3
|
-
import { CancellationToken, CancellationTokenSource } from '../../../../base/common/cancellation.js';
|
|
4
|
-
import { comparePaths, compareFileNames, compareFileExtensions } from '../../../../base/common/comparers.js';
|
|
5
|
-
import { memoize } from '../../../../base/common/decorators.js';
|
|
6
|
-
import { isCancellationError } from '../../../../base/common/errors.js';
|
|
7
|
-
import { Emitter, PauseableEmitter, Event } from '../../../../base/common/event.js';
|
|
8
|
-
import { Lazy } from '../../../../base/common/lazy.js';
|
|
9
|
-
import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
10
|
-
import { ResourceMap } from '../../../../base/common/map.js';
|
|
11
|
-
import { Schemas } from '../../../../base/common/network.js';
|
|
12
|
-
import { lcut } from '../../../../base/common/strings.js';
|
|
13
|
-
import { TernarySearchTree } from '../../../../base/common/ternarySearchTree.js';
|
|
14
|
-
import { URI } from '../../../../base/common/uri.js';
|
|
15
|
-
import { Range } from '../../../../editor/common/core/range.js';
|
|
16
|
-
import { OverviewRulerLane, FindMatch } from '../../../../editor/common/model.js';
|
|
17
|
-
import { ModelDecorationOptions } from '../../../../editor/common/model/textModel.js';
|
|
18
|
-
import { IModelService } from '../../../../editor/common/services/model.js';
|
|
19
|
-
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
20
|
-
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
21
|
-
import { ILabelService } from '../../../../platform/label/common/label.service.js';
|
|
22
|
-
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
23
|
-
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
24
|
-
import '../../../../platform/theme/common/colorUtils.js';
|
|
25
|
-
import '../../../../platform/theme/common/colors/baseColors.js';
|
|
26
|
-
import '../../../../platform/theme/common/colors/chartsColors.js';
|
|
27
|
-
import { overviewRulerFindMatchForeground } from '../../../../platform/theme/common/colors/editorColors.js';
|
|
28
|
-
import '../../../../platform/theme/common/colors/inputColors.js';
|
|
29
|
-
import '../../../../platform/theme/common/colors/listColors.js';
|
|
30
|
-
import '../../../../platform/theme/common/colors/menuColors.js';
|
|
31
|
-
import { minimapFindMatch } from '../../../../platform/theme/common/colors/minimapColors.js';
|
|
32
|
-
import '../../../../platform/theme/common/colors/miscColors.js';
|
|
33
|
-
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
34
|
-
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
35
|
-
import { themeColorFromId } from '../../../../platform/theme/common/themeService.js';
|
|
36
|
-
import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.service.js';
|
|
37
|
-
import { FindMatchDecorationModel } from '../../notebook/browser/contrib/find/findMatchDecorationModel.js';
|
|
38
|
-
import { NotebookEditorWidget } from '../../notebook/browser/notebookEditorWidget.js';
|
|
39
|
-
import { INotebookEditorService } from '../../notebook/browser/services/notebookEditorService.service.js';
|
|
40
|
-
import { NotebookCellsChangeType } from '../../notebook/common/notebookCommon.js';
|
|
41
|
-
import { IReplaceService } from './replace.service.js';
|
|
42
|
-
import { isINotebookFileMatchWithModel, contentMatchesToTextSearchMatches, webviewMatchesToTextSearchMatches, isINotebookCellMatchWithModel, getIDFromINotebookCellMatch } from './notebookSearch/searchNotebookHelpers.js';
|
|
43
|
-
import { INotebookSearchService } from '../common/notebookSearch.service.js';
|
|
44
|
-
import { isINotebookFileMatchNoModel, rawCellPrefix } from '../common/searchNotebookHelpers.js';
|
|
45
|
-
import { ReplacePattern } from '../../../services/search/common/replace.js';
|
|
46
|
-
import { OneLineRange, resultIsMatch, DEFAULT_MAX_SEARCH_RESULTS } from '../../../services/search/common/search.js';
|
|
47
|
-
import { ISearchService } from '../../../services/search/common/search.service.js';
|
|
48
|
-
import { editorMatchesToTextSearchResults, getTextSearchMatchWithModelContext } from '../../../services/search/common/searchHelpers.js';
|
|
49
|
-
import { CellSearchModel } from '../common/cellSearchModel.js';
|
|
50
|
-
import { CellFindMatchModel } from '../../notebook/browser/contrib/find/findModel.js';
|
|
51
|
-
import { coalesce } from '../../../../base/common/arrays.js';
|
|
52
|
-
var FileMatch_1, FolderMatch_1, RangeHighlightDecorations_1;
|
|
53
|
-
class Match {
|
|
54
|
-
static { this.MAX_PREVIEW_CHARS = 250; }
|
|
55
|
-
constructor(_parent, _fullPreviewLines, _fullPreviewRange, _documentRange, aiContributed) {
|
|
56
|
-
this._parent = _parent;
|
|
57
|
-
this._fullPreviewLines = _fullPreviewLines;
|
|
58
|
-
this.aiContributed = aiContributed;
|
|
59
|
-
this._oneLinePreviewText = _fullPreviewLines[_fullPreviewRange.startLineNumber];
|
|
60
|
-
const adjustedEndCol = _fullPreviewRange.startLineNumber === _fullPreviewRange.endLineNumber ?
|
|
61
|
-
_fullPreviewRange.endColumn :
|
|
62
|
-
this._oneLinePreviewText.length;
|
|
63
|
-
this._rangeInPreviewText = ( new OneLineRange(1, _fullPreviewRange.startColumn + 1, adjustedEndCol + 1));
|
|
64
|
-
this._range = ( new Range(
|
|
65
|
-
_documentRange.startLineNumber + 1,
|
|
66
|
-
_documentRange.startColumn + 1,
|
|
67
|
-
_documentRange.endLineNumber + 1,
|
|
68
|
-
_documentRange.endColumn + 1
|
|
69
|
-
));
|
|
70
|
-
this._fullPreviewRange = _fullPreviewRange;
|
|
71
|
-
this._id = this._parent.id() + '>' + this._range + this.getMatchString();
|
|
72
|
-
}
|
|
73
|
-
id() {
|
|
74
|
-
return this._id;
|
|
75
|
-
}
|
|
76
|
-
parent() {
|
|
77
|
-
return this._parent;
|
|
78
|
-
}
|
|
79
|
-
text() {
|
|
80
|
-
return this._oneLinePreviewText;
|
|
81
|
-
}
|
|
82
|
-
range() {
|
|
83
|
-
return this._range;
|
|
84
|
-
}
|
|
85
|
-
preview() {
|
|
86
|
-
const fullBefore = this._oneLinePreviewText.substring(0, this._rangeInPreviewText.startColumn - 1), before = lcut(fullBefore, 26, '…');
|
|
87
|
-
let inside = this.getMatchString(), after = this._oneLinePreviewText.substring(this._rangeInPreviewText.endColumn - 1);
|
|
88
|
-
let charsRemaining = Match.MAX_PREVIEW_CHARS - before.length;
|
|
89
|
-
inside = inside.substr(0, charsRemaining);
|
|
90
|
-
charsRemaining -= inside.length;
|
|
91
|
-
after = after.substr(0, charsRemaining);
|
|
92
|
-
return {
|
|
93
|
-
before,
|
|
94
|
-
fullBefore,
|
|
95
|
-
inside,
|
|
96
|
-
after,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
get replaceString() {
|
|
100
|
-
const searchModel = this.parent().parent().searchModel;
|
|
101
|
-
if (!searchModel.replacePattern) {
|
|
102
|
-
throw ( new Error('searchModel.replacePattern must be set before accessing replaceString'));
|
|
103
|
-
}
|
|
104
|
-
const fullMatchText = this.fullMatchText();
|
|
105
|
-
let replaceString = searchModel.replacePattern.getReplaceString(fullMatchText, searchModel.preserveCase);
|
|
106
|
-
if (replaceString !== null) {
|
|
107
|
-
return replaceString;
|
|
108
|
-
}
|
|
109
|
-
const fullMatchTextWithoutCR = fullMatchText.replace(/\r\n/g, '\n');
|
|
110
|
-
if (fullMatchTextWithoutCR !== fullMatchText) {
|
|
111
|
-
replaceString = searchModel.replacePattern.getReplaceString(fullMatchTextWithoutCR, searchModel.preserveCase);
|
|
112
|
-
if (replaceString !== null) {
|
|
113
|
-
return replaceString;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
const contextMatchTextWithSurroundingContent = this.fullMatchText(true);
|
|
117
|
-
replaceString = searchModel.replacePattern.getReplaceString(contextMatchTextWithSurroundingContent, searchModel.preserveCase);
|
|
118
|
-
if (replaceString !== null) {
|
|
119
|
-
return replaceString;
|
|
120
|
-
}
|
|
121
|
-
const contextMatchTextWithoutCR = contextMatchTextWithSurroundingContent.replace(/\r\n/g, '\n');
|
|
122
|
-
if (contextMatchTextWithoutCR !== contextMatchTextWithSurroundingContent) {
|
|
123
|
-
replaceString = searchModel.replacePattern.getReplaceString(contextMatchTextWithoutCR, searchModel.preserveCase);
|
|
124
|
-
if (replaceString !== null) {
|
|
125
|
-
return replaceString;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return searchModel.replacePattern.pattern;
|
|
129
|
-
}
|
|
130
|
-
fullMatchText(includeSurrounding = false) {
|
|
131
|
-
let thisMatchPreviewLines;
|
|
132
|
-
if (includeSurrounding) {
|
|
133
|
-
thisMatchPreviewLines = this._fullPreviewLines;
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
thisMatchPreviewLines = this._fullPreviewLines.slice(this._fullPreviewRange.startLineNumber, this._fullPreviewRange.endLineNumber + 1);
|
|
137
|
-
thisMatchPreviewLines[thisMatchPreviewLines.length - 1] = thisMatchPreviewLines[thisMatchPreviewLines.length - 1].slice(0, this._fullPreviewRange.endColumn);
|
|
138
|
-
thisMatchPreviewLines[0] = thisMatchPreviewLines[0].slice(this._fullPreviewRange.startColumn);
|
|
139
|
-
}
|
|
140
|
-
return thisMatchPreviewLines.join('\n');
|
|
141
|
-
}
|
|
142
|
-
rangeInPreview() {
|
|
143
|
-
return {
|
|
144
|
-
...this._fullPreviewRange,
|
|
145
|
-
startColumn: this._fullPreviewRange.startColumn + 1,
|
|
146
|
-
endColumn: this._fullPreviewRange.endColumn + 1
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
fullPreviewLines() {
|
|
150
|
-
return this._fullPreviewLines.slice(this._fullPreviewRange.startLineNumber, this._fullPreviewRange.endLineNumber + 1);
|
|
151
|
-
}
|
|
152
|
-
getMatchString() {
|
|
153
|
-
return this._oneLinePreviewText.substring(this._rangeInPreviewText.startColumn - 1, this._rangeInPreviewText.endColumn - 1);
|
|
154
|
-
}
|
|
155
|
-
isReadonly() {
|
|
156
|
-
return this.aiContributed;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
Match.__decorator = ( __decorate([
|
|
160
|
-
memoize
|
|
161
|
-
], Match.prototype, "preview", null));
|
|
162
|
-
class CellMatch {
|
|
163
|
-
constructor(_parent, _cell, _cellIndex) {
|
|
164
|
-
this._parent = _parent;
|
|
165
|
-
this._cell = _cell;
|
|
166
|
-
this._cellIndex = _cellIndex;
|
|
167
|
-
this._contentMatches = ( new Map());
|
|
168
|
-
this._webviewMatches = ( new Map());
|
|
169
|
-
this._context = ( new Map());
|
|
170
|
-
}
|
|
171
|
-
hasCellViewModel() {
|
|
172
|
-
return !(this._cell instanceof CellSearchModel);
|
|
173
|
-
}
|
|
174
|
-
get context() {
|
|
175
|
-
return ( new Map(this._context));
|
|
176
|
-
}
|
|
177
|
-
matches() {
|
|
178
|
-
return [...( this._contentMatches.values()), ...( this._webviewMatches.values())];
|
|
179
|
-
}
|
|
180
|
-
get contentMatches() {
|
|
181
|
-
return Array.from(( this._contentMatches.values()));
|
|
182
|
-
}
|
|
183
|
-
get webviewMatches() {
|
|
184
|
-
return Array.from(( this._webviewMatches.values()));
|
|
185
|
-
}
|
|
186
|
-
remove(matches) {
|
|
187
|
-
if (!Array.isArray(matches)) {
|
|
188
|
-
matches = [matches];
|
|
189
|
-
}
|
|
190
|
-
for (const match of matches) {
|
|
191
|
-
this._contentMatches.delete(match.id());
|
|
192
|
-
this._webviewMatches.delete(match.id());
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
clearAllMatches() {
|
|
196
|
-
this._contentMatches.clear();
|
|
197
|
-
this._webviewMatches.clear();
|
|
198
|
-
}
|
|
199
|
-
addContentMatches(textSearchMatches) {
|
|
200
|
-
const contentMatches = textSearchMatchesToNotebookMatches(textSearchMatches);
|
|
201
|
-
contentMatches.forEach((match) => {
|
|
202
|
-
this._contentMatches.set(match.id(), match);
|
|
203
|
-
});
|
|
204
|
-
this.addContext(textSearchMatches);
|
|
205
|
-
}
|
|
206
|
-
addContext(textSearchMatches) {
|
|
207
|
-
if (!this.cell) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
this.cell.resolveTextModel().then((textModel) => {
|
|
211
|
-
const textResultsWithContext = getTextSearchMatchWithModelContext(textSearchMatches, textModel, this.parent.parent().query);
|
|
212
|
-
const contexts = textResultsWithContext.filter((result => !resultIsMatch(result)));
|
|
213
|
-
( contexts.map(context => ({ ...context, lineNumber: context.lineNumber + 1 })))
|
|
214
|
-
.forEach((context) => { this._context.set(context.lineNumber, context.text); });
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
addWebviewMatches(textSearchMatches) {
|
|
218
|
-
const webviewMatches = textSearchMatchesToNotebookMatches(textSearchMatches);
|
|
219
|
-
webviewMatches.forEach((match) => {
|
|
220
|
-
this._webviewMatches.set(match.id(), match);
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
setCellModel(cell) {
|
|
224
|
-
this._cell = cell;
|
|
225
|
-
}
|
|
226
|
-
get parent() {
|
|
227
|
-
return this._parent;
|
|
228
|
-
}
|
|
229
|
-
get id() {
|
|
230
|
-
return this._cell?.id ?? `${rawCellPrefix}${this.cellIndex}`;
|
|
231
|
-
}
|
|
232
|
-
get cellIndex() {
|
|
233
|
-
return this._cellIndex;
|
|
234
|
-
}
|
|
235
|
-
get cell() {
|
|
236
|
-
return this._cell;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
class MatchInNotebook extends Match {
|
|
240
|
-
constructor(_cellParent, _fullPreviewLines, _fullPreviewRange, _documentRange, webviewIndex) {
|
|
241
|
-
super(_cellParent.parent, _fullPreviewLines, _fullPreviewRange, _documentRange, false);
|
|
242
|
-
this._cellParent = _cellParent;
|
|
243
|
-
this._id = this._parent.id() + '>' + this._cellParent.cellIndex + (webviewIndex ? '_' + webviewIndex : '') + '_' + this.notebookMatchTypeString() + this._range + this.getMatchString();
|
|
244
|
-
this._webviewIndex = webviewIndex;
|
|
245
|
-
}
|
|
246
|
-
parent() {
|
|
247
|
-
return this._cellParent.parent;
|
|
248
|
-
}
|
|
249
|
-
get cellParent() {
|
|
250
|
-
return this._cellParent;
|
|
251
|
-
}
|
|
252
|
-
notebookMatchTypeString() {
|
|
253
|
-
return this.isWebviewMatch() ? 'webview' : 'content';
|
|
254
|
-
}
|
|
255
|
-
isWebviewMatch() {
|
|
256
|
-
return this._webviewIndex !== undefined;
|
|
257
|
-
}
|
|
258
|
-
isReadonly() {
|
|
259
|
-
return super.isReadonly() || (!this._cellParent.hasCellViewModel()) || this.isWebviewMatch();
|
|
260
|
-
}
|
|
261
|
-
get cellIndex() {
|
|
262
|
-
return this._cellParent.cellIndex;
|
|
263
|
-
}
|
|
264
|
-
get webviewIndex() {
|
|
265
|
-
return this._webviewIndex;
|
|
266
|
-
}
|
|
267
|
-
get cell() {
|
|
268
|
-
return this._cellParent.cell;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
let FileMatch = class FileMatch extends Disposable {
|
|
272
|
-
static { FileMatch_1 = this; }
|
|
273
|
-
static { this._CURRENT_FIND_MATCH = ModelDecorationOptions.register({
|
|
274
|
-
description: 'search-current-find-match',
|
|
275
|
-
stickiness: 1 ,
|
|
276
|
-
zIndex: 13,
|
|
277
|
-
className: 'currentFindMatch',
|
|
278
|
-
overviewRuler: {
|
|
279
|
-
color: themeColorFromId(overviewRulerFindMatchForeground),
|
|
280
|
-
position: OverviewRulerLane.Center
|
|
281
|
-
},
|
|
282
|
-
minimap: {
|
|
283
|
-
color: themeColorFromId(minimapFindMatch),
|
|
284
|
-
position: 1
|
|
285
|
-
}
|
|
286
|
-
}); }
|
|
287
|
-
static { this._FIND_MATCH = ModelDecorationOptions.register({
|
|
288
|
-
description: 'search-find-match',
|
|
289
|
-
stickiness: 1 ,
|
|
290
|
-
className: 'findMatch',
|
|
291
|
-
overviewRuler: {
|
|
292
|
-
color: themeColorFromId(overviewRulerFindMatchForeground),
|
|
293
|
-
position: OverviewRulerLane.Center
|
|
294
|
-
},
|
|
295
|
-
minimap: {
|
|
296
|
-
color: themeColorFromId(minimapFindMatch),
|
|
297
|
-
position: 1
|
|
298
|
-
}
|
|
299
|
-
}); }
|
|
300
|
-
static getDecorationOption(selected) {
|
|
301
|
-
return (selected ? FileMatch_1._CURRENT_FIND_MATCH : FileMatch_1._FIND_MATCH);
|
|
302
|
-
}
|
|
303
|
-
get context() {
|
|
304
|
-
return ( new Map(this._context));
|
|
305
|
-
}
|
|
306
|
-
get cellContext() {
|
|
307
|
-
const cellContext = ( new Map());
|
|
308
|
-
this._cellMatches.forEach(cellMatch => {
|
|
309
|
-
cellContext.set(cellMatch.id, cellMatch.context);
|
|
310
|
-
});
|
|
311
|
-
return cellContext;
|
|
312
|
-
}
|
|
313
|
-
constructor(_query, _previewOptions, _maxResults, _parent, rawMatch, _closestRoot, searchInstanceID, modelService, replaceService, labelService, notebookEditorService) {
|
|
314
|
-
super();
|
|
315
|
-
this._query = _query;
|
|
316
|
-
this._previewOptions = _previewOptions;
|
|
317
|
-
this._maxResults = _maxResults;
|
|
318
|
-
this._parent = _parent;
|
|
319
|
-
this.rawMatch = rawMatch;
|
|
320
|
-
this._closestRoot = _closestRoot;
|
|
321
|
-
this.searchInstanceID = searchInstanceID;
|
|
322
|
-
this.modelService = modelService;
|
|
323
|
-
this.replaceService = replaceService;
|
|
324
|
-
this.notebookEditorService = notebookEditorService;
|
|
325
|
-
this._onChange = this._register(( new Emitter()));
|
|
326
|
-
this.onChange = this._onChange.event;
|
|
327
|
-
this._onDispose = this._register(( new Emitter()));
|
|
328
|
-
this.onDispose = this._onDispose.event;
|
|
329
|
-
this._model = null;
|
|
330
|
-
this._modelListener = null;
|
|
331
|
-
this._selectedMatch = null;
|
|
332
|
-
this._modelDecorations = [];
|
|
333
|
-
this._context = ( new Map());
|
|
334
|
-
this._notebookEditorWidget = null;
|
|
335
|
-
this._editorWidgetListener = null;
|
|
336
|
-
this.replaceQ = Promise.resolve();
|
|
337
|
-
this._resource = this.rawMatch.resource;
|
|
338
|
-
this._textMatches = ( new Map());
|
|
339
|
-
this._removedTextMatches = ( new Set());
|
|
340
|
-
this._updateScheduler = ( new RunOnceScheduler(this.updateMatchesForModel.bind(this), 250));
|
|
341
|
-
this._name = ( new Lazy(() => labelService.getUriBasenameLabel(this.resource)));
|
|
342
|
-
this._cellMatches = ( new Map());
|
|
343
|
-
this._notebookUpdateScheduler = ( new RunOnceScheduler(this.updateMatchesForEditorWidget.bind(this), 250));
|
|
344
|
-
}
|
|
345
|
-
addWebviewMatchesToCell(cellID, webviewMatches) {
|
|
346
|
-
const cellMatch = this.getCellMatch(cellID);
|
|
347
|
-
if (cellMatch !== undefined) {
|
|
348
|
-
cellMatch.addWebviewMatches(webviewMatches);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
addContentMatchesToCell(cellID, contentMatches) {
|
|
352
|
-
const cellMatch = this.getCellMatch(cellID);
|
|
353
|
-
if (cellMatch !== undefined) {
|
|
354
|
-
cellMatch.addContentMatches(contentMatches);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
getCellMatch(cellID) {
|
|
358
|
-
return this._cellMatches.get(cellID);
|
|
359
|
-
}
|
|
360
|
-
addCellMatch(rawCell) {
|
|
361
|
-
const cellMatch = ( new CellMatch(
|
|
362
|
-
this,
|
|
363
|
-
isINotebookCellMatchWithModel(rawCell) ? rawCell.cell : undefined,
|
|
364
|
-
rawCell.index
|
|
365
|
-
));
|
|
366
|
-
this._cellMatches.set(cellMatch.id, cellMatch);
|
|
367
|
-
this.addWebviewMatchesToCell(cellMatch.id, rawCell.webviewResults);
|
|
368
|
-
this.addContentMatchesToCell(cellMatch.id, rawCell.contentResults);
|
|
369
|
-
}
|
|
370
|
-
get closestRoot() {
|
|
371
|
-
return this._closestRoot;
|
|
372
|
-
}
|
|
373
|
-
hasReadonlyMatches() {
|
|
374
|
-
return ( this.matches().some(m => m.isReadonly()));
|
|
375
|
-
}
|
|
376
|
-
createMatches(isAiContributed) {
|
|
377
|
-
const model = this.modelService.getModel(this._resource);
|
|
378
|
-
if (model && !isAiContributed) {
|
|
379
|
-
this.bindModel(model);
|
|
380
|
-
this.updateMatchesForModel();
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
const notebookEditorWidgetBorrow = this.notebookEditorService.retrieveExistingWidgetFromURI(this.resource);
|
|
384
|
-
if (notebookEditorWidgetBorrow?.value) {
|
|
385
|
-
this.bindNotebookEditorWidget(notebookEditorWidgetBorrow.value);
|
|
386
|
-
}
|
|
387
|
-
if (this.rawMatch.results) {
|
|
388
|
-
this.rawMatch.results
|
|
389
|
-
.filter(resultIsMatch)
|
|
390
|
-
.forEach(rawMatch => {
|
|
391
|
-
textSearchResultToMatches(rawMatch, this, isAiContributed)
|
|
392
|
-
.forEach(m => this.add(m));
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
if (isINotebookFileMatchWithModel(this.rawMatch) || isINotebookFileMatchNoModel(this.rawMatch)) {
|
|
396
|
-
this.rawMatch.cellResults?.forEach(cell => this.addCellMatch(cell));
|
|
397
|
-
this.setNotebookFindMatchDecorationsUsingCellMatches(this.cellMatches());
|
|
398
|
-
this._onChange.fire({ forceUpdateModel: true });
|
|
399
|
-
}
|
|
400
|
-
this.addContext(this.rawMatch.results);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
bindModel(model) {
|
|
404
|
-
this._model = model;
|
|
405
|
-
this._modelListener = this._model.onDidChangeContent(() => {
|
|
406
|
-
this._updateScheduler.schedule();
|
|
407
|
-
});
|
|
408
|
-
this._model.onWillDispose(() => this.onModelWillDispose());
|
|
409
|
-
this.updateHighlights();
|
|
410
|
-
}
|
|
411
|
-
onModelWillDispose() {
|
|
412
|
-
this.updateMatchesForModel();
|
|
413
|
-
this.unbindModel();
|
|
414
|
-
}
|
|
415
|
-
unbindModel() {
|
|
416
|
-
if (this._model) {
|
|
417
|
-
this._updateScheduler.cancel();
|
|
418
|
-
this._model.changeDecorations((accessor) => {
|
|
419
|
-
this._modelDecorations = accessor.deltaDecorations(this._modelDecorations, []);
|
|
420
|
-
});
|
|
421
|
-
this._model = null;
|
|
422
|
-
this._modelListener.dispose();
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
updateMatchesForModel() {
|
|
426
|
-
if (!this._model) {
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
this._textMatches = ( new Map());
|
|
430
|
-
const wordSeparators = this._query.isWordMatch && this._query.wordSeparators ? this._query.wordSeparators : null;
|
|
431
|
-
const matches = this._model
|
|
432
|
-
.findMatches(this._query.pattern, this._model.getFullModelRange(), !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ?? DEFAULT_MAX_SEARCH_RESULTS);
|
|
433
|
-
this.updateMatches(matches, true, this._model, false);
|
|
434
|
-
}
|
|
435
|
-
async updatesMatchesForLineAfterReplace(lineNumber, modelChange) {
|
|
436
|
-
if (!this._model) {
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
const range = {
|
|
440
|
-
startLineNumber: lineNumber,
|
|
441
|
-
startColumn: this._model.getLineMinColumn(lineNumber),
|
|
442
|
-
endLineNumber: lineNumber,
|
|
443
|
-
endColumn: this._model.getLineMaxColumn(lineNumber)
|
|
444
|
-
};
|
|
445
|
-
const oldMatches = Array.from(( this._textMatches.values())).filter(match => match.range().startLineNumber === lineNumber);
|
|
446
|
-
oldMatches.forEach(match => this._textMatches.delete(match.id()));
|
|
447
|
-
const wordSeparators = this._query.isWordMatch && this._query.wordSeparators ? this._query.wordSeparators : null;
|
|
448
|
-
const matches = this._model.findMatches(this._query.pattern, range, !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ?? DEFAULT_MAX_SEARCH_RESULTS);
|
|
449
|
-
this.updateMatches(matches, modelChange, this._model, false);
|
|
450
|
-
}
|
|
451
|
-
updateMatches(matches, modelChange, model, isAiContributed) {
|
|
452
|
-
const textSearchResults = editorMatchesToTextSearchResults(matches, model, this._previewOptions);
|
|
453
|
-
textSearchResults.forEach(textSearchResult => {
|
|
454
|
-
textSearchResultToMatches(textSearchResult, this, isAiContributed).forEach(match => {
|
|
455
|
-
if (!( this._removedTextMatches.has(match.id()))) {
|
|
456
|
-
this.add(match);
|
|
457
|
-
if (this.isMatchSelected(match)) {
|
|
458
|
-
this._selectedMatch = match;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
this.addContext(getTextSearchMatchWithModelContext(textSearchResults, model, this.parent().parent().query));
|
|
464
|
-
this._onChange.fire({ forceUpdateModel: modelChange });
|
|
465
|
-
this.updateHighlights();
|
|
466
|
-
}
|
|
467
|
-
updateHighlights() {
|
|
468
|
-
if (!this._model) {
|
|
469
|
-
return;
|
|
470
|
-
}
|
|
471
|
-
this._model.changeDecorations((accessor) => {
|
|
472
|
-
const newDecorations = (this.parent().showHighlights
|
|
473
|
-
? ( this.matches().map((match) => ({
|
|
474
|
-
range: match.range(),
|
|
475
|
-
options: FileMatch_1.getDecorationOption(this.isMatchSelected(match))
|
|
476
|
-
})))
|
|
477
|
-
: []);
|
|
478
|
-
this._modelDecorations = accessor.deltaDecorations(this._modelDecorations, newDecorations);
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
id() {
|
|
482
|
-
return ( this.resource.toString());
|
|
483
|
-
}
|
|
484
|
-
parent() {
|
|
485
|
-
return this._parent;
|
|
486
|
-
}
|
|
487
|
-
get hasChildren() {
|
|
488
|
-
return this._textMatches.size > 0 || this._cellMatches.size > 0;
|
|
489
|
-
}
|
|
490
|
-
matches() {
|
|
491
|
-
const cellMatches = Array.from(( this._cellMatches.values())).flatMap((e) => e.matches());
|
|
492
|
-
return [...( this._textMatches.values()), ...cellMatches];
|
|
493
|
-
}
|
|
494
|
-
textMatches() {
|
|
495
|
-
return Array.from(( this._textMatches.values()));
|
|
496
|
-
}
|
|
497
|
-
cellMatches() {
|
|
498
|
-
return Array.from(( this._cellMatches.values()));
|
|
499
|
-
}
|
|
500
|
-
remove(matches) {
|
|
501
|
-
if (!Array.isArray(matches)) {
|
|
502
|
-
matches = [matches];
|
|
503
|
-
}
|
|
504
|
-
for (const match of matches) {
|
|
505
|
-
this.removeMatch(match);
|
|
506
|
-
this._removedTextMatches.add(match.id());
|
|
507
|
-
}
|
|
508
|
-
this._onChange.fire({ didRemove: true });
|
|
509
|
-
}
|
|
510
|
-
async replace(toReplace) {
|
|
511
|
-
return this.replaceQ = this.replaceQ.finally(async () => {
|
|
512
|
-
await this.replaceService.replace(toReplace);
|
|
513
|
-
await this.updatesMatchesForLineAfterReplace(toReplace.range().startLineNumber, false);
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
setSelectedMatch(match) {
|
|
517
|
-
if (match) {
|
|
518
|
-
if (!this.isMatchSelected(match) && match instanceof MatchInNotebook) {
|
|
519
|
-
this._selectedMatch = match;
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
if (!( this._textMatches.has(match.id()))) {
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
if (this.isMatchSelected(match)) {
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
this._selectedMatch = match;
|
|
530
|
-
this.updateHighlights();
|
|
531
|
-
}
|
|
532
|
-
getSelectedMatch() {
|
|
533
|
-
return this._selectedMatch;
|
|
534
|
-
}
|
|
535
|
-
isMatchSelected(match) {
|
|
536
|
-
return !!this._selectedMatch && this._selectedMatch.id() === match.id();
|
|
537
|
-
}
|
|
538
|
-
count() {
|
|
539
|
-
return this.matches().length;
|
|
540
|
-
}
|
|
541
|
-
get resource() {
|
|
542
|
-
return this._resource;
|
|
543
|
-
}
|
|
544
|
-
name() {
|
|
545
|
-
return this._name.value;
|
|
546
|
-
}
|
|
547
|
-
addContext(results) {
|
|
548
|
-
if (!results) {
|
|
549
|
-
return;
|
|
550
|
-
}
|
|
551
|
-
const contexts = results
|
|
552
|
-
.filter((result => !resultIsMatch(result)));
|
|
553
|
-
return contexts.forEach(context => this._context.set(context.lineNumber, context.text));
|
|
554
|
-
}
|
|
555
|
-
add(match, trigger) {
|
|
556
|
-
this._textMatches.set(match.id(), match);
|
|
557
|
-
if (trigger) {
|
|
558
|
-
this._onChange.fire({ forceUpdateModel: true });
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
removeMatch(match) {
|
|
562
|
-
if (match instanceof MatchInNotebook) {
|
|
563
|
-
match.cellParent.remove(match);
|
|
564
|
-
if (match.cellParent.matches().length === 0) {
|
|
565
|
-
this._cellMatches.delete(match.cellParent.id);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
else {
|
|
569
|
-
this._textMatches.delete(match.id());
|
|
570
|
-
}
|
|
571
|
-
if (this.isMatchSelected(match)) {
|
|
572
|
-
this.setSelectedMatch(null);
|
|
573
|
-
this._findMatchDecorationModel?.clearCurrentFindMatchDecoration();
|
|
574
|
-
}
|
|
575
|
-
else {
|
|
576
|
-
this.updateHighlights();
|
|
577
|
-
}
|
|
578
|
-
if (match instanceof MatchInNotebook) {
|
|
579
|
-
this.setNotebookFindMatchDecorationsUsingCellMatches(this.cellMatches());
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
async resolveFileStat(fileService) {
|
|
583
|
-
this._fileStat = await fileService.stat(this.resource).catch(() => undefined);
|
|
584
|
-
}
|
|
585
|
-
get fileStat() {
|
|
586
|
-
return this._fileStat;
|
|
587
|
-
}
|
|
588
|
-
set fileStat(stat) {
|
|
589
|
-
this._fileStat = stat;
|
|
590
|
-
}
|
|
591
|
-
dispose() {
|
|
592
|
-
this.setSelectedMatch(null);
|
|
593
|
-
this.unbindModel();
|
|
594
|
-
this.unbindNotebookEditorWidget();
|
|
595
|
-
this._onDispose.fire();
|
|
596
|
-
super.dispose();
|
|
597
|
-
}
|
|
598
|
-
hasOnlyReadOnlyMatches() {
|
|
599
|
-
return this.matches().every(match => match.isReadonly());
|
|
600
|
-
}
|
|
601
|
-
bindNotebookEditorWidget(widget) {
|
|
602
|
-
if (this._notebookEditorWidget === widget) {
|
|
603
|
-
return;
|
|
604
|
-
}
|
|
605
|
-
this._notebookEditorWidget = widget;
|
|
606
|
-
this._editorWidgetListener = this._notebookEditorWidget.textModel?.onDidChangeContent((e) => {
|
|
607
|
-
if (!( e.rawEvents.some(
|
|
608
|
-
event => event.kind === NotebookCellsChangeType.ChangeCellContent || event.kind === NotebookCellsChangeType.ModelChange
|
|
609
|
-
))) {
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
this._notebookUpdateScheduler.schedule();
|
|
613
|
-
}) ?? null;
|
|
614
|
-
this._addNotebookHighlights();
|
|
615
|
-
}
|
|
616
|
-
unbindNotebookEditorWidget(widget) {
|
|
617
|
-
if (widget && this._notebookEditorWidget !== widget) {
|
|
618
|
-
return;
|
|
619
|
-
}
|
|
620
|
-
if (this._notebookEditorWidget) {
|
|
621
|
-
this._notebookUpdateScheduler.cancel();
|
|
622
|
-
this._editorWidgetListener?.dispose();
|
|
623
|
-
}
|
|
624
|
-
this._removeNotebookHighlights();
|
|
625
|
-
this._notebookEditorWidget = null;
|
|
626
|
-
}
|
|
627
|
-
updateNotebookHighlights() {
|
|
628
|
-
if (this.parent().showHighlights) {
|
|
629
|
-
this._addNotebookHighlights();
|
|
630
|
-
this.setNotebookFindMatchDecorationsUsingCellMatches(Array.from(( this._cellMatches.values())));
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
this._removeNotebookHighlights();
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
_addNotebookHighlights() {
|
|
637
|
-
if (!this._notebookEditorWidget) {
|
|
638
|
-
return;
|
|
639
|
-
}
|
|
640
|
-
this._findMatchDecorationModel?.stopWebviewFind();
|
|
641
|
-
this._findMatchDecorationModel?.dispose();
|
|
642
|
-
this._findMatchDecorationModel = ( new FindMatchDecorationModel(this._notebookEditorWidget, this.searchInstanceID));
|
|
643
|
-
if (this._selectedMatch instanceof MatchInNotebook) {
|
|
644
|
-
this.highlightCurrentFindMatchDecoration(this._selectedMatch);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
_removeNotebookHighlights() {
|
|
648
|
-
if (this._findMatchDecorationModel) {
|
|
649
|
-
this._findMatchDecorationModel?.stopWebviewFind();
|
|
650
|
-
this._findMatchDecorationModel?.dispose();
|
|
651
|
-
this._findMatchDecorationModel = undefined;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
updateNotebookMatches(matches, modelChange) {
|
|
655
|
-
if (!this._notebookEditorWidget) {
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
658
|
-
const oldCellMatches = ( new Map(this._cellMatches));
|
|
659
|
-
if (this._notebookEditorWidget.getId() !== this._lastEditorWidgetIdForUpdate) {
|
|
660
|
-
this._cellMatches.clear();
|
|
661
|
-
this._lastEditorWidgetIdForUpdate = this._notebookEditorWidget.getId();
|
|
662
|
-
}
|
|
663
|
-
matches.forEach(match => {
|
|
664
|
-
let existingCell = this._cellMatches.get(match.cell.id);
|
|
665
|
-
if (this._notebookEditorWidget && !existingCell) {
|
|
666
|
-
const index = this._notebookEditorWidget.getCellIndex(match.cell);
|
|
667
|
-
const existingRawCell = oldCellMatches.get(`${rawCellPrefix}${index}`);
|
|
668
|
-
if (existingRawCell) {
|
|
669
|
-
existingRawCell.setCellModel(match.cell);
|
|
670
|
-
existingRawCell.clearAllMatches();
|
|
671
|
-
existingCell = existingRawCell;
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
existingCell?.clearAllMatches();
|
|
675
|
-
const cell = existingCell ?? ( new CellMatch(this, match.cell, match.index));
|
|
676
|
-
cell.addContentMatches(contentMatchesToTextSearchMatches(match.contentMatches, match.cell));
|
|
677
|
-
cell.addWebviewMatches(webviewMatchesToTextSearchMatches(match.webviewMatches));
|
|
678
|
-
this._cellMatches.set(cell.id, cell);
|
|
679
|
-
});
|
|
680
|
-
this._findMatchDecorationModel?.setAllFindMatchesDecorations(matches);
|
|
681
|
-
if (this._selectedMatch instanceof MatchInNotebook) {
|
|
682
|
-
this.highlightCurrentFindMatchDecoration(this._selectedMatch);
|
|
683
|
-
}
|
|
684
|
-
this._onChange.fire({ forceUpdateModel: modelChange });
|
|
685
|
-
}
|
|
686
|
-
setNotebookFindMatchDecorationsUsingCellMatches(cells) {
|
|
687
|
-
if (!this._findMatchDecorationModel) {
|
|
688
|
-
return;
|
|
689
|
-
}
|
|
690
|
-
const cellFindMatch = coalesce(( cells.map((cell) => {
|
|
691
|
-
const webviewMatches = coalesce(( cell.webviewMatches.map((match) => {
|
|
692
|
-
if (!match.webviewIndex) {
|
|
693
|
-
return undefined;
|
|
694
|
-
}
|
|
695
|
-
return {
|
|
696
|
-
index: match.webviewIndex,
|
|
697
|
-
};
|
|
698
|
-
})));
|
|
699
|
-
if (!cell.cell) {
|
|
700
|
-
return undefined;
|
|
701
|
-
}
|
|
702
|
-
const findMatches = ( cell.contentMatches.map(match => {
|
|
703
|
-
return ( new FindMatch(match.range(), [match.text()]));
|
|
704
|
-
}));
|
|
705
|
-
return ( new CellFindMatchModel(cell.cell, cell.cellIndex, findMatches, webviewMatches));
|
|
706
|
-
})));
|
|
707
|
-
try {
|
|
708
|
-
this._findMatchDecorationModel.setAllFindMatchesDecorations(cellFindMatch);
|
|
709
|
-
}
|
|
710
|
-
catch (e) {
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
async updateMatchesForEditorWidget() {
|
|
714
|
-
if (!this._notebookEditorWidget) {
|
|
715
|
-
return;
|
|
716
|
-
}
|
|
717
|
-
this._textMatches = ( new Map());
|
|
718
|
-
const wordSeparators = this._query.isWordMatch && this._query.wordSeparators ? this._query.wordSeparators : null;
|
|
719
|
-
const allMatches = await this._notebookEditorWidget
|
|
720
|
-
.find(this._query.pattern, {
|
|
721
|
-
regex: this._query.isRegExp,
|
|
722
|
-
wholeWord: this._query.isWordMatch,
|
|
723
|
-
caseSensitive: this._query.isCaseSensitive,
|
|
724
|
-
wordSeparators: wordSeparators ?? undefined,
|
|
725
|
-
includeMarkupInput: this._query.notebookInfo?.isInNotebookMarkdownInput,
|
|
726
|
-
includeMarkupPreview: this._query.notebookInfo?.isInNotebookMarkdownPreview,
|
|
727
|
-
includeCodeInput: this._query.notebookInfo?.isInNotebookCellInput,
|
|
728
|
-
includeOutput: this._query.notebookInfo?.isInNotebookCellOutput,
|
|
729
|
-
}, CancellationToken.None, false, true, this.searchInstanceID);
|
|
730
|
-
this.updateNotebookMatches(allMatches, true);
|
|
731
|
-
}
|
|
732
|
-
async showMatch(match) {
|
|
733
|
-
const offset = await this.highlightCurrentFindMatchDecoration(match);
|
|
734
|
-
this.setSelectedMatch(match);
|
|
735
|
-
this.revealCellRange(match, offset);
|
|
736
|
-
}
|
|
737
|
-
async highlightCurrentFindMatchDecoration(match) {
|
|
738
|
-
if (!this._findMatchDecorationModel || !match.cell) {
|
|
739
|
-
return null;
|
|
740
|
-
}
|
|
741
|
-
if (match.webviewIndex === undefined) {
|
|
742
|
-
return this._findMatchDecorationModel.highlightCurrentFindMatchDecorationInCell(match.cell, match.range());
|
|
743
|
-
}
|
|
744
|
-
else {
|
|
745
|
-
return this._findMatchDecorationModel.highlightCurrentFindMatchDecorationInWebview(match.cell, match.webviewIndex);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
revealCellRange(match, outputOffset) {
|
|
749
|
-
if (!this._notebookEditorWidget || !match.cell) {
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
if (match.webviewIndex !== undefined) {
|
|
753
|
-
const index = this._notebookEditorWidget.getCellIndex(match.cell);
|
|
754
|
-
if (index !== undefined) {
|
|
755
|
-
this._notebookEditorWidget.revealCellOffsetInCenter(match.cell, outputOffset ?? 0);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
else {
|
|
759
|
-
match.cell.updateEditState(match.cell.getEditState(), 'focusNotebookCell');
|
|
760
|
-
this._notebookEditorWidget.setCellEditorSelection(match.cell, match.range());
|
|
761
|
-
this._notebookEditorWidget.revealRangeInCenterIfOutsideViewportAsync(match.cell, match.range());
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
FileMatch = FileMatch_1 = ( __decorate([
|
|
766
|
-
( __param(7, IModelService)),
|
|
767
|
-
( __param(8, IReplaceService)),
|
|
768
|
-
( __param(9, ILabelService)),
|
|
769
|
-
( __param(10, INotebookEditorService))
|
|
770
|
-
], FileMatch));
|
|
771
|
-
let FolderMatch = FolderMatch_1 = class FolderMatch extends Disposable {
|
|
772
|
-
constructor(_resource, _id, _index, _query, _parent, _searchResult, _closestRoot, replaceService, instantiationService, labelService, uriIdentityService) {
|
|
773
|
-
super();
|
|
774
|
-
this._resource = _resource;
|
|
775
|
-
this._id = _id;
|
|
776
|
-
this._index = _index;
|
|
777
|
-
this._query = _query;
|
|
778
|
-
this._parent = _parent;
|
|
779
|
-
this._searchResult = _searchResult;
|
|
780
|
-
this._closestRoot = _closestRoot;
|
|
781
|
-
this.replaceService = replaceService;
|
|
782
|
-
this.instantiationService = instantiationService;
|
|
783
|
-
this.uriIdentityService = uriIdentityService;
|
|
784
|
-
this._onChange = this._register(( new Emitter()));
|
|
785
|
-
this.onChange = this._onChange.event;
|
|
786
|
-
this._onDispose = this._register(( new Emitter()));
|
|
787
|
-
this.onDispose = this._onDispose.event;
|
|
788
|
-
this._replacingAll = false;
|
|
789
|
-
this._fileMatches = ( new ResourceMap());
|
|
790
|
-
this._folderMatches = ( new ResourceMap());
|
|
791
|
-
this._folderMatchesMap = TernarySearchTree.forUris(key => this.uriIdentityService.extUri.ignorePathCasing(key));
|
|
792
|
-
this._unDisposedFileMatches = ( new ResourceMap());
|
|
793
|
-
this._unDisposedFolderMatches = ( new ResourceMap());
|
|
794
|
-
this._name = ( new Lazy(() => this.resource ? labelService.getUriBasenameLabel(this.resource) : ''));
|
|
795
|
-
}
|
|
796
|
-
get searchModel() {
|
|
797
|
-
return this._searchResult.searchModel;
|
|
798
|
-
}
|
|
799
|
-
get showHighlights() {
|
|
800
|
-
return this._parent.showHighlights;
|
|
801
|
-
}
|
|
802
|
-
get closestRoot() {
|
|
803
|
-
return this._closestRoot;
|
|
804
|
-
}
|
|
805
|
-
set replacingAll(b) {
|
|
806
|
-
this._replacingAll = b;
|
|
807
|
-
}
|
|
808
|
-
id() {
|
|
809
|
-
return this._id;
|
|
810
|
-
}
|
|
811
|
-
get resource() {
|
|
812
|
-
return this._resource;
|
|
813
|
-
}
|
|
814
|
-
index() {
|
|
815
|
-
return this._index;
|
|
816
|
-
}
|
|
817
|
-
name() {
|
|
818
|
-
return this._name.value;
|
|
819
|
-
}
|
|
820
|
-
parent() {
|
|
821
|
-
return this._parent;
|
|
822
|
-
}
|
|
823
|
-
get hasChildren() {
|
|
824
|
-
return this._fileMatches.size > 0 || this._folderMatches.size > 0;
|
|
825
|
-
}
|
|
826
|
-
bindModel(model) {
|
|
827
|
-
const fileMatch = this._fileMatches.get(model.uri);
|
|
828
|
-
if (fileMatch) {
|
|
829
|
-
fileMatch.bindModel(model);
|
|
830
|
-
}
|
|
831
|
-
else {
|
|
832
|
-
const folderMatch = this.getFolderMatch(model.uri);
|
|
833
|
-
const match = folderMatch?.getDownstreamFileMatch(model.uri);
|
|
834
|
-
match?.bindModel(model);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
async bindNotebookEditorWidget(editor, resource) {
|
|
838
|
-
const fileMatch = this._fileMatches.get(resource);
|
|
839
|
-
if (fileMatch) {
|
|
840
|
-
fileMatch.bindNotebookEditorWidget(editor);
|
|
841
|
-
await fileMatch.updateMatchesForEditorWidget();
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
const folderMatches = this.folderMatchesIterator();
|
|
845
|
-
for (const elem of folderMatches) {
|
|
846
|
-
await elem.bindNotebookEditorWidget(editor, resource);
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
unbindNotebookEditorWidget(editor, resource) {
|
|
851
|
-
const fileMatch = this._fileMatches.get(resource);
|
|
852
|
-
if (fileMatch) {
|
|
853
|
-
fileMatch.unbindNotebookEditorWidget(editor);
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
const folderMatches = this.folderMatchesIterator();
|
|
857
|
-
for (const elem of folderMatches) {
|
|
858
|
-
elem.unbindNotebookEditorWidget(editor, resource);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
createIntermediateFolderMatch(resource, id, index, query, baseWorkspaceFolder) {
|
|
863
|
-
const folderMatch = this._register(this.instantiationService.createInstance(FolderMatchWithResource, resource, id, index, query, this, this._searchResult, baseWorkspaceFolder));
|
|
864
|
-
this.configureIntermediateMatch(folderMatch);
|
|
865
|
-
this.doAddFolder(folderMatch);
|
|
866
|
-
return folderMatch;
|
|
867
|
-
}
|
|
868
|
-
configureIntermediateMatch(folderMatch) {
|
|
869
|
-
const disposable = folderMatch.onChange((event) => this.onFolderChange(folderMatch, event));
|
|
870
|
-
this._register(folderMatch.onDispose(() => disposable.dispose()));
|
|
871
|
-
}
|
|
872
|
-
clear(clearingAll = false) {
|
|
873
|
-
const changed = this.allDownstreamFileMatches();
|
|
874
|
-
this.disposeMatches();
|
|
875
|
-
this._onChange.fire({ elements: changed, removed: true, added: false, clearingAll });
|
|
876
|
-
}
|
|
877
|
-
remove(matches) {
|
|
878
|
-
if (!Array.isArray(matches)) {
|
|
879
|
-
matches = [matches];
|
|
880
|
-
}
|
|
881
|
-
const allMatches = getFileMatches(matches);
|
|
882
|
-
this.doRemoveFile(allMatches);
|
|
883
|
-
}
|
|
884
|
-
async replace(match) {
|
|
885
|
-
return this.replaceService.replace([match]).then(() => {
|
|
886
|
-
this.doRemoveFile([match], true, true, true);
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
replaceAll() {
|
|
890
|
-
const matches = this.matches();
|
|
891
|
-
return this.batchReplace(matches);
|
|
892
|
-
}
|
|
893
|
-
matches() {
|
|
894
|
-
return [...this.fileMatchesIterator(), ...this.folderMatchesIterator()];
|
|
895
|
-
}
|
|
896
|
-
fileMatchesIterator() {
|
|
897
|
-
return ( this._fileMatches.values());
|
|
898
|
-
}
|
|
899
|
-
folderMatchesIterator() {
|
|
900
|
-
return ( this._folderMatches.values());
|
|
901
|
-
}
|
|
902
|
-
isEmpty() {
|
|
903
|
-
return (this.fileCount() + this.folderCount()) === 0;
|
|
904
|
-
}
|
|
905
|
-
getDownstreamFileMatch(uri) {
|
|
906
|
-
const directChildFileMatch = this._fileMatches.get(uri);
|
|
907
|
-
if (directChildFileMatch) {
|
|
908
|
-
return directChildFileMatch;
|
|
909
|
-
}
|
|
910
|
-
const folderMatch = this.getFolderMatch(uri);
|
|
911
|
-
const match = folderMatch?.getDownstreamFileMatch(uri);
|
|
912
|
-
if (match) {
|
|
913
|
-
return match;
|
|
914
|
-
}
|
|
915
|
-
return null;
|
|
916
|
-
}
|
|
917
|
-
allDownstreamFileMatches() {
|
|
918
|
-
let recursiveChildren = [];
|
|
919
|
-
const iterator = this.folderMatchesIterator();
|
|
920
|
-
for (const elem of iterator) {
|
|
921
|
-
recursiveChildren = recursiveChildren.concat(elem.allDownstreamFileMatches());
|
|
922
|
-
}
|
|
923
|
-
return [...this.fileMatchesIterator(), ...recursiveChildren];
|
|
924
|
-
}
|
|
925
|
-
fileCount() {
|
|
926
|
-
return this._fileMatches.size;
|
|
927
|
-
}
|
|
928
|
-
folderCount() {
|
|
929
|
-
return this._folderMatches.size;
|
|
930
|
-
}
|
|
931
|
-
count() {
|
|
932
|
-
return this.fileCount() + this.folderCount();
|
|
933
|
-
}
|
|
934
|
-
recursiveFileCount() {
|
|
935
|
-
return this.allDownstreamFileMatches().length;
|
|
936
|
-
}
|
|
937
|
-
recursiveMatchCount() {
|
|
938
|
-
return this.allDownstreamFileMatches().reduce((prev, match) => prev + match.count(), 0);
|
|
939
|
-
}
|
|
940
|
-
get query() {
|
|
941
|
-
return this._query;
|
|
942
|
-
}
|
|
943
|
-
addFileMatch(raw, silent, searchInstanceID, isAiContributed) {
|
|
944
|
-
const added = [];
|
|
945
|
-
const updated = [];
|
|
946
|
-
raw.forEach(rawFileMatch => {
|
|
947
|
-
const existingFileMatch = this.getDownstreamFileMatch(rawFileMatch.resource);
|
|
948
|
-
if (existingFileMatch) {
|
|
949
|
-
if (rawFileMatch.results) {
|
|
950
|
-
rawFileMatch
|
|
951
|
-
.results
|
|
952
|
-
.filter(resultIsMatch)
|
|
953
|
-
.forEach(m => {
|
|
954
|
-
textSearchResultToMatches(m, existingFileMatch, isAiContributed)
|
|
955
|
-
.forEach(m => existingFileMatch.add(m));
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
if (isINotebookFileMatchWithModel(rawFileMatch) || isINotebookFileMatchNoModel(rawFileMatch)) {
|
|
959
|
-
rawFileMatch.cellResults?.forEach(rawCellMatch => {
|
|
960
|
-
const existingCellMatch = existingFileMatch.getCellMatch(getIDFromINotebookCellMatch(rawCellMatch));
|
|
961
|
-
if (existingCellMatch) {
|
|
962
|
-
existingCellMatch.addContentMatches(rawCellMatch.contentResults);
|
|
963
|
-
existingCellMatch.addWebviewMatches(rawCellMatch.webviewResults);
|
|
964
|
-
}
|
|
965
|
-
else {
|
|
966
|
-
existingFileMatch.addCellMatch(rawCellMatch);
|
|
967
|
-
}
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
updated.push(existingFileMatch);
|
|
971
|
-
if (rawFileMatch.results && rawFileMatch.results.length > 0) {
|
|
972
|
-
existingFileMatch.addContext(rawFileMatch.results);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
else {
|
|
976
|
-
if (this instanceof FolderMatchWorkspaceRoot || this instanceof FolderMatchNoRoot) {
|
|
977
|
-
const fileMatch = this.createAndConfigureFileMatch(rawFileMatch, searchInstanceID);
|
|
978
|
-
added.push(fileMatch);
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
});
|
|
982
|
-
const elements = [...added, ...updated];
|
|
983
|
-
if (!silent && elements.length) {
|
|
984
|
-
this._onChange.fire({ elements, added: !!added.length });
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
doAddFile(fileMatch) {
|
|
988
|
-
this._fileMatches.set(fileMatch.resource, fileMatch);
|
|
989
|
-
if (( this._unDisposedFileMatches.has(fileMatch.resource))) {
|
|
990
|
-
this._unDisposedFileMatches.delete(fileMatch.resource);
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
hasOnlyReadOnlyMatches() {
|
|
994
|
-
return Array.from(( this._fileMatches.values())).every(fm => fm.hasOnlyReadOnlyMatches());
|
|
995
|
-
}
|
|
996
|
-
uriHasParent(parent, child) {
|
|
997
|
-
return this.uriIdentityService.extUri.isEqualOrParent(child, parent) && !this.uriIdentityService.extUri.isEqual(child, parent);
|
|
998
|
-
}
|
|
999
|
-
isInParentChain(folderMatch) {
|
|
1000
|
-
let matchItem = this;
|
|
1001
|
-
while (matchItem instanceof FolderMatch_1) {
|
|
1002
|
-
if (matchItem.id() === folderMatch.id()) {
|
|
1003
|
-
return true;
|
|
1004
|
-
}
|
|
1005
|
-
matchItem = matchItem.parent();
|
|
1006
|
-
}
|
|
1007
|
-
return false;
|
|
1008
|
-
}
|
|
1009
|
-
getFolderMatch(resource) {
|
|
1010
|
-
const folderMatch = this._folderMatchesMap.findSubstr(resource);
|
|
1011
|
-
return folderMatch;
|
|
1012
|
-
}
|
|
1013
|
-
doAddFolder(folderMatch) {
|
|
1014
|
-
if (this instanceof FolderMatchWithResource && !this.uriHasParent(this.resource, folderMatch.resource)) {
|
|
1015
|
-
throw Error(`${folderMatch.resource} does not belong as a child of ${this.resource}`);
|
|
1016
|
-
}
|
|
1017
|
-
else if (this.isInParentChain(folderMatch)) {
|
|
1018
|
-
throw Error(`${folderMatch.resource} is a parent of ${this.resource}`);
|
|
1019
|
-
}
|
|
1020
|
-
this._folderMatches.set(folderMatch.resource, folderMatch);
|
|
1021
|
-
this._folderMatchesMap.set(folderMatch.resource, folderMatch);
|
|
1022
|
-
if (( this._unDisposedFolderMatches.has(folderMatch.resource))) {
|
|
1023
|
-
this._unDisposedFolderMatches.delete(folderMatch.resource);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
async batchReplace(matches) {
|
|
1027
|
-
const allMatches = getFileMatches(matches);
|
|
1028
|
-
await this.replaceService.replace(allMatches);
|
|
1029
|
-
this.doRemoveFile(allMatches, true, true, true);
|
|
1030
|
-
}
|
|
1031
|
-
onFileChange(fileMatch, removed = false) {
|
|
1032
|
-
let added = false;
|
|
1033
|
-
if (!( this._fileMatches.has(fileMatch.resource))) {
|
|
1034
|
-
this.doAddFile(fileMatch);
|
|
1035
|
-
added = true;
|
|
1036
|
-
}
|
|
1037
|
-
if (fileMatch.count() === 0) {
|
|
1038
|
-
this.doRemoveFile([fileMatch], false, false);
|
|
1039
|
-
added = false;
|
|
1040
|
-
removed = true;
|
|
1041
|
-
}
|
|
1042
|
-
if (!this._replacingAll) {
|
|
1043
|
-
this._onChange.fire({ elements: [fileMatch], added: added, removed: removed });
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
onFolderChange(folderMatch, event) {
|
|
1047
|
-
if (!( this._folderMatches.has(folderMatch.resource))) {
|
|
1048
|
-
this.doAddFolder(folderMatch);
|
|
1049
|
-
}
|
|
1050
|
-
if (folderMatch.isEmpty()) {
|
|
1051
|
-
this._folderMatches.delete(folderMatch.resource);
|
|
1052
|
-
folderMatch.dispose();
|
|
1053
|
-
}
|
|
1054
|
-
this._onChange.fire(event);
|
|
1055
|
-
}
|
|
1056
|
-
doRemoveFile(fileMatches, dispose = true, trigger = true, keepReadonly = false) {
|
|
1057
|
-
const removed = [];
|
|
1058
|
-
for (const match of fileMatches) {
|
|
1059
|
-
if (this._fileMatches.get(match.resource)) {
|
|
1060
|
-
if (keepReadonly && match.hasReadonlyMatches()) {
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
this._fileMatches.delete(match.resource);
|
|
1064
|
-
if (dispose) {
|
|
1065
|
-
match.dispose();
|
|
1066
|
-
}
|
|
1067
|
-
else {
|
|
1068
|
-
this._unDisposedFileMatches.set(match.resource, match);
|
|
1069
|
-
}
|
|
1070
|
-
removed.push(match);
|
|
1071
|
-
}
|
|
1072
|
-
else {
|
|
1073
|
-
const folder = this.getFolderMatch(match.resource);
|
|
1074
|
-
if (folder) {
|
|
1075
|
-
folder.doRemoveFile([match], dispose, trigger);
|
|
1076
|
-
}
|
|
1077
|
-
else {
|
|
1078
|
-
throw Error(`FileMatch ${match.resource} is not located within FolderMatch ${this.resource}`);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
if (trigger) {
|
|
1083
|
-
this._onChange.fire({ elements: removed, removed: true });
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
disposeMatches() {
|
|
1087
|
-
[...( this._fileMatches.values())].forEach((fileMatch) => fileMatch.dispose());
|
|
1088
|
-
[...( this._folderMatches.values())].forEach((folderMatch) => folderMatch.disposeMatches());
|
|
1089
|
-
[...( this._unDisposedFileMatches.values())].forEach((fileMatch) => fileMatch.dispose());
|
|
1090
|
-
[...( this._unDisposedFolderMatches.values())].forEach((folderMatch) => folderMatch.disposeMatches());
|
|
1091
|
-
this._fileMatches.clear();
|
|
1092
|
-
this._folderMatches.clear();
|
|
1093
|
-
this._unDisposedFileMatches.clear();
|
|
1094
|
-
this._unDisposedFolderMatches.clear();
|
|
1095
|
-
}
|
|
1096
|
-
dispose() {
|
|
1097
|
-
this.disposeMatches();
|
|
1098
|
-
this._onDispose.fire();
|
|
1099
|
-
super.dispose();
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
|
-
FolderMatch = FolderMatch_1 = ( __decorate([
|
|
1103
|
-
( __param(7, IReplaceService)),
|
|
1104
|
-
( __param(8, IInstantiationService)),
|
|
1105
|
-
( __param(9, ILabelService)),
|
|
1106
|
-
( __param(10, IUriIdentityService))
|
|
1107
|
-
], FolderMatch));
|
|
1108
|
-
let FolderMatchWithResource = class FolderMatchWithResource extends FolderMatch {
|
|
1109
|
-
constructor(_resource, _id, _index, _query, _parent, _searchResult, _closestRoot, replaceService, instantiationService, labelService, uriIdentityService) {
|
|
1110
|
-
super(_resource, _id, _index, _query, _parent, _searchResult, _closestRoot, replaceService, instantiationService, labelService, uriIdentityService);
|
|
1111
|
-
this._normalizedResource = ( new Lazy(
|
|
1112
|
-
() => this.uriIdentityService.extUri.removeTrailingPathSeparator(this.uriIdentityService.extUri.normalizePath(this.resource))
|
|
1113
|
-
));
|
|
1114
|
-
}
|
|
1115
|
-
get resource() {
|
|
1116
|
-
return this._resource;
|
|
1117
|
-
}
|
|
1118
|
-
get normalizedResource() {
|
|
1119
|
-
return this._normalizedResource.value;
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
FolderMatchWithResource = ( __decorate([
|
|
1123
|
-
( __param(7, IReplaceService)),
|
|
1124
|
-
( __param(8, IInstantiationService)),
|
|
1125
|
-
( __param(9, ILabelService)),
|
|
1126
|
-
( __param(10, IUriIdentityService))
|
|
1127
|
-
], FolderMatchWithResource));
|
|
1128
|
-
let FolderMatchWorkspaceRoot = class FolderMatchWorkspaceRoot extends FolderMatchWithResource {
|
|
1129
|
-
constructor(_resource, _id, _index, _query, _parent, _ai, replaceService, instantiationService, labelService, uriIdentityService) {
|
|
1130
|
-
super(_resource, _id, _index, _query, _parent, _parent.parent(), null, replaceService, instantiationService, labelService, uriIdentityService);
|
|
1131
|
-
this._ai = _ai;
|
|
1132
|
-
}
|
|
1133
|
-
normalizedUriParent(uri) {
|
|
1134
|
-
return this.uriIdentityService.extUri.normalizePath(this.uriIdentityService.extUri.dirname(uri));
|
|
1135
|
-
}
|
|
1136
|
-
uriEquals(uri1, ur2) {
|
|
1137
|
-
return this.uriIdentityService.extUri.isEqual(uri1, ur2);
|
|
1138
|
-
}
|
|
1139
|
-
createFileMatch(query, previewOptions, maxResults, parent, rawFileMatch, closestRoot, searchInstanceID) {
|
|
1140
|
-
const fileMatch = this.instantiationService.createInstance(FileMatch, query, previewOptions, maxResults, parent, rawFileMatch, closestRoot, searchInstanceID);
|
|
1141
|
-
fileMatch.createMatches(this._ai);
|
|
1142
|
-
parent.doAddFile(fileMatch);
|
|
1143
|
-
const disposable = fileMatch.onChange(({ didRemove }) => parent.onFileChange(fileMatch, didRemove));
|
|
1144
|
-
this._register(fileMatch.onDispose(() => disposable.dispose()));
|
|
1145
|
-
return fileMatch;
|
|
1146
|
-
}
|
|
1147
|
-
createAndConfigureFileMatch(rawFileMatch, searchInstanceID) {
|
|
1148
|
-
if (!this.uriHasParent(this.resource, rawFileMatch.resource)) {
|
|
1149
|
-
throw Error(`${rawFileMatch.resource} is not a descendant of ${this.resource}`);
|
|
1150
|
-
}
|
|
1151
|
-
const fileMatchParentParts = [];
|
|
1152
|
-
let uri = this.normalizedUriParent(rawFileMatch.resource);
|
|
1153
|
-
while (!this.uriEquals(this.normalizedResource, uri)) {
|
|
1154
|
-
fileMatchParentParts.unshift(uri);
|
|
1155
|
-
const prevUri = uri;
|
|
1156
|
-
uri = this.uriIdentityService.extUri.removeTrailingPathSeparator(this.normalizedUriParent(uri));
|
|
1157
|
-
if (this.uriEquals(prevUri, uri)) {
|
|
1158
|
-
throw Error(`${rawFileMatch.resource} is not correctly configured as a child of ${this.normalizedResource}`);
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
const root = this.closestRoot ?? this;
|
|
1162
|
-
let parent = this;
|
|
1163
|
-
for (let i = 0; i < fileMatchParentParts.length; i++) {
|
|
1164
|
-
let folderMatch = parent.getFolderMatch(fileMatchParentParts[i]);
|
|
1165
|
-
if (!folderMatch) {
|
|
1166
|
-
folderMatch = parent.createIntermediateFolderMatch(fileMatchParentParts[i], ( fileMatchParentParts[i].toString()), -1, this._query, root);
|
|
1167
|
-
}
|
|
1168
|
-
parent = folderMatch;
|
|
1169
|
-
}
|
|
1170
|
-
return this.createFileMatch(this._query.contentPattern, this._query.previewOptions, this._query.maxResults, parent, rawFileMatch, root, searchInstanceID);
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
FolderMatchWorkspaceRoot = ( __decorate([
|
|
1174
|
-
( __param(6, IReplaceService)),
|
|
1175
|
-
( __param(7, IInstantiationService)),
|
|
1176
|
-
( __param(8, ILabelService)),
|
|
1177
|
-
( __param(9, IUriIdentityService))
|
|
1178
|
-
], FolderMatchWorkspaceRoot));
|
|
1179
|
-
let FolderMatchNoRoot = class FolderMatchNoRoot extends FolderMatch {
|
|
1180
|
-
constructor(_id, _index, _query, _parent, replaceService, instantiationService, labelService, uriIdentityService) {
|
|
1181
|
-
super(null, _id, _index, _query, _parent, _parent.parent(), null, replaceService, instantiationService, labelService, uriIdentityService);
|
|
1182
|
-
}
|
|
1183
|
-
createAndConfigureFileMatch(rawFileMatch, searchInstanceID) {
|
|
1184
|
-
const fileMatch = this._register(this.instantiationService.createInstance(FileMatch, this._query.contentPattern, this._query.previewOptions, this._query.maxResults, this, rawFileMatch, null, searchInstanceID));
|
|
1185
|
-
fileMatch.createMatches(false);
|
|
1186
|
-
this.doAddFile(fileMatch);
|
|
1187
|
-
const disposable = fileMatch.onChange(({ didRemove }) => this.onFileChange(fileMatch, didRemove));
|
|
1188
|
-
this._register(fileMatch.onDispose(() => disposable.dispose()));
|
|
1189
|
-
return fileMatch;
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
|
-
FolderMatchNoRoot = ( __decorate([
|
|
1193
|
-
( __param(4, IReplaceService)),
|
|
1194
|
-
( __param(5, IInstantiationService)),
|
|
1195
|
-
( __param(6, ILabelService)),
|
|
1196
|
-
( __param(7, IUriIdentityService))
|
|
1197
|
-
], FolderMatchNoRoot));
|
|
1198
|
-
let TextSearchResult = class TextSearchResult extends Disposable {
|
|
1199
|
-
constructor(_allowOtherResults, _parent, _id, instantiationService, uriIdentityService) {
|
|
1200
|
-
super();
|
|
1201
|
-
this._allowOtherResults = _allowOtherResults;
|
|
1202
|
-
this._parent = _parent;
|
|
1203
|
-
this._id = _id;
|
|
1204
|
-
this.instantiationService = instantiationService;
|
|
1205
|
-
this.uriIdentityService = uriIdentityService;
|
|
1206
|
-
this._onChange = this._register(( new Emitter()));
|
|
1207
|
-
this.onChange = this._onChange.event;
|
|
1208
|
-
this._isDirty = false;
|
|
1209
|
-
this._showHighlights = false;
|
|
1210
|
-
this._query = null;
|
|
1211
|
-
this.disposePastResults = () => Promise.resolve();
|
|
1212
|
-
this._folderMatches = [];
|
|
1213
|
-
this._otherFilesMatch = null;
|
|
1214
|
-
this._folderMatchesMap = TernarySearchTree.forUris(key => this.uriIdentityService.extUri.ignorePathCasing(key));
|
|
1215
|
-
this.resource = null;
|
|
1216
|
-
this.hidden = false;
|
|
1217
|
-
this._rangeHighlightDecorations = this.instantiationService.createInstance(RangeHighlightDecorations);
|
|
1218
|
-
this._register(this.onChange(e => {
|
|
1219
|
-
if (e.removed) {
|
|
1220
|
-
this._isDirty = !this.isEmpty();
|
|
1221
|
-
}
|
|
1222
|
-
}));
|
|
1223
|
-
}
|
|
1224
|
-
hide() {
|
|
1225
|
-
this.hidden = true;
|
|
1226
|
-
this.clear();
|
|
1227
|
-
}
|
|
1228
|
-
get isAIContributed() {
|
|
1229
|
-
return this.id() === AI_TEXT_SEARCH_RESULT_ID;
|
|
1230
|
-
}
|
|
1231
|
-
id() {
|
|
1232
|
-
return this._id;
|
|
1233
|
-
}
|
|
1234
|
-
parent() {
|
|
1235
|
-
return this._parent;
|
|
1236
|
-
}
|
|
1237
|
-
get hasChildren() {
|
|
1238
|
-
return this._folderMatches.length > 0;
|
|
1239
|
-
}
|
|
1240
|
-
name() {
|
|
1241
|
-
return this._id === AI_TEXT_SEARCH_RESULT_ID ? 'AI' : 'Text';
|
|
1242
|
-
}
|
|
1243
|
-
get isDirty() {
|
|
1244
|
-
return this._isDirty;
|
|
1245
|
-
}
|
|
1246
|
-
getFolderMatch(resource) {
|
|
1247
|
-
const folderMatch = this._folderMatchesMap.findSubstr(resource);
|
|
1248
|
-
if (!folderMatch && this._allowOtherResults && this._otherFilesMatch) {
|
|
1249
|
-
return this._otherFilesMatch;
|
|
1250
|
-
}
|
|
1251
|
-
return folderMatch;
|
|
1252
|
-
}
|
|
1253
|
-
add(allRaw, searchInstanceID, ai, silent = false) {
|
|
1254
|
-
const { byFolder, other } = this.groupFilesByFolder(allRaw);
|
|
1255
|
-
byFolder.forEach(raw => {
|
|
1256
|
-
if (!raw.length) {
|
|
1257
|
-
return;
|
|
1258
|
-
}
|
|
1259
|
-
const folderMatch = this.getFolderMatch(raw[0].resource);
|
|
1260
|
-
folderMatch?.addFileMatch(raw, silent, searchInstanceID, this.isAIContributed);
|
|
1261
|
-
});
|
|
1262
|
-
if (!ai) {
|
|
1263
|
-
this._otherFilesMatch?.addFileMatch(other, silent, searchInstanceID, false);
|
|
1264
|
-
}
|
|
1265
|
-
this.disposePastResults();
|
|
1266
|
-
}
|
|
1267
|
-
remove(matches, ai = false) {
|
|
1268
|
-
if (!Array.isArray(matches)) {
|
|
1269
|
-
matches = [matches];
|
|
1270
|
-
}
|
|
1271
|
-
matches.forEach(m => {
|
|
1272
|
-
if (m instanceof FolderMatch) {
|
|
1273
|
-
m.clear();
|
|
1274
|
-
}
|
|
1275
|
-
});
|
|
1276
|
-
const fileMatches = matches.filter(m => m instanceof FileMatch);
|
|
1277
|
-
const { byFolder, other } = this.groupFilesByFolder(fileMatches);
|
|
1278
|
-
byFolder.forEach(matches => {
|
|
1279
|
-
if (!matches.length) {
|
|
1280
|
-
return;
|
|
1281
|
-
}
|
|
1282
|
-
this.getFolderMatch(matches[0].resource)?.remove(matches);
|
|
1283
|
-
});
|
|
1284
|
-
if (other.length) {
|
|
1285
|
-
this.getFolderMatch(other[0].resource)?.remove(other);
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
groupFilesByFolder(fileMatches) {
|
|
1289
|
-
const rawPerFolder = ( new ResourceMap());
|
|
1290
|
-
const otherFileMatches = [];
|
|
1291
|
-
this._folderMatches.forEach(fm => rawPerFolder.set(fm.resource, []));
|
|
1292
|
-
fileMatches.forEach(rawFileMatch => {
|
|
1293
|
-
const folderMatch = this.getFolderMatch(rawFileMatch.resource);
|
|
1294
|
-
if (!folderMatch) {
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1297
|
-
const resource = folderMatch.resource;
|
|
1298
|
-
if (resource) {
|
|
1299
|
-
rawPerFolder.get(resource).push(rawFileMatch);
|
|
1300
|
-
}
|
|
1301
|
-
else {
|
|
1302
|
-
otherFileMatches.push(rawFileMatch);
|
|
1303
|
-
}
|
|
1304
|
-
});
|
|
1305
|
-
return {
|
|
1306
|
-
byFolder: rawPerFolder,
|
|
1307
|
-
other: otherFileMatches
|
|
1308
|
-
};
|
|
1309
|
-
}
|
|
1310
|
-
isEmpty() {
|
|
1311
|
-
return this.folderMatches().every((folderMatch) => folderMatch.isEmpty());
|
|
1312
|
-
}
|
|
1313
|
-
findFolderSubstr(resource) {
|
|
1314
|
-
return this._folderMatchesMap.findSubstr(resource);
|
|
1315
|
-
}
|
|
1316
|
-
get query() {
|
|
1317
|
-
return this._query;
|
|
1318
|
-
}
|
|
1319
|
-
set query(query) {
|
|
1320
|
-
const oldFolderMatches = this.folderMatches();
|
|
1321
|
-
this.disposePastResults = async () => {
|
|
1322
|
-
oldFolderMatches.forEach(match => match.clear());
|
|
1323
|
-
oldFolderMatches.forEach(match => match.dispose());
|
|
1324
|
-
this._isDirty = false;
|
|
1325
|
-
};
|
|
1326
|
-
this.cachedSearchComplete = undefined;
|
|
1327
|
-
this._rangeHighlightDecorations.removeHighlightRange();
|
|
1328
|
-
this._folderMatchesMap = TernarySearchTree.forUris(key => this.uriIdentityService.extUri.ignorePathCasing(key));
|
|
1329
|
-
if (!query) {
|
|
1330
|
-
return;
|
|
1331
|
-
}
|
|
1332
|
-
this._folderMatches = ( ( (query && query.folderQueries || [])
|
|
1333
|
-
.map(fq => fq.folder))
|
|
1334
|
-
.map((resource, index) => this._createBaseFolderMatch(resource, ( resource.toString()), index, query, this.isAIContributed)));
|
|
1335
|
-
this._folderMatches.forEach(fm => this._folderMatchesMap.set(fm.resource, fm));
|
|
1336
|
-
if (this._allowOtherResults) {
|
|
1337
|
-
this._otherFilesMatch = this._createBaseFolderMatch(null, 'otherFiles', this._folderMatches.length + 1, query, this.isAIContributed);
|
|
1338
|
-
}
|
|
1339
|
-
this._query = query;
|
|
1340
|
-
}
|
|
1341
|
-
_createBaseFolderMatch(resource, id, index, query, ai) {
|
|
1342
|
-
let folderMatch;
|
|
1343
|
-
if (resource) {
|
|
1344
|
-
folderMatch = this._register(this.instantiationService.createInstance(FolderMatchWorkspaceRoot, resource, id, index, query, this, ai));
|
|
1345
|
-
}
|
|
1346
|
-
else {
|
|
1347
|
-
folderMatch = this._register(this.instantiationService.createInstance(FolderMatchNoRoot, id, index, query, this));
|
|
1348
|
-
}
|
|
1349
|
-
const disposable = folderMatch.onChange((event) => this._onChange.fire(event));
|
|
1350
|
-
this._register(folderMatch.onDispose(() => disposable.dispose()));
|
|
1351
|
-
return folderMatch;
|
|
1352
|
-
}
|
|
1353
|
-
folderMatches() {
|
|
1354
|
-
return this._otherFilesMatch && this._allowOtherResults ?
|
|
1355
|
-
[
|
|
1356
|
-
...this._folderMatches,
|
|
1357
|
-
this._otherFilesMatch,
|
|
1358
|
-
] :
|
|
1359
|
-
this._folderMatches;
|
|
1360
|
-
}
|
|
1361
|
-
disposeMatches() {
|
|
1362
|
-
this.folderMatches().forEach(folderMatch => folderMatch.dispose());
|
|
1363
|
-
this._folderMatches = [];
|
|
1364
|
-
this._folderMatchesMap = TernarySearchTree.forUris(key => this.uriIdentityService.extUri.ignorePathCasing(key));
|
|
1365
|
-
this._rangeHighlightDecorations.removeHighlightRange();
|
|
1366
|
-
}
|
|
1367
|
-
matches() {
|
|
1368
|
-
const matches = [];
|
|
1369
|
-
this.folderMatches().forEach(folderMatch => {
|
|
1370
|
-
matches.push(folderMatch.allDownstreamFileMatches());
|
|
1371
|
-
});
|
|
1372
|
-
return [].concat(...matches);
|
|
1373
|
-
}
|
|
1374
|
-
get showHighlights() {
|
|
1375
|
-
return this._showHighlights;
|
|
1376
|
-
}
|
|
1377
|
-
toggleHighlights(value) {
|
|
1378
|
-
if (this._showHighlights === value) {
|
|
1379
|
-
return;
|
|
1380
|
-
}
|
|
1381
|
-
this._showHighlights = value;
|
|
1382
|
-
let selectedMatch = null;
|
|
1383
|
-
this.matches().forEach((fileMatch) => {
|
|
1384
|
-
fileMatch.updateHighlights();
|
|
1385
|
-
fileMatch.updateNotebookHighlights();
|
|
1386
|
-
if (!selectedMatch) {
|
|
1387
|
-
selectedMatch = fileMatch.getSelectedMatch();
|
|
1388
|
-
}
|
|
1389
|
-
});
|
|
1390
|
-
if (this._showHighlights && selectedMatch) {
|
|
1391
|
-
this._rangeHighlightDecorations.highlightRange(selectedMatch.parent().resource, selectedMatch.range());
|
|
1392
|
-
}
|
|
1393
|
-
else {
|
|
1394
|
-
this._rangeHighlightDecorations.removeHighlightRange();
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
get rangeHighlightDecorations() {
|
|
1398
|
-
return this._rangeHighlightDecorations;
|
|
1399
|
-
}
|
|
1400
|
-
fileCount() {
|
|
1401
|
-
return this.folderMatches().reduce((prev, match) => prev + match.recursiveFileCount(), 0);
|
|
1402
|
-
}
|
|
1403
|
-
count() {
|
|
1404
|
-
return this.matches().reduce((prev, match) => prev + match.count(), 0);
|
|
1405
|
-
}
|
|
1406
|
-
clear() {
|
|
1407
|
-
this.folderMatches().forEach((folderMatch) => folderMatch.clear(true));
|
|
1408
|
-
this.disposeMatches();
|
|
1409
|
-
this._folderMatches = [];
|
|
1410
|
-
this._otherFilesMatch = null;
|
|
1411
|
-
this.cachedSearchComplete = undefined;
|
|
1412
|
-
}
|
|
1413
|
-
async dispose() {
|
|
1414
|
-
this._rangeHighlightDecorations.dispose();
|
|
1415
|
-
this.disposeMatches();
|
|
1416
|
-
super.dispose();
|
|
1417
|
-
await this.disposePastResults();
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
TextSearchResult = ( __decorate([
|
|
1421
|
-
( __param(3, IInstantiationService)),
|
|
1422
|
-
( __param(4, IUriIdentityService))
|
|
1423
|
-
], TextSearchResult));
|
|
1424
|
-
let ReplaceableTextSearchResult = class ReplaceableTextSearchResult extends TextSearchResult {
|
|
1425
|
-
constructor(_allowOtherResults, parent, id, instantiationService, uriIdentityService, replaceService) {
|
|
1426
|
-
super(_allowOtherResults, parent, id, instantiationService, uriIdentityService);
|
|
1427
|
-
this.replaceService = replaceService;
|
|
1428
|
-
}
|
|
1429
|
-
replace(match) {
|
|
1430
|
-
return this.getFolderMatch(match.resource)?.replace(match) ?? Promise.resolve();
|
|
1431
|
-
}
|
|
1432
|
-
replaceAll(progress) {
|
|
1433
|
-
this.replacingAll = true;
|
|
1434
|
-
const promise = this.replaceService.replace(this.matches(), progress);
|
|
1435
|
-
return promise.then(() => {
|
|
1436
|
-
this.replacingAll = false;
|
|
1437
|
-
this.clear();
|
|
1438
|
-
}, () => {
|
|
1439
|
-
this.replacingAll = false;
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
set replacingAll(running) {
|
|
1443
|
-
this.folderMatches().forEach((folderMatch) => {
|
|
1444
|
-
folderMatch.replacingAll = running;
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
ReplaceableTextSearchResult = ( __decorate([
|
|
1449
|
-
( __param(3, IInstantiationService)),
|
|
1450
|
-
( __param(4, IUriIdentityService)),
|
|
1451
|
-
( __param(5, IReplaceService))
|
|
1452
|
-
], ReplaceableTextSearchResult));
|
|
1453
|
-
let elemAIndex = -1;
|
|
1454
|
-
let elemBIndex = -1;
|
|
1455
|
-
function searchMatchComparer(elementA, elementB, sortOrder = "default" ) {
|
|
1456
|
-
if (elementA instanceof FileMatch && elementB instanceof FolderMatch) {
|
|
1457
|
-
return 1;
|
|
1458
|
-
}
|
|
1459
|
-
if (elementB instanceof FileMatch && elementA instanceof FolderMatch) {
|
|
1460
|
-
return -1;
|
|
1461
|
-
}
|
|
1462
|
-
if (elementA instanceof FolderMatch && elementB instanceof FolderMatch) {
|
|
1463
|
-
elemAIndex = elementA.index();
|
|
1464
|
-
elemBIndex = elementB.index();
|
|
1465
|
-
if (elemAIndex !== -1 && elemBIndex !== -1) {
|
|
1466
|
-
return elemAIndex - elemBIndex;
|
|
1467
|
-
}
|
|
1468
|
-
switch (sortOrder) {
|
|
1469
|
-
case "countDescending" :
|
|
1470
|
-
return elementB.count() - elementA.count();
|
|
1471
|
-
case "countAscending" :
|
|
1472
|
-
return elementA.count() - elementB.count();
|
|
1473
|
-
case "type" :
|
|
1474
|
-
return compareFileExtensions(elementA.name(), elementB.name());
|
|
1475
|
-
case "fileNames" :
|
|
1476
|
-
return compareFileNames(elementA.name(), elementB.name());
|
|
1477
|
-
default:
|
|
1478
|
-
if (!elementA.resource || !elementB.resource) {
|
|
1479
|
-
return 0;
|
|
1480
|
-
}
|
|
1481
|
-
return comparePaths(elementA.resource.fsPath, elementB.resource.fsPath) || compareFileNames(elementA.name(), elementB.name());
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
if (elementA instanceof FileMatch && elementB instanceof FileMatch) {
|
|
1485
|
-
switch (sortOrder) {
|
|
1486
|
-
case "countDescending" :
|
|
1487
|
-
return elementB.count() - elementA.count();
|
|
1488
|
-
case "countAscending" :
|
|
1489
|
-
return elementA.count() - elementB.count();
|
|
1490
|
-
case "type" :
|
|
1491
|
-
return compareFileExtensions(elementA.name(), elementB.name());
|
|
1492
|
-
case "fileNames" :
|
|
1493
|
-
return compareFileNames(elementA.name(), elementB.name());
|
|
1494
|
-
case "modified" : {
|
|
1495
|
-
const fileStatA = elementA.fileStat;
|
|
1496
|
-
const fileStatB = elementB.fileStat;
|
|
1497
|
-
if (fileStatA && fileStatB) {
|
|
1498
|
-
return fileStatB.mtime - fileStatA.mtime;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
default:
|
|
1502
|
-
return comparePaths(elementA.resource.fsPath, elementB.resource.fsPath) || compareFileNames(elementA.name(), elementB.name());
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
if (elementA instanceof MatchInNotebook && elementB instanceof MatchInNotebook) {
|
|
1506
|
-
return compareNotebookPos(elementA, elementB);
|
|
1507
|
-
}
|
|
1508
|
-
if (elementA instanceof Match && elementB instanceof Match) {
|
|
1509
|
-
return Range.compareRangesUsingStarts(elementA.range(), elementB.range());
|
|
1510
|
-
}
|
|
1511
|
-
return 0;
|
|
1512
|
-
}
|
|
1513
|
-
function compareNotebookPos(match1, match2) {
|
|
1514
|
-
if (match1.cellIndex === match2.cellIndex) {
|
|
1515
|
-
if (match1.webviewIndex !== undefined && match2.webviewIndex !== undefined) {
|
|
1516
|
-
return match1.webviewIndex - match2.webviewIndex;
|
|
1517
|
-
}
|
|
1518
|
-
else if (match1.webviewIndex === undefined && match2.webviewIndex === undefined) {
|
|
1519
|
-
return Range.compareRangesUsingStarts(match1.range(), match2.range());
|
|
1520
|
-
}
|
|
1521
|
-
else {
|
|
1522
|
-
if (match1.webviewIndex !== undefined) {
|
|
1523
|
-
return 1;
|
|
1524
|
-
}
|
|
1525
|
-
else {
|
|
1526
|
-
return -1;
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
else if (match1.cellIndex < match2.cellIndex) {
|
|
1531
|
-
return -1;
|
|
1532
|
-
}
|
|
1533
|
-
else {
|
|
1534
|
-
return 1;
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
function searchComparer(elementA, elementB, sortOrder = "default" ) {
|
|
1538
|
-
const elemAParents = createParentList(elementA);
|
|
1539
|
-
const elemBParents = createParentList(elementB);
|
|
1540
|
-
let i = elemAParents.length - 1;
|
|
1541
|
-
let j = elemBParents.length - 1;
|
|
1542
|
-
while (i >= 0 && j >= 0) {
|
|
1543
|
-
if (elemAParents[i].id() !== elemBParents[j].id()) {
|
|
1544
|
-
return searchMatchComparer(elemAParents[i], elemBParents[j], sortOrder);
|
|
1545
|
-
}
|
|
1546
|
-
i--;
|
|
1547
|
-
j--;
|
|
1548
|
-
}
|
|
1549
|
-
const elemAAtEnd = i === 0;
|
|
1550
|
-
const elemBAtEnd = j === 0;
|
|
1551
|
-
if (elemAAtEnd && !elemBAtEnd) {
|
|
1552
|
-
return 1;
|
|
1553
|
-
}
|
|
1554
|
-
else if (!elemAAtEnd && elemBAtEnd) {
|
|
1555
|
-
return -1;
|
|
1556
|
-
}
|
|
1557
|
-
return 0;
|
|
1558
|
-
}
|
|
1559
|
-
function createParentList(element) {
|
|
1560
|
-
const parentArray = [];
|
|
1561
|
-
let currElement = element;
|
|
1562
|
-
while (!(currElement instanceof TextSearchResult)) {
|
|
1563
|
-
parentArray.push(currElement);
|
|
1564
|
-
currElement = currElement.parent();
|
|
1565
|
-
}
|
|
1566
|
-
return parentArray;
|
|
1567
|
-
}
|
|
1568
|
-
const PLAIN_TEXT_SEARCH__RESULT_ID = 'plainTextSearch';
|
|
1569
|
-
const AI_TEXT_SEARCH_RESULT_ID = 'aiTextSearch';
|
|
1570
|
-
let SearchResult = class SearchResult extends Disposable {
|
|
1571
|
-
constructor(searchModel, instantiationService, modelService, notebookEditorService) {
|
|
1572
|
-
super();
|
|
1573
|
-
this.searchModel = searchModel;
|
|
1574
|
-
this.instantiationService = instantiationService;
|
|
1575
|
-
this.modelService = modelService;
|
|
1576
|
-
this.notebookEditorService = notebookEditorService;
|
|
1577
|
-
this._onChange = this._register(( new PauseableEmitter({
|
|
1578
|
-
merge: mergeSearchResultEvents
|
|
1579
|
-
})));
|
|
1580
|
-
this.onChange = this._onChange.event;
|
|
1581
|
-
this._plainTextSearchResult = this._register(this.instantiationService.createInstance(ReplaceableTextSearchResult, true, this, PLAIN_TEXT_SEARCH__RESULT_ID));
|
|
1582
|
-
this._aiTextSearchResult = this._register(this.instantiationService.createInstance(TextSearchResult, true, this, AI_TEXT_SEARCH_RESULT_ID));
|
|
1583
|
-
this._register(this._plainTextSearchResult.onChange((e) => this._onChange.fire(e)));
|
|
1584
|
-
this._register(this._aiTextSearchResult.onChange((e) => this._onChange.fire(e)));
|
|
1585
|
-
this.modelService.getModels().forEach(model => this.onModelAdded(model));
|
|
1586
|
-
this._register(this.modelService.onModelAdded(model => this.onModelAdded(model)));
|
|
1587
|
-
this._register(this.notebookEditorService.onDidAddNotebookEditor(widget => {
|
|
1588
|
-
if (widget instanceof NotebookEditorWidget) {
|
|
1589
|
-
this.onDidAddNotebookEditorWidget(widget);
|
|
1590
|
-
}
|
|
1591
|
-
}));
|
|
1592
|
-
}
|
|
1593
|
-
get plainTextSearchResult() {
|
|
1594
|
-
return this._plainTextSearchResult;
|
|
1595
|
-
}
|
|
1596
|
-
get aiTextSearchResult() {
|
|
1597
|
-
return this._aiTextSearchResult;
|
|
1598
|
-
}
|
|
1599
|
-
get children() {
|
|
1600
|
-
return this.textSearchResults;
|
|
1601
|
-
}
|
|
1602
|
-
get hasChildren() {
|
|
1603
|
-
return true;
|
|
1604
|
-
}
|
|
1605
|
-
get textSearchResults() {
|
|
1606
|
-
return [this._plainTextSearchResult, this._aiTextSearchResult];
|
|
1607
|
-
}
|
|
1608
|
-
async batchReplace(elementsToReplace) {
|
|
1609
|
-
try {
|
|
1610
|
-
this._onChange.pause();
|
|
1611
|
-
await Promise.all(( elementsToReplace.map(async (elem) => {
|
|
1612
|
-
const parent = elem.parent();
|
|
1613
|
-
if ((parent instanceof FolderMatch || parent instanceof FileMatch) && arrayContainsElementOrParent(parent, elementsToReplace)) {
|
|
1614
|
-
return;
|
|
1615
|
-
}
|
|
1616
|
-
if (elem instanceof FileMatch) {
|
|
1617
|
-
await elem.parent().replace(elem);
|
|
1618
|
-
}
|
|
1619
|
-
else if (elem instanceof Match) {
|
|
1620
|
-
await elem.parent().replace(elem);
|
|
1621
|
-
}
|
|
1622
|
-
else if (elem instanceof FolderMatch) {
|
|
1623
|
-
await elem.replaceAll();
|
|
1624
|
-
}
|
|
1625
|
-
})));
|
|
1626
|
-
}
|
|
1627
|
-
finally {
|
|
1628
|
-
this._onChange.resume();
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
batchRemove(elementsToRemove) {
|
|
1632
|
-
const removedElems = [];
|
|
1633
|
-
try {
|
|
1634
|
-
this._onChange.pause();
|
|
1635
|
-
elementsToRemove.forEach((currentElement) => {
|
|
1636
|
-
if (!arrayContainsElementOrParent(currentElement, removedElems)) {
|
|
1637
|
-
if (currentElement instanceof TextSearchResult) {
|
|
1638
|
-
currentElement.hide();
|
|
1639
|
-
}
|
|
1640
|
-
else {
|
|
1641
|
-
currentElement.parent().remove(currentElement);
|
|
1642
|
-
removedElems.push(currentElement);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
});
|
|
1646
|
-
}
|
|
1647
|
-
finally {
|
|
1648
|
-
this._onChange.resume();
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
get isDirty() {
|
|
1652
|
-
return this._aiTextSearchResult.isDirty || this._plainTextSearchResult.isDirty;
|
|
1653
|
-
}
|
|
1654
|
-
get query() {
|
|
1655
|
-
return this._plainTextSearchResult.query;
|
|
1656
|
-
}
|
|
1657
|
-
set query(query) {
|
|
1658
|
-
this._plainTextSearchResult.query = query;
|
|
1659
|
-
this._aiTextSearchResult.query = query;
|
|
1660
|
-
}
|
|
1661
|
-
onDidAddNotebookEditorWidget(widget) {
|
|
1662
|
-
this._onWillChangeModelListener?.dispose();
|
|
1663
|
-
this._onWillChangeModelListener = widget.onWillChangeModel((model) => {
|
|
1664
|
-
if (model) {
|
|
1665
|
-
this.onNotebookEditorWidgetRemoved(widget, model?.uri);
|
|
1666
|
-
}
|
|
1667
|
-
});
|
|
1668
|
-
this._onDidChangeModelListener?.dispose();
|
|
1669
|
-
this._onDidChangeModelListener = widget.onDidAttachViewModel(() => {
|
|
1670
|
-
if (widget.hasModel()) {
|
|
1671
|
-
this.onNotebookEditorWidgetAdded(widget, widget.textModel.uri);
|
|
1672
|
-
}
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
folderMatches(ai = false) {
|
|
1676
|
-
if (ai) {
|
|
1677
|
-
return this._aiTextSearchResult.folderMatches();
|
|
1678
|
-
}
|
|
1679
|
-
return this._plainTextSearchResult.folderMatches();
|
|
1680
|
-
}
|
|
1681
|
-
onModelAdded(model) {
|
|
1682
|
-
const folderMatch = this._plainTextSearchResult.findFolderSubstr(model.uri);
|
|
1683
|
-
folderMatch?.bindModel(model);
|
|
1684
|
-
}
|
|
1685
|
-
async onNotebookEditorWidgetAdded(editor, resource) {
|
|
1686
|
-
const folderMatch = this._plainTextSearchResult.findFolderSubstr(resource);
|
|
1687
|
-
await folderMatch?.bindNotebookEditorWidget(editor, resource);
|
|
1688
|
-
}
|
|
1689
|
-
onNotebookEditorWidgetRemoved(editor, resource) {
|
|
1690
|
-
const folderMatch = this._plainTextSearchResult.findFolderSubstr(resource);
|
|
1691
|
-
folderMatch?.unbindNotebookEditorWidget(editor, resource);
|
|
1692
|
-
}
|
|
1693
|
-
add(allRaw, searchInstanceID, ai, silent = false) {
|
|
1694
|
-
this._plainTextSearchResult.hidden = false;
|
|
1695
|
-
this._aiTextSearchResult.hidden = false;
|
|
1696
|
-
if (ai) {
|
|
1697
|
-
this._aiTextSearchResult.add(allRaw, searchInstanceID, ai, silent);
|
|
1698
|
-
}
|
|
1699
|
-
else {
|
|
1700
|
-
this._plainTextSearchResult.add(allRaw, searchInstanceID, ai, silent);
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
clear() {
|
|
1704
|
-
this._aiTextSearchResult.clear();
|
|
1705
|
-
this._plainTextSearchResult.clear();
|
|
1706
|
-
}
|
|
1707
|
-
remove(matches, ai = false) {
|
|
1708
|
-
if (ai) {
|
|
1709
|
-
this._aiTextSearchResult.remove(matches, ai);
|
|
1710
|
-
}
|
|
1711
|
-
this._plainTextSearchResult.remove(matches, ai);
|
|
1712
|
-
}
|
|
1713
|
-
replace(match) {
|
|
1714
|
-
return this._plainTextSearchResult.replace(match);
|
|
1715
|
-
}
|
|
1716
|
-
matches(ai) {
|
|
1717
|
-
if (ai === undefined) {
|
|
1718
|
-
return this._plainTextSearchResult.matches().concat(this._aiTextSearchResult.matches());
|
|
1719
|
-
}
|
|
1720
|
-
else if (ai === true) {
|
|
1721
|
-
return this._aiTextSearchResult.matches();
|
|
1722
|
-
}
|
|
1723
|
-
return this._plainTextSearchResult.matches();
|
|
1724
|
-
}
|
|
1725
|
-
isEmpty() {
|
|
1726
|
-
return this._plainTextSearchResult.isEmpty() && this._aiTextSearchResult.isEmpty();
|
|
1727
|
-
}
|
|
1728
|
-
fileCount() {
|
|
1729
|
-
return this._plainTextSearchResult.fileCount() + this._aiTextSearchResult.fileCount();
|
|
1730
|
-
}
|
|
1731
|
-
count() {
|
|
1732
|
-
return this._plainTextSearchResult.count() + this._aiTextSearchResult.count();
|
|
1733
|
-
}
|
|
1734
|
-
setCachedSearchComplete(cachedSearchComplete, ai) {
|
|
1735
|
-
if (ai) {
|
|
1736
|
-
this._aiTextSearchResult.cachedSearchComplete = cachedSearchComplete;
|
|
1737
|
-
}
|
|
1738
|
-
else {
|
|
1739
|
-
this._plainTextSearchResult.cachedSearchComplete = cachedSearchComplete;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
getCachedSearchComplete(ai) {
|
|
1743
|
-
if (ai) {
|
|
1744
|
-
return this._aiTextSearchResult.cachedSearchComplete;
|
|
1745
|
-
}
|
|
1746
|
-
return this._plainTextSearchResult.cachedSearchComplete;
|
|
1747
|
-
}
|
|
1748
|
-
toggleHighlights(value, ai = false) {
|
|
1749
|
-
if (ai) {
|
|
1750
|
-
this._aiTextSearchResult.toggleHighlights(value);
|
|
1751
|
-
}
|
|
1752
|
-
else {
|
|
1753
|
-
this._plainTextSearchResult.toggleHighlights(value);
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
getRangeHighlightDecorations(ai = false) {
|
|
1757
|
-
if (ai) {
|
|
1758
|
-
return this._aiTextSearchResult.rangeHighlightDecorations;
|
|
1759
|
-
}
|
|
1760
|
-
return this._plainTextSearchResult.rangeHighlightDecorations;
|
|
1761
|
-
}
|
|
1762
|
-
replaceAll(progress) {
|
|
1763
|
-
return this._plainTextSearchResult.replaceAll(progress);
|
|
1764
|
-
}
|
|
1765
|
-
async dispose() {
|
|
1766
|
-
this._aiTextSearchResult?.dispose();
|
|
1767
|
-
this._plainTextSearchResult?.dispose();
|
|
1768
|
-
this._onWillChangeModelListener?.dispose();
|
|
1769
|
-
this._onDidChangeModelListener?.dispose();
|
|
1770
|
-
super.dispose();
|
|
1771
|
-
}
|
|
1772
|
-
};
|
|
1773
|
-
SearchResult = ( __decorate([
|
|
1774
|
-
( __param(1, IInstantiationService)),
|
|
1775
|
-
( __param(2, IModelService)),
|
|
1776
|
-
( __param(3, INotebookEditorService))
|
|
1777
|
-
], SearchResult));
|
|
1778
|
-
var SearchModelLocation;
|
|
1779
|
-
( (function(SearchModelLocation) {
|
|
1780
|
-
SearchModelLocation[SearchModelLocation["PANEL"] = 0] = "PANEL";
|
|
1781
|
-
SearchModelLocation[SearchModelLocation["QUICK_ACCESS"] = 1] = "QUICK_ACCESS";
|
|
1782
|
-
})(SearchModelLocation || (SearchModelLocation = {})));
|
|
1783
|
-
let SearchModel = class SearchModel extends Disposable {
|
|
1784
|
-
constructor(searchService, telemetryService, configurationService, instantiationService, logService, notebookSearchService) {
|
|
1785
|
-
super();
|
|
1786
|
-
this.searchService = searchService;
|
|
1787
|
-
this.telemetryService = telemetryService;
|
|
1788
|
-
this.configurationService = configurationService;
|
|
1789
|
-
this.instantiationService = instantiationService;
|
|
1790
|
-
this.logService = logService;
|
|
1791
|
-
this.notebookSearchService = notebookSearchService;
|
|
1792
|
-
this._searchQuery = null;
|
|
1793
|
-
this._replaceActive = false;
|
|
1794
|
-
this._replaceString = null;
|
|
1795
|
-
this._replacePattern = null;
|
|
1796
|
-
this._preserveCase = false;
|
|
1797
|
-
this._startStreamDelay = Promise.resolve();
|
|
1798
|
-
this._resultQueue = [];
|
|
1799
|
-
this._aiResultQueue = [];
|
|
1800
|
-
this._onReplaceTermChanged = this._register(( new Emitter()));
|
|
1801
|
-
this.onReplaceTermChanged = this._onReplaceTermChanged.event;
|
|
1802
|
-
this._onSearchResultChanged = this._register(( new PauseableEmitter({
|
|
1803
|
-
merge: mergeSearchResultEvents
|
|
1804
|
-
})));
|
|
1805
|
-
this.onSearchResultChanged = this._onSearchResultChanged.event;
|
|
1806
|
-
this.currentCancelTokenSource = null;
|
|
1807
|
-
this.currentAICancelTokenSource = null;
|
|
1808
|
-
this.searchCancelledForNewSearch = false;
|
|
1809
|
-
this.aiSearchCancelledForNewSearch = false;
|
|
1810
|
-
this.location = SearchModelLocation.PANEL;
|
|
1811
|
-
this._searchResult = this.instantiationService.createInstance(SearchResult, this);
|
|
1812
|
-
this._register(this._searchResult.onChange((e) => this._onSearchResultChanged.fire(e)));
|
|
1813
|
-
this._aiTextResultProviderName = ( new Lazy(async () => this.searchService.getAIName()));
|
|
1814
|
-
}
|
|
1815
|
-
async getAITextResultProviderName() {
|
|
1816
|
-
const result = await this._aiTextResultProviderName.value;
|
|
1817
|
-
if (!result) {
|
|
1818
|
-
throw Error('Fetching AI name when no provider present.');
|
|
1819
|
-
}
|
|
1820
|
-
return result;
|
|
1821
|
-
}
|
|
1822
|
-
isReplaceActive() {
|
|
1823
|
-
return this._replaceActive;
|
|
1824
|
-
}
|
|
1825
|
-
set replaceActive(replaceActive) {
|
|
1826
|
-
this._replaceActive = replaceActive;
|
|
1827
|
-
}
|
|
1828
|
-
get replacePattern() {
|
|
1829
|
-
return this._replacePattern;
|
|
1830
|
-
}
|
|
1831
|
-
get replaceString() {
|
|
1832
|
-
return this._replaceString || '';
|
|
1833
|
-
}
|
|
1834
|
-
set preserveCase(value) {
|
|
1835
|
-
this._preserveCase = value;
|
|
1836
|
-
}
|
|
1837
|
-
get preserveCase() {
|
|
1838
|
-
return this._preserveCase;
|
|
1839
|
-
}
|
|
1840
|
-
set replaceString(replaceString) {
|
|
1841
|
-
this._replaceString = replaceString;
|
|
1842
|
-
if (this._searchQuery) {
|
|
1843
|
-
this._replacePattern = ( new ReplacePattern(replaceString, this._searchQuery.contentPattern));
|
|
1844
|
-
}
|
|
1845
|
-
this._onReplaceTermChanged.fire();
|
|
1846
|
-
}
|
|
1847
|
-
get searchResult() {
|
|
1848
|
-
return this._searchResult;
|
|
1849
|
-
}
|
|
1850
|
-
async addAIResults(onProgress) {
|
|
1851
|
-
if (this.hasAIResults) {
|
|
1852
|
-
throw Error('AI results already exist');
|
|
1853
|
-
}
|
|
1854
|
-
else {
|
|
1855
|
-
if (this._searchQuery) {
|
|
1856
|
-
return this.aiSearch({ ...this._searchQuery, contentPattern: this._searchQuery.contentPattern.pattern, type: 3 }, onProgress);
|
|
1857
|
-
}
|
|
1858
|
-
else {
|
|
1859
|
-
throw Error('No search query');
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
aiSearch(query, onProgress) {
|
|
1864
|
-
const searchInstanceID = ( Date.now().toString());
|
|
1865
|
-
const tokenSource = ( new CancellationTokenSource());
|
|
1866
|
-
this.currentAICancelTokenSource = tokenSource;
|
|
1867
|
-
const start = Date.now();
|
|
1868
|
-
const asyncAIResults = this.searchService.aiTextSearch(query, tokenSource.token, async (p) => {
|
|
1869
|
-
this.onSearchProgress(p, searchInstanceID, false, true);
|
|
1870
|
-
onProgress?.(p);
|
|
1871
|
-
}).finally(() => {
|
|
1872
|
-
tokenSource.dispose(true);
|
|
1873
|
-
}).then(value => {
|
|
1874
|
-
this.onSearchCompleted(value, Date.now() - start, searchInstanceID, true);
|
|
1875
|
-
return value;
|
|
1876
|
-
}, e => {
|
|
1877
|
-
this.onSearchError(e, Date.now() - start, true);
|
|
1878
|
-
throw e;
|
|
1879
|
-
});
|
|
1880
|
-
return asyncAIResults;
|
|
1881
|
-
}
|
|
1882
|
-
doSearch(query, progressEmitter, searchQuery, searchInstanceID, onProgress, callerToken) {
|
|
1883
|
-
const asyncGenerateOnProgress = async (p) => {
|
|
1884
|
-
progressEmitter.fire();
|
|
1885
|
-
this.onSearchProgress(p, searchInstanceID, false, false);
|
|
1886
|
-
onProgress?.(p);
|
|
1887
|
-
};
|
|
1888
|
-
const syncGenerateOnProgress = (p) => {
|
|
1889
|
-
progressEmitter.fire();
|
|
1890
|
-
this.onSearchProgress(p, searchInstanceID, true);
|
|
1891
|
-
onProgress?.(p);
|
|
1892
|
-
};
|
|
1893
|
-
const tokenSource = this.currentCancelTokenSource = ( new CancellationTokenSource(callerToken));
|
|
1894
|
-
const notebookResult = this.notebookSearchService.notebookSearch(query, tokenSource.token, searchInstanceID, asyncGenerateOnProgress);
|
|
1895
|
-
const textResult = this.searchService.textSearchSplitSyncAsync(searchQuery, tokenSource.token, asyncGenerateOnProgress, notebookResult.openFilesToScan, notebookResult.allScannedFiles);
|
|
1896
|
-
const syncResults = textResult.syncResults.results;
|
|
1897
|
-
syncResults.forEach(p => { if (p) {
|
|
1898
|
-
syncGenerateOnProgress(p);
|
|
1899
|
-
} });
|
|
1900
|
-
const getAsyncResults = async () => {
|
|
1901
|
-
const searchStart = Date.now();
|
|
1902
|
-
const allClosedEditorResults = await textResult.asyncResults;
|
|
1903
|
-
const resolvedNotebookResults = await notebookResult.completeData;
|
|
1904
|
-
const searchLength = Date.now() - searchStart;
|
|
1905
|
-
const resolvedResult = {
|
|
1906
|
-
results: [...allClosedEditorResults.results, ...resolvedNotebookResults.results],
|
|
1907
|
-
messages: [...allClosedEditorResults.messages, ...resolvedNotebookResults.messages],
|
|
1908
|
-
limitHit: allClosedEditorResults.limitHit || resolvedNotebookResults.limitHit,
|
|
1909
|
-
exit: allClosedEditorResults.exit,
|
|
1910
|
-
stats: allClosedEditorResults.stats,
|
|
1911
|
-
};
|
|
1912
|
-
this.logService.trace(`whole search time | ${searchLength}ms`);
|
|
1913
|
-
return resolvedResult;
|
|
1914
|
-
};
|
|
1915
|
-
return {
|
|
1916
|
-
asyncResults: getAsyncResults()
|
|
1917
|
-
.finally(() => tokenSource.dispose(true)),
|
|
1918
|
-
syncResults
|
|
1919
|
-
};
|
|
1920
|
-
}
|
|
1921
|
-
get hasAIResults() {
|
|
1922
|
-
return !!(this.searchResult.getCachedSearchComplete(true)) || (!!this.currentAICancelTokenSource && !this.currentAICancelTokenSource.token.isCancellationRequested);
|
|
1923
|
-
}
|
|
1924
|
-
get hasPlainResults() {
|
|
1925
|
-
return !!(this.searchResult.getCachedSearchComplete(false)) || (!!this.currentCancelTokenSource && !this.currentCancelTokenSource.token.isCancellationRequested);
|
|
1926
|
-
}
|
|
1927
|
-
search(query, onProgress, callerToken) {
|
|
1928
|
-
this.cancelSearch(true);
|
|
1929
|
-
this._searchQuery = query;
|
|
1930
|
-
if (!this.searchConfig.searchOnType) {
|
|
1931
|
-
this.searchResult.clear();
|
|
1932
|
-
}
|
|
1933
|
-
const searchInstanceID = ( Date.now().toString());
|
|
1934
|
-
this._searchResult.query = this._searchQuery;
|
|
1935
|
-
const progressEmitter = this._register(( new Emitter()));
|
|
1936
|
-
this._replacePattern = ( new ReplacePattern(this.replaceString, this._searchQuery.contentPattern));
|
|
1937
|
-
this._startStreamDelay = ( new Promise(resolve => setTimeout(resolve, this.searchConfig.searchOnType ? 150 : 0)));
|
|
1938
|
-
const req = this.doSearch(query, progressEmitter, this._searchQuery, searchInstanceID, onProgress, callerToken);
|
|
1939
|
-
const asyncResults = req.asyncResults;
|
|
1940
|
-
const syncResults = req.syncResults;
|
|
1941
|
-
if (onProgress) {
|
|
1942
|
-
syncResults.forEach(p => {
|
|
1943
|
-
if (p) {
|
|
1944
|
-
onProgress(p);
|
|
1945
|
-
}
|
|
1946
|
-
});
|
|
1947
|
-
}
|
|
1948
|
-
const start = Date.now();
|
|
1949
|
-
let event;
|
|
1950
|
-
const progressEmitterPromise = ( new Promise(resolve => {
|
|
1951
|
-
event = Event.once(progressEmitter.event)(resolve);
|
|
1952
|
-
return event;
|
|
1953
|
-
}));
|
|
1954
|
-
Promise.race([asyncResults, progressEmitterPromise]).finally(() => {
|
|
1955
|
-
event?.dispose();
|
|
1956
|
-
this.telemetryService.publicLog('searchResultsFirstRender', { duration: Date.now() - start });
|
|
1957
|
-
});
|
|
1958
|
-
try {
|
|
1959
|
-
return {
|
|
1960
|
-
asyncResults: asyncResults.then(value => {
|
|
1961
|
-
this.onSearchCompleted(value, Date.now() - start, searchInstanceID, false);
|
|
1962
|
-
return value;
|
|
1963
|
-
}, e => {
|
|
1964
|
-
this.onSearchError(e, Date.now() - start, false);
|
|
1965
|
-
throw e;
|
|
1966
|
-
}),
|
|
1967
|
-
syncResults
|
|
1968
|
-
};
|
|
1969
|
-
}
|
|
1970
|
-
finally {
|
|
1971
|
-
this.telemetryService.publicLog('searchResultsFinished', { duration: Date.now() - start });
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
onSearchCompleted(completed, duration, searchInstanceID, ai) {
|
|
1975
|
-
if (!this._searchQuery) {
|
|
1976
|
-
throw ( new Error('onSearchCompleted must be called after a search is started'));
|
|
1977
|
-
}
|
|
1978
|
-
if (ai) {
|
|
1979
|
-
this._searchResult.add(this._aiResultQueue, searchInstanceID, true);
|
|
1980
|
-
this._aiResultQueue.length = 0;
|
|
1981
|
-
}
|
|
1982
|
-
else {
|
|
1983
|
-
this._searchResult.add(this._resultQueue, searchInstanceID, false);
|
|
1984
|
-
this._resultQueue.length = 0;
|
|
1985
|
-
}
|
|
1986
|
-
this.searchResult.setCachedSearchComplete(completed, ai);
|
|
1987
|
-
const options = Object.assign({}, this._searchQuery.contentPattern);
|
|
1988
|
-
delete options.pattern;
|
|
1989
|
-
const stats = completed && completed.stats;
|
|
1990
|
-
const fileSchemeOnly = this._searchQuery.folderQueries.every(fq => fq.folder.scheme === Schemas.file);
|
|
1991
|
-
const otherSchemeOnly = this._searchQuery.folderQueries.every(fq => fq.folder.scheme !== Schemas.file);
|
|
1992
|
-
const scheme = fileSchemeOnly ? Schemas.file :
|
|
1993
|
-
otherSchemeOnly ? 'other' :
|
|
1994
|
-
'mixed';
|
|
1995
|
-
this.telemetryService.publicLog('searchResultsShown', {
|
|
1996
|
-
count: this._searchResult.count(),
|
|
1997
|
-
fileCount: this._searchResult.fileCount(),
|
|
1998
|
-
options,
|
|
1999
|
-
duration,
|
|
2000
|
-
type: stats && stats.type,
|
|
2001
|
-
scheme,
|
|
2002
|
-
searchOnTypeEnabled: this.searchConfig.searchOnType
|
|
2003
|
-
});
|
|
2004
|
-
return completed;
|
|
2005
|
-
}
|
|
2006
|
-
onSearchError(e, duration, ai) {
|
|
2007
|
-
if (isCancellationError(e)) {
|
|
2008
|
-
this.onSearchCompleted((ai ? this.aiSearchCancelledForNewSearch : this.searchCancelledForNewSearch)
|
|
2009
|
-
? { exit: 1 , results: [], messages: [] }
|
|
2010
|
-
: undefined, duration, '', ai);
|
|
2011
|
-
if (ai) {
|
|
2012
|
-
this.aiSearchCancelledForNewSearch = false;
|
|
2013
|
-
}
|
|
2014
|
-
else {
|
|
2015
|
-
this.searchCancelledForNewSearch = false;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
onSearchProgress(p, searchInstanceID, sync = true, ai = false) {
|
|
2020
|
-
const targetQueue = ai ? this._aiResultQueue : this._resultQueue;
|
|
2021
|
-
if (p.resource) {
|
|
2022
|
-
targetQueue.push(p);
|
|
2023
|
-
if (sync) {
|
|
2024
|
-
if (targetQueue.length) {
|
|
2025
|
-
this._searchResult.add(targetQueue, searchInstanceID, false, true);
|
|
2026
|
-
targetQueue.length = 0;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
else {
|
|
2030
|
-
this._startStreamDelay.then(() => {
|
|
2031
|
-
if (targetQueue.length) {
|
|
2032
|
-
this._searchResult.add(targetQueue, searchInstanceID, ai, true);
|
|
2033
|
-
targetQueue.length = 0;
|
|
2034
|
-
}
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
get searchConfig() {
|
|
2040
|
-
return this.configurationService.getValue('search');
|
|
2041
|
-
}
|
|
2042
|
-
cancelSearch(cancelledForNewSearch = false) {
|
|
2043
|
-
if (this.currentCancelTokenSource) {
|
|
2044
|
-
this.searchCancelledForNewSearch = cancelledForNewSearch;
|
|
2045
|
-
this.currentCancelTokenSource.cancel();
|
|
2046
|
-
return true;
|
|
2047
|
-
}
|
|
2048
|
-
return false;
|
|
2049
|
-
}
|
|
2050
|
-
cancelAISearch(cancelledForNewSearch = false) {
|
|
2051
|
-
if (this.currentAICancelTokenSource) {
|
|
2052
|
-
this.aiSearchCancelledForNewSearch = cancelledForNewSearch;
|
|
2053
|
-
this.currentAICancelTokenSource.cancel();
|
|
2054
|
-
return true;
|
|
2055
|
-
}
|
|
2056
|
-
return false;
|
|
2057
|
-
}
|
|
2058
|
-
dispose() {
|
|
2059
|
-
this.cancelSearch();
|
|
2060
|
-
this.cancelAISearch();
|
|
2061
|
-
this.searchResult.dispose();
|
|
2062
|
-
super.dispose();
|
|
2063
|
-
}
|
|
2064
|
-
};
|
|
2065
|
-
SearchModel = ( __decorate([
|
|
2066
|
-
( __param(0, ISearchService)),
|
|
2067
|
-
( __param(1, ITelemetryService)),
|
|
2068
|
-
( __param(2, IConfigurationService)),
|
|
2069
|
-
( __param(3, IInstantiationService)),
|
|
2070
|
-
( __param(4, ILogService)),
|
|
2071
|
-
( __param(5, INotebookSearchService))
|
|
2072
|
-
], SearchModel));
|
|
2073
|
-
let SearchViewModelWorkbenchService = class SearchViewModelWorkbenchService {
|
|
2074
|
-
constructor(instantiationService) {
|
|
2075
|
-
this.instantiationService = instantiationService;
|
|
2076
|
-
this._searchModel = null;
|
|
2077
|
-
}
|
|
2078
|
-
get searchModel() {
|
|
2079
|
-
if (!this._searchModel) {
|
|
2080
|
-
this._searchModel = this.instantiationService.createInstance(SearchModel);
|
|
2081
|
-
}
|
|
2082
|
-
return this._searchModel;
|
|
2083
|
-
}
|
|
2084
|
-
set searchModel(searchModel) {
|
|
2085
|
-
this._searchModel?.dispose();
|
|
2086
|
-
this._searchModel = searchModel;
|
|
2087
|
-
}
|
|
2088
|
-
};
|
|
2089
|
-
SearchViewModelWorkbenchService = ( __decorate([
|
|
2090
|
-
( __param(0, IInstantiationService))
|
|
2091
|
-
], SearchViewModelWorkbenchService));
|
|
2092
|
-
let RangeHighlightDecorations = class RangeHighlightDecorations {
|
|
2093
|
-
static { RangeHighlightDecorations_1 = this; }
|
|
2094
|
-
constructor(_modelService) {
|
|
2095
|
-
this._modelService = _modelService;
|
|
2096
|
-
this._decorationId = null;
|
|
2097
|
-
this._model = null;
|
|
2098
|
-
this._modelDisposables = ( new DisposableStore());
|
|
2099
|
-
}
|
|
2100
|
-
removeHighlightRange() {
|
|
2101
|
-
if (this._model && this._decorationId) {
|
|
2102
|
-
const decorationId = this._decorationId;
|
|
2103
|
-
this._model.changeDecorations((accessor) => {
|
|
2104
|
-
accessor.removeDecoration(decorationId);
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
this._decorationId = null;
|
|
2108
|
-
}
|
|
2109
|
-
highlightRange(resource, range, ownerId = 0) {
|
|
2110
|
-
let model;
|
|
2111
|
-
if (URI.isUri(resource)) {
|
|
2112
|
-
model = this._modelService.getModel(resource);
|
|
2113
|
-
}
|
|
2114
|
-
else {
|
|
2115
|
-
model = resource;
|
|
2116
|
-
}
|
|
2117
|
-
if (model) {
|
|
2118
|
-
this.doHighlightRange(model, range);
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
doHighlightRange(model, range) {
|
|
2122
|
-
this.removeHighlightRange();
|
|
2123
|
-
model.changeDecorations((accessor) => {
|
|
2124
|
-
this._decorationId = accessor.addDecoration(range, RangeHighlightDecorations_1._RANGE_HIGHLIGHT_DECORATION);
|
|
2125
|
-
});
|
|
2126
|
-
this.setModel(model);
|
|
2127
|
-
}
|
|
2128
|
-
setModel(model) {
|
|
2129
|
-
if (this._model !== model) {
|
|
2130
|
-
this.clearModelListeners();
|
|
2131
|
-
this._model = model;
|
|
2132
|
-
this._modelDisposables.add(this._model.onDidChangeDecorations((e) => {
|
|
2133
|
-
this.clearModelListeners();
|
|
2134
|
-
this.removeHighlightRange();
|
|
2135
|
-
this._model = null;
|
|
2136
|
-
}));
|
|
2137
|
-
this._modelDisposables.add(this._model.onWillDispose(() => {
|
|
2138
|
-
this.clearModelListeners();
|
|
2139
|
-
this.removeHighlightRange();
|
|
2140
|
-
this._model = null;
|
|
2141
|
-
}));
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
clearModelListeners() {
|
|
2145
|
-
this._modelDisposables.clear();
|
|
2146
|
-
}
|
|
2147
|
-
dispose() {
|
|
2148
|
-
if (this._model) {
|
|
2149
|
-
this.removeHighlightRange();
|
|
2150
|
-
this._model = null;
|
|
2151
|
-
}
|
|
2152
|
-
this._modelDisposables.dispose();
|
|
2153
|
-
}
|
|
2154
|
-
static { this._RANGE_HIGHLIGHT_DECORATION = ModelDecorationOptions.register({
|
|
2155
|
-
description: 'search-range-highlight',
|
|
2156
|
-
stickiness: 1 ,
|
|
2157
|
-
className: 'rangeHighlight',
|
|
2158
|
-
isWholeLine: true
|
|
2159
|
-
}); }
|
|
2160
|
-
};
|
|
2161
|
-
RangeHighlightDecorations = RangeHighlightDecorations_1 = ( __decorate([
|
|
2162
|
-
( __param(0, IModelService))
|
|
2163
|
-
], RangeHighlightDecorations));
|
|
2164
|
-
function textSearchResultToMatches(rawMatch, fileMatch, isAiContributed) {
|
|
2165
|
-
const previewLines = rawMatch.previewText.split('\n');
|
|
2166
|
-
return ( rawMatch.rangeLocations.map((rangeLocation) => {
|
|
2167
|
-
const previewRange = rangeLocation.preview;
|
|
2168
|
-
return ( new Match(
|
|
2169
|
-
fileMatch,
|
|
2170
|
-
previewLines,
|
|
2171
|
-
previewRange,
|
|
2172
|
-
rangeLocation.source,
|
|
2173
|
-
isAiContributed
|
|
2174
|
-
));
|
|
2175
|
-
}));
|
|
2176
|
-
}
|
|
2177
|
-
function textSearchMatchesToNotebookMatches(textSearchMatches, cell) {
|
|
2178
|
-
const notebookMatches = [];
|
|
2179
|
-
textSearchMatches.forEach((textSearchMatch) => {
|
|
2180
|
-
textSearchMatch.previewText.split('\n');
|
|
2181
|
-
});
|
|
2182
|
-
return notebookMatches;
|
|
2183
|
-
}
|
|
2184
|
-
function arrayContainsElementOrParent(element, testArray) {
|
|
2185
|
-
do {
|
|
2186
|
-
if (testArray.includes(element)) {
|
|
2187
|
-
return true;
|
|
2188
|
-
}
|
|
2189
|
-
} while (!(element.parent() instanceof SearchResult) && (element = element.parent()));
|
|
2190
|
-
return false;
|
|
2191
|
-
}
|
|
2192
|
-
function getFileMatches(matches) {
|
|
2193
|
-
const folderMatches = [];
|
|
2194
|
-
const fileMatches = [];
|
|
2195
|
-
matches.forEach((e) => {
|
|
2196
|
-
if (e instanceof FileMatch) {
|
|
2197
|
-
fileMatches.push(e);
|
|
2198
|
-
}
|
|
2199
|
-
else {
|
|
2200
|
-
folderMatches.push(e);
|
|
2201
|
-
}
|
|
2202
|
-
});
|
|
2203
|
-
return fileMatches.concat(( folderMatches.map(e => e.allDownstreamFileMatches())).flat());
|
|
2204
|
-
}
|
|
2205
|
-
function mergeSearchResultEvents(events) {
|
|
2206
|
-
const retEvent = {
|
|
2207
|
-
elements: [],
|
|
2208
|
-
added: false,
|
|
2209
|
-
removed: false,
|
|
2210
|
-
};
|
|
2211
|
-
events.forEach((e) => {
|
|
2212
|
-
if (e.added) {
|
|
2213
|
-
retEvent.added = true;
|
|
2214
|
-
}
|
|
2215
|
-
if (e.removed) {
|
|
2216
|
-
retEvent.removed = true;
|
|
2217
|
-
}
|
|
2218
|
-
retEvent.elements = retEvent.elements.concat(e.elements);
|
|
2219
|
-
});
|
|
2220
|
-
return retEvent;
|
|
2221
|
-
}
|
|
2222
|
-
export { AI_TEXT_SEARCH_RESULT_ID, CellMatch, FileMatch, FolderMatch, FolderMatchNoRoot, FolderMatchWithResource, FolderMatchWorkspaceRoot, Match, MatchInNotebook, PLAIN_TEXT_SEARCH__RESULT_ID, RangeHighlightDecorations, ReplaceableTextSearchResult, SearchModel, SearchModelLocation, SearchResult, SearchViewModelWorkbenchService, TextSearchResult, arrayContainsElementOrParent, compareNotebookPos, searchComparer, searchMatchComparer, textSearchMatchesToNotebookMatches };
|