@codingame/monaco-vscode-api 10.1.4 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_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 -4
- 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 +4 -2
- 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 +2 -0
- 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 +2 -0
- 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 -20
- 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 +2 -0
- 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 +3 -1
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +6 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +2 -0
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +2 -0
- 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 +3 -1
- 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 +1 -0
- 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 +2 -0
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +1 -0
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -0
- 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 +2 -0
- 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 +3 -1
- 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 +5 -3
- 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 +3 -1
- 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 +3 -1
- 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,1735 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { addDisposableListener, scheduleAtNextAnimationFrame, getWindow, append, $, reset, h } from '../../../../../base/browser/dom.js';
|
|
3
|
-
import { Disposable, DisposableStore } from '../../../../../base/common/lifecycle.js';
|
|
4
|
-
import { Schemas } from '../../../../../base/common/network.js';
|
|
5
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
6
|
-
import { NotebookDocumentMetadataViewModel, PropertyFoldingState, outputEqual, OUTPUT_EDITOR_HEIGHT_MAGIC, SideBySideDiffElementViewModel, getFormattedOutputJSON } from './diffElementViewModel.js';
|
|
7
|
-
import { NOTEBOOK_DIFF_METADATA, DiffSide, NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED, DIFF_CELL_MARGIN, NOTEBOOK_DIFF_CELL_INPUT, NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE } from './notebookDiffEditorBrowser.js';
|
|
8
|
-
import { CodeEditorWidget } from '../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js';
|
|
9
|
-
import { IModelService } from '../../../../../editor/common/services/model.js';
|
|
10
|
-
import { ILanguageService } from '../../../../../editor/common/languages/language.js';
|
|
11
|
-
import { CellUri } from '../../common/notebookCommon.js';
|
|
12
|
-
import { IContextMenuService } from '../../../../../platform/contextview/browser/contextView.service.js';
|
|
13
|
-
import { MenuId, MenuItemAction } from '../../../../../platform/actions/common/actions.js';
|
|
14
|
-
import { IMenuService } from '../../../../../platform/actions/common/actions.service.js';
|
|
15
|
-
import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.service.js';
|
|
16
|
-
import { INotificationService } from '../../../../../platform/notification/common/notification.service.js';
|
|
17
|
-
import { createAndFillInActionBarActions } from '../../../../../platform/actions/browser/menuEntryActionViewItem.js';
|
|
18
|
-
import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
|
|
19
|
-
import { CodiconActionViewItem } from '../view/cellParts/cellActionView.js';
|
|
20
|
-
import { collapsedIcon, expandedIcon } from '../notebookIcons.js';
|
|
21
|
-
import { OutputContainer } from './diffElementOutputs.js';
|
|
22
|
-
import { EditorExtensionsRegistry } from '../../../../../editor/browser/editorExtensions.js';
|
|
23
|
-
import { ContextMenuController } from '../../../../../editor/contrib/contextmenu/browser/contextmenu.js';
|
|
24
|
-
import { SnippetController2 } from '../../../../../editor/contrib/snippet/browser/snippetController2.js';
|
|
25
|
-
import { SuggestController } from '../../../../../editor/contrib/suggest/browser/suggestController.js';
|
|
26
|
-
import { MenuPreventer } from '../../../codeEditor/browser/menuPreventer.js';
|
|
27
|
-
import { SelectionClipboardContributionID } from '../../../codeEditor/browser/selectionClipboard.js';
|
|
28
|
-
import { TabCompletionController } from '../../../snippets/browser/tabCompletion.js';
|
|
29
|
-
import { renderIcon, renderLabelWithIcons } from '../../../../../base/browser/ui/iconLabel/iconLabels.js';
|
|
30
|
-
import { ITextModelService } from '../../../../../editor/common/services/resolverService.js';
|
|
31
|
-
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
32
|
-
import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
|
|
33
|
-
import { WorkbenchToolBar } from '../../../../../platform/actions/browser/toolbar.js';
|
|
34
|
-
import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.service.js';
|
|
35
|
-
import { fixedDiffEditorOptions, getEditorPadding, fixedEditorOptions } from './diffCellEditorOptions.js';
|
|
36
|
-
import { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.service.js';
|
|
37
|
-
import { DiffEditorWidget } from '../../../../../editor/browser/widget/diffEditor/diffEditorWidget.js';
|
|
38
|
-
import { ICommandService } from '../../../../../platform/commands/common/commands.service.js';
|
|
39
|
-
import { localize } from '../../../../../nls.js';
|
|
40
|
-
import { Emitter } from '../../../../../base/common/event.js';
|
|
41
|
-
import { ITextResourceConfigurationService } from '../../../../../editor/common/services/textResourceConfiguration.js';
|
|
42
|
-
import { getFormattedMetadataJSON } from '../../common/model/notebookCellTextModel.js';
|
|
43
|
-
import { getUnchangedRegionSettings } from './unchangedEditorRegions.js';
|
|
44
|
-
function getOptimizedNestedCodeEditorWidgetOptions() {
|
|
45
|
-
return {
|
|
46
|
-
isSimpleWidget: false,
|
|
47
|
-
contributions: EditorExtensionsRegistry.getSomeEditorContributions([
|
|
48
|
-
MenuPreventer.ID,
|
|
49
|
-
SelectionClipboardContributionID,
|
|
50
|
-
ContextMenuController.ID,
|
|
51
|
-
SuggestController.ID,
|
|
52
|
-
SnippetController2.ID,
|
|
53
|
-
TabCompletionController.ID,
|
|
54
|
-
])
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
class CellDiffPlaceholderElement extends Disposable {
|
|
58
|
-
constructor(placeholder, templateData) {
|
|
59
|
-
super();
|
|
60
|
-
templateData.body.classList.remove('left', 'right', 'full');
|
|
61
|
-
const text = (placeholder.hiddenCells.length === 1) ?
|
|
62
|
-
( localize(11616, '{0} hidden cell', placeholder.hiddenCells.length)) :
|
|
63
|
-
( localize(11617, '{0} hidden cells', placeholder.hiddenCells.length));
|
|
64
|
-
templateData.placeholder.innerText = text;
|
|
65
|
-
this._register(addDisposableListener(templateData.placeholder, 'dblclick', (e) => {
|
|
66
|
-
if (e.button !== 0) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
placeholder.showHiddenCells();
|
|
71
|
-
}));
|
|
72
|
-
this._register(templateData.marginOverlay.onAction(() => placeholder.showHiddenCells()));
|
|
73
|
-
templateData.marginOverlay.show();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
let PropertyHeader = class PropertyHeader extends Disposable {
|
|
77
|
-
constructor(cell, propertyHeaderContainer, notebookEditor, accessor, contextMenuService, keybindingService, commandService, notificationService, menuService, contextKeyService, themeService, telemetryService, accessibilityService) {
|
|
78
|
-
super();
|
|
79
|
-
this.cell = cell;
|
|
80
|
-
this.propertyHeaderContainer = propertyHeaderContainer;
|
|
81
|
-
this.notebookEditor = notebookEditor;
|
|
82
|
-
this.accessor = accessor;
|
|
83
|
-
this.contextMenuService = contextMenuService;
|
|
84
|
-
this.keybindingService = keybindingService;
|
|
85
|
-
this.commandService = commandService;
|
|
86
|
-
this.notificationService = notificationService;
|
|
87
|
-
this.menuService = menuService;
|
|
88
|
-
this.contextKeyService = contextKeyService;
|
|
89
|
-
this.themeService = themeService;
|
|
90
|
-
this.telemetryService = telemetryService;
|
|
91
|
-
this.accessibilityService = accessibilityService;
|
|
92
|
-
}
|
|
93
|
-
buildHeader() {
|
|
94
|
-
this._foldingIndicator = append(this.propertyHeaderContainer, $('.property-folding-indicator'));
|
|
95
|
-
this._foldingIndicator.classList.add(this.accessor.prefix);
|
|
96
|
-
const metadataStatus = append(this.propertyHeaderContainer, $('div.property-status'));
|
|
97
|
-
this._statusSpan = append(metadataStatus, $('span'));
|
|
98
|
-
this._description = append(metadataStatus, $('span.property-description'));
|
|
99
|
-
const cellToolbarContainer = append(this.propertyHeaderContainer, $('div.property-toolbar'));
|
|
100
|
-
this._toolbar = this._register(( (new WorkbenchToolBar(cellToolbarContainer, {
|
|
101
|
-
actionViewItemProvider: (action, options) => {
|
|
102
|
-
if (action instanceof MenuItemAction) {
|
|
103
|
-
const item = ( (new CodiconActionViewItem(
|
|
104
|
-
action,
|
|
105
|
-
{ hoverDelegate: options.hoverDelegate },
|
|
106
|
-
this.keybindingService,
|
|
107
|
-
this.notificationService,
|
|
108
|
-
this.contextKeyService,
|
|
109
|
-
this.themeService,
|
|
110
|
-
this.contextMenuService,
|
|
111
|
-
this.accessibilityService
|
|
112
|
-
)));
|
|
113
|
-
return item;
|
|
114
|
-
}
|
|
115
|
-
return undefined;
|
|
116
|
-
}
|
|
117
|
-
}, this.menuService, this.contextKeyService, this.contextMenuService, this.keybindingService, this.commandService, this.telemetryService))));
|
|
118
|
-
this._toolbar.context = this.cell;
|
|
119
|
-
const scopedContextKeyService = this.contextKeyService.createScoped(cellToolbarContainer);
|
|
120
|
-
this._register(scopedContextKeyService);
|
|
121
|
-
this._propertyChanged = NOTEBOOK_DIFF_CELL_PROPERTY.bindTo(scopedContextKeyService);
|
|
122
|
-
this._propertyExpanded = NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED.bindTo(scopedContextKeyService);
|
|
123
|
-
this._menu = this._register(this.menuService.createMenu(this.accessor.menuId, scopedContextKeyService));
|
|
124
|
-
this._register(this._menu.onDidChange(() => this.updateMenu()));
|
|
125
|
-
this._register(this.notebookEditor.onMouseUp(e => {
|
|
126
|
-
if (!e.event.target || e.target !== this.cell) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
const target = e.event.target;
|
|
130
|
-
if (target === this.propertyHeaderContainer ||
|
|
131
|
-
target === this._foldingIndicator || this._foldingIndicator.contains(target) ||
|
|
132
|
-
target === metadataStatus || metadataStatus.contains(target)) {
|
|
133
|
-
const oldFoldingState = this.accessor.getFoldingState();
|
|
134
|
-
this.accessor.updateFoldingState(oldFoldingState === PropertyFoldingState.Expanded ? PropertyFoldingState.Collapsed : PropertyFoldingState.Expanded);
|
|
135
|
-
this._updateFoldingIcon();
|
|
136
|
-
this.accessor.updateInfoRendering(this.cell.renderOutput);
|
|
137
|
-
}
|
|
138
|
-
}));
|
|
139
|
-
this.refresh();
|
|
140
|
-
this.accessor.updateInfoRendering(this.cell.renderOutput);
|
|
141
|
-
}
|
|
142
|
-
refresh() {
|
|
143
|
-
this.updateMenu();
|
|
144
|
-
this._updateFoldingIcon();
|
|
145
|
-
const metadataChanged = this.accessor.checkIfModified();
|
|
146
|
-
if (this._propertyChanged) {
|
|
147
|
-
this._propertyChanged.set(!!metadataChanged);
|
|
148
|
-
}
|
|
149
|
-
if (metadataChanged) {
|
|
150
|
-
this._statusSpan.textContent = this.accessor.changedLabel;
|
|
151
|
-
this._statusSpan.style.fontWeight = 'bold';
|
|
152
|
-
if (metadataChanged.reason) {
|
|
153
|
-
this._description.textContent = metadataChanged.reason;
|
|
154
|
-
}
|
|
155
|
-
this.propertyHeaderContainer.classList.add('modified');
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
this._statusSpan.textContent = this.accessor.unChangedLabel;
|
|
159
|
-
this._statusSpan.style.fontWeight = 'normal';
|
|
160
|
-
this._description.textContent = '';
|
|
161
|
-
this.propertyHeaderContainer.classList.remove('modified');
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
updateMenu() {
|
|
165
|
-
const metadataChanged = this.accessor.checkIfModified();
|
|
166
|
-
if (metadataChanged) {
|
|
167
|
-
const actions = [];
|
|
168
|
-
createAndFillInActionBarActions(this._menu, { shouldForwardArgs: true }, actions);
|
|
169
|
-
this._toolbar.setActions(actions);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
this._toolbar.setActions([]);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
_updateFoldingIcon() {
|
|
176
|
-
if (this.accessor.getFoldingState() === PropertyFoldingState.Collapsed) {
|
|
177
|
-
reset(this._foldingIndicator, renderIcon(collapsedIcon));
|
|
178
|
-
this._propertyExpanded?.set(false);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
reset(this._foldingIndicator, renderIcon(expandedIcon));
|
|
182
|
-
this._propertyExpanded?.set(true);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
PropertyHeader = ( (__decorate([
|
|
187
|
-
( (__param(4, IContextMenuService))),
|
|
188
|
-
( (__param(5, IKeybindingService))),
|
|
189
|
-
( (__param(6, ICommandService))),
|
|
190
|
-
( (__param(7, INotificationService))),
|
|
191
|
-
( (__param(8, IMenuService))),
|
|
192
|
-
( (__param(9, IContextKeyService))),
|
|
193
|
-
( (__param(10, IThemeService))),
|
|
194
|
-
( (__param(11, ITelemetryService))),
|
|
195
|
-
( (__param(12, IAccessibilityService)))
|
|
196
|
-
], PropertyHeader)));
|
|
197
|
-
let NotebookDocumentMetadataElement = class NotebookDocumentMetadataElement extends Disposable {
|
|
198
|
-
constructor(notebookEditor, viewModel, templateData, instantiationService, textModelService, menuService, contextKeyService, textConfigurationService, configurationService) {
|
|
199
|
-
super();
|
|
200
|
-
this.notebookEditor = notebookEditor;
|
|
201
|
-
this.viewModel = viewModel;
|
|
202
|
-
this.templateData = templateData;
|
|
203
|
-
this.instantiationService = instantiationService;
|
|
204
|
-
this.textModelService = textModelService;
|
|
205
|
-
this.menuService = menuService;
|
|
206
|
-
this.contextKeyService = contextKeyService;
|
|
207
|
-
this.textConfigurationService = textConfigurationService;
|
|
208
|
-
this.configurationService = configurationService;
|
|
209
|
-
this._editor = templateData.sourceEditor;
|
|
210
|
-
this._cellHeaderContainer = this.templateData.cellHeaderContainer;
|
|
211
|
-
this._editorContainer = this.templateData.editorContainer;
|
|
212
|
-
this._diffEditorContainer = this.templateData.diffEditorContainer;
|
|
213
|
-
this._editorViewStateChanged = false;
|
|
214
|
-
this._register(viewModel.onDidLayoutChange(e => {
|
|
215
|
-
this.layout(e);
|
|
216
|
-
this.updateBorders();
|
|
217
|
-
}));
|
|
218
|
-
this.buildBody();
|
|
219
|
-
this.updateBorders();
|
|
220
|
-
}
|
|
221
|
-
buildBody() {
|
|
222
|
-
const body = this.templateData.body;
|
|
223
|
-
body.classList.remove('full');
|
|
224
|
-
body.classList.add('full');
|
|
225
|
-
this.updateSourceEditor();
|
|
226
|
-
if (this.viewModel instanceof NotebookDocumentMetadataViewModel) {
|
|
227
|
-
this._register(this.viewModel.modifiedMetadata.onDidChange(e => {
|
|
228
|
-
this._cellHeader.refresh();
|
|
229
|
-
}));
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
layoutNotebookCell() {
|
|
233
|
-
this.notebookEditor.layoutNotebookCell(this.viewModel, this.viewModel.layoutInfo.totalHeight);
|
|
234
|
-
}
|
|
235
|
-
updateBorders() {
|
|
236
|
-
this.templateData.leftBorder.style.height = `${this.viewModel.layoutInfo.totalHeight - 32}px`;
|
|
237
|
-
this.templateData.rightBorder.style.height = `${this.viewModel.layoutInfo.totalHeight - 32}px`;
|
|
238
|
-
this.templateData.bottomBorder.style.top = `${this.viewModel.layoutInfo.totalHeight - 32}px`;
|
|
239
|
-
}
|
|
240
|
-
updateSourceEditor() {
|
|
241
|
-
this._cellHeaderContainer.style.display = 'flex';
|
|
242
|
-
this._cellHeaderContainer.innerText = '';
|
|
243
|
-
this._editorContainer.classList.add('diff');
|
|
244
|
-
const updateSourceEditor = () => {
|
|
245
|
-
if (this.viewModel.cellFoldingState === PropertyFoldingState.Collapsed) {
|
|
246
|
-
this._editorContainer.style.display = 'none';
|
|
247
|
-
this.viewModel.editorHeight = 0;
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
const lineHeight = this.notebookEditor.getLayoutInfo().fontInfo.lineHeight || 17;
|
|
251
|
-
const editorHeight = this.viewModel.layoutInfo.editorHeight !== 0 ? this.viewModel.layoutInfo.editorHeight : this.viewModel.computeInputEditorHeight(lineHeight);
|
|
252
|
-
this._editorContainer.style.height = `${editorHeight}px`;
|
|
253
|
-
this._editorContainer.style.display = 'block';
|
|
254
|
-
const contentHeight = this._editor.getContentHeight();
|
|
255
|
-
if (contentHeight >= 0) {
|
|
256
|
-
this.viewModel.editorHeight = contentHeight;
|
|
257
|
-
}
|
|
258
|
-
return editorHeight;
|
|
259
|
-
};
|
|
260
|
-
const renderSourceEditor = () => {
|
|
261
|
-
const editorHeight = updateSourceEditor();
|
|
262
|
-
if (!editorHeight) {
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const lineCount = this.viewModel.modifiedMetadata.textBuffer.getLineCount();
|
|
266
|
-
const options = {
|
|
267
|
-
padding: getEditorPadding(lineCount)
|
|
268
|
-
};
|
|
269
|
-
const unchangedRegions = this._register(getUnchangedRegionSettings(this.configurationService));
|
|
270
|
-
if (unchangedRegions.options.enabled) {
|
|
271
|
-
options.hideUnchangedRegions = unchangedRegions.options;
|
|
272
|
-
}
|
|
273
|
-
this._editor.updateOptions(options);
|
|
274
|
-
this._register(unchangedRegions.onDidChangeEnablement(() => {
|
|
275
|
-
options.hideUnchangedRegions = unchangedRegions.options;
|
|
276
|
-
this._editor.updateOptions(options);
|
|
277
|
-
}));
|
|
278
|
-
this._editor.layout({
|
|
279
|
-
width: this.notebookEditor.getLayoutInfo().width - 2 * DIFF_CELL_MARGIN,
|
|
280
|
-
height: editorHeight
|
|
281
|
-
});
|
|
282
|
-
this._register(this._editor.onDidContentSizeChange((e) => {
|
|
283
|
-
if (this.viewModel.cellFoldingState === PropertyFoldingState.Expanded && e.contentHeightChanged && this.viewModel.layoutInfo.editorHeight !== e.contentHeight) {
|
|
284
|
-
this.viewModel.editorHeight = e.contentHeight;
|
|
285
|
-
}
|
|
286
|
-
}));
|
|
287
|
-
this._initializeSourceDiffEditor();
|
|
288
|
-
};
|
|
289
|
-
this._cellHeader = this._register(this.instantiationService.createInstance(PropertyHeader, this.viewModel, this._cellHeaderContainer, this.notebookEditor, {
|
|
290
|
-
updateInfoRendering: () => renderSourceEditor(),
|
|
291
|
-
checkIfModified: () => {
|
|
292
|
-
return this.viewModel.originalMetadata.getHash() !== this.viewModel.modifiedMetadata.getHash() ? { reason: undefined } : false;
|
|
293
|
-
},
|
|
294
|
-
getFoldingState: () => this.viewModel.cellFoldingState,
|
|
295
|
-
updateFoldingState: (state) => this.viewModel.cellFoldingState = state,
|
|
296
|
-
unChangedLabel: 'Notebook Metadata',
|
|
297
|
-
changedLabel: 'Notebook Metadata changed',
|
|
298
|
-
prefix: 'metadata',
|
|
299
|
-
menuId: MenuId.NotebookDiffDocumentMetadata
|
|
300
|
-
}));
|
|
301
|
-
this._cellHeader.buildHeader();
|
|
302
|
-
renderSourceEditor();
|
|
303
|
-
const scopedContextKeyService = this.contextKeyService.createScoped(this.templateData.inputToolbarContainer);
|
|
304
|
-
this._register(scopedContextKeyService);
|
|
305
|
-
const inputChanged = NOTEBOOK_DIFF_METADATA.bindTo(scopedContextKeyService);
|
|
306
|
-
inputChanged.set(this.viewModel.originalMetadata.getHash() !== this.viewModel.modifiedMetadata.getHash());
|
|
307
|
-
this._toolbar = this.templateData.toolbar;
|
|
308
|
-
this._toolbar.context = this.viewModel;
|
|
309
|
-
const refreshToolbar = () => {
|
|
310
|
-
const hasChanges = this.viewModel.originalMetadata.getHash() !== this.viewModel.modifiedMetadata.getHash();
|
|
311
|
-
inputChanged.set(hasChanges);
|
|
312
|
-
if (hasChanges) {
|
|
313
|
-
const actions = [];
|
|
314
|
-
const menu = this.menuService.getMenuActions(MenuId.NotebookDiffDocumentMetadata, scopedContextKeyService, { shouldForwardArgs: true });
|
|
315
|
-
createAndFillInActionBarActions(menu, actions);
|
|
316
|
-
this._toolbar.setActions(actions);
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
this._toolbar.setActions([]);
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
this._register(this.viewModel.modifiedMetadata.onDidChange(() => {
|
|
323
|
-
refreshToolbar();
|
|
324
|
-
}));
|
|
325
|
-
refreshToolbar();
|
|
326
|
-
}
|
|
327
|
-
async _initializeSourceDiffEditor() {
|
|
328
|
-
const [originalRef, modifiedRef] = await Promise.all([
|
|
329
|
-
this.textModelService.createModelReference(this.viewModel.originalMetadata.uri),
|
|
330
|
-
this.textModelService.createModelReference(this.viewModel.modifiedMetadata.uri)
|
|
331
|
-
]);
|
|
332
|
-
if (this._store.isDisposed) {
|
|
333
|
-
originalRef.dispose();
|
|
334
|
-
modifiedRef.dispose();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
this._register(originalRef);
|
|
338
|
-
this._register(modifiedRef);
|
|
339
|
-
const vm = this._register(this._editor.createViewModel({
|
|
340
|
-
original: originalRef.object.textEditorModel,
|
|
341
|
-
modified: modifiedRef.object.textEditorModel,
|
|
342
|
-
}));
|
|
343
|
-
await vm.waitForDiff();
|
|
344
|
-
this._editor.setModel(vm);
|
|
345
|
-
const handleViewStateChange = () => {
|
|
346
|
-
this._editorViewStateChanged = true;
|
|
347
|
-
};
|
|
348
|
-
const handleScrollChange = (e) => {
|
|
349
|
-
if (e.scrollTopChanged || e.scrollLeftChanged) {
|
|
350
|
-
this._editorViewStateChanged = true;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
this.updateEditorOptionsForWhitespace();
|
|
354
|
-
this._register(this._editor.getOriginalEditor().onDidChangeCursorSelection(handleViewStateChange));
|
|
355
|
-
this._register(this._editor.getOriginalEditor().onDidScrollChange(handleScrollChange));
|
|
356
|
-
this._register(this._editor.getModifiedEditor().onDidChangeCursorSelection(handleViewStateChange));
|
|
357
|
-
this._register(this._editor.getModifiedEditor().onDidScrollChange(handleScrollChange));
|
|
358
|
-
const editorViewState = this.viewModel.getSourceEditorViewState();
|
|
359
|
-
if (editorViewState) {
|
|
360
|
-
this._editor.restoreViewState(editorViewState);
|
|
361
|
-
}
|
|
362
|
-
const contentHeight = this._editor.getContentHeight();
|
|
363
|
-
this.viewModel.editorHeight = contentHeight;
|
|
364
|
-
}
|
|
365
|
-
updateEditorOptionsForWhitespace() {
|
|
366
|
-
const editor = this._editor;
|
|
367
|
-
const uri = editor.getModel()?.modified.uri || editor.getModel()?.original.uri;
|
|
368
|
-
if (!uri) {
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
const ignoreTrimWhitespace = this.textConfigurationService.getValue(uri, 'diffEditor.ignoreTrimWhitespace');
|
|
372
|
-
editor.updateOptions({ ignoreTrimWhitespace });
|
|
373
|
-
this._register(this.textConfigurationService.onDidChangeConfiguration(e => {
|
|
374
|
-
if (e.affectsConfiguration(uri, 'diffEditor') &&
|
|
375
|
-
( (e.affectedKeys.has('diffEditor.ignoreTrimWhitespace')))) {
|
|
376
|
-
const ignoreTrimWhitespace = this.textConfigurationService.getValue(uri, 'diffEditor.ignoreTrimWhitespace');
|
|
377
|
-
editor.updateOptions({ ignoreTrimWhitespace });
|
|
378
|
-
}
|
|
379
|
-
}));
|
|
380
|
-
}
|
|
381
|
-
layout(state) {
|
|
382
|
-
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
383
|
-
if (state.editorHeight) {
|
|
384
|
-
this._editorContainer.style.height = `${this.viewModel.layoutInfo.editorHeight}px`;
|
|
385
|
-
this._editor.layout({
|
|
386
|
-
width: this._editor.getViewWidth(),
|
|
387
|
-
height: this.viewModel.layoutInfo.editorHeight
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
if (state.outerWidth) {
|
|
391
|
-
this._editorContainer.style.height = `${this.viewModel.layoutInfo.editorHeight}px`;
|
|
392
|
-
this._editor.layout();
|
|
393
|
-
}
|
|
394
|
-
this.layoutNotebookCell();
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
dispose() {
|
|
398
|
-
this._editor.setModel(null);
|
|
399
|
-
if (this._editorViewStateChanged) {
|
|
400
|
-
this.viewModel.saveSpirceEditorViewState(this._editor.saveViewState());
|
|
401
|
-
}
|
|
402
|
-
super.dispose();
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
NotebookDocumentMetadataElement = ( (__decorate([
|
|
406
|
-
( (__param(3, IInstantiationService))),
|
|
407
|
-
( (__param(4, ITextModelService))),
|
|
408
|
-
( (__param(5, IMenuService))),
|
|
409
|
-
( (__param(6, IContextKeyService))),
|
|
410
|
-
( (__param(7, ITextResourceConfigurationService))),
|
|
411
|
-
( (__param(8, IConfigurationService)))
|
|
412
|
-
], NotebookDocumentMetadataElement)));
|
|
413
|
-
class AbstractElementRenderer extends Disposable {
|
|
414
|
-
constructor(notebookEditor, cell, templateData, style, instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService) {
|
|
415
|
-
super();
|
|
416
|
-
this.notebookEditor = notebookEditor;
|
|
417
|
-
this.cell = cell;
|
|
418
|
-
this.templateData = templateData;
|
|
419
|
-
this.style = style;
|
|
420
|
-
this.instantiationService = instantiationService;
|
|
421
|
-
this.languageService = languageService;
|
|
422
|
-
this.modelService = modelService;
|
|
423
|
-
this.textModelService = textModelService;
|
|
424
|
-
this.contextMenuService = contextMenuService;
|
|
425
|
-
this.keybindingService = keybindingService;
|
|
426
|
-
this.notificationService = notificationService;
|
|
427
|
-
this.menuService = menuService;
|
|
428
|
-
this.contextKeyService = contextKeyService;
|
|
429
|
-
this.configurationService = configurationService;
|
|
430
|
-
this.textConfigurationService = textConfigurationService;
|
|
431
|
-
this._metadataLocalDisposable = this._register(( (new DisposableStore())));
|
|
432
|
-
this._outputLocalDisposable = this._register(( (new DisposableStore())));
|
|
433
|
-
this._ignoreMetadata = false;
|
|
434
|
-
this._ignoreOutputs = false;
|
|
435
|
-
this._isDisposed = false;
|
|
436
|
-
this._metadataEditorDisposeStore = this._register(( (new DisposableStore())));
|
|
437
|
-
this._outputEditorDisposeStore = this._register(( (new DisposableStore())));
|
|
438
|
-
this._register(cell.onDidLayoutChange(e => {
|
|
439
|
-
this.layout(e);
|
|
440
|
-
}));
|
|
441
|
-
this._register(cell.onDidLayoutChange(e => this.updateBorders()));
|
|
442
|
-
this.init();
|
|
443
|
-
this.buildBody();
|
|
444
|
-
this._register(cell.onDidStateChange(() => {
|
|
445
|
-
this.updateOutputRendering(this.cell.renderOutput);
|
|
446
|
-
}));
|
|
447
|
-
}
|
|
448
|
-
buildBody() {
|
|
449
|
-
const body = this.templateData.body;
|
|
450
|
-
this._diffEditorContainer = this.templateData.diffEditorContainer;
|
|
451
|
-
body.classList.remove('left', 'right', 'full');
|
|
452
|
-
switch (this.style) {
|
|
453
|
-
case 'left':
|
|
454
|
-
body.classList.add('left');
|
|
455
|
-
break;
|
|
456
|
-
case 'right':
|
|
457
|
-
body.classList.add('right');
|
|
458
|
-
break;
|
|
459
|
-
default:
|
|
460
|
-
body.classList.add('full');
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
this.styleContainer(this._diffEditorContainer);
|
|
464
|
-
this.updateSourceEditor();
|
|
465
|
-
if (this.cell.modified) {
|
|
466
|
-
this._register(this.cell.modified.textModel.onDidChangeContent(() => this._cellHeader.refresh()));
|
|
467
|
-
}
|
|
468
|
-
this._ignoreMetadata = this.configurationService.getValue('notebook.diff.ignoreMetadata');
|
|
469
|
-
if (this._ignoreMetadata) {
|
|
470
|
-
this._disposeMetadata();
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
this._buildMetadata();
|
|
474
|
-
}
|
|
475
|
-
this._ignoreOutputs = this.configurationService.getValue('notebook.diff.ignoreOutputs') || !!(this.notebookEditor.textModel?.transientOptions.transientOutputs);
|
|
476
|
-
if (this._ignoreOutputs) {
|
|
477
|
-
this._disposeOutput();
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
this._buildOutput();
|
|
481
|
-
}
|
|
482
|
-
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
483
|
-
let metadataLayoutChange = false;
|
|
484
|
-
let outputLayoutChange = false;
|
|
485
|
-
if (e.affectsConfiguration('notebook.diff.ignoreMetadata')) {
|
|
486
|
-
const newValue = this.configurationService.getValue('notebook.diff.ignoreMetadata');
|
|
487
|
-
if (newValue !== undefined && this._ignoreMetadata !== newValue) {
|
|
488
|
-
this._ignoreMetadata = newValue;
|
|
489
|
-
this._metadataLocalDisposable.clear();
|
|
490
|
-
if (this.configurationService.getValue('notebook.diff.ignoreMetadata')) {
|
|
491
|
-
this._disposeMetadata();
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
this.cell.metadataStatusHeight = 25;
|
|
495
|
-
this._buildMetadata();
|
|
496
|
-
this.updateMetadataRendering();
|
|
497
|
-
metadataLayoutChange = true;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
if (e.affectsConfiguration('notebook.diff.ignoreOutputs')) {
|
|
502
|
-
const newValue = this.configurationService.getValue('notebook.diff.ignoreOutputs');
|
|
503
|
-
if (newValue !== undefined && this._ignoreOutputs !== (newValue || this.notebookEditor.textModel?.transientOptions.transientOutputs)) {
|
|
504
|
-
this._ignoreOutputs = newValue || !!(this.notebookEditor.textModel?.transientOptions.transientOutputs);
|
|
505
|
-
this._outputLocalDisposable.clear();
|
|
506
|
-
if (this._ignoreOutputs) {
|
|
507
|
-
this._disposeOutput();
|
|
508
|
-
this.cell.layoutChange();
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
this.cell.outputStatusHeight = 25;
|
|
512
|
-
this._buildOutput();
|
|
513
|
-
outputLayoutChange = true;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
if (metadataLayoutChange || outputLayoutChange) {
|
|
518
|
-
this.layout({ metadataHeight: metadataLayoutChange, outputTotalHeight: outputLayoutChange });
|
|
519
|
-
}
|
|
520
|
-
}));
|
|
521
|
-
}
|
|
522
|
-
updateMetadataRendering() {
|
|
523
|
-
if (this.cell.metadataFoldingState === PropertyFoldingState.Expanded) {
|
|
524
|
-
this._metadataInfoContainer.style.display = 'block';
|
|
525
|
-
if (!this._metadataEditorContainer || !this._metadataEditor) {
|
|
526
|
-
this._metadataEditorContainer = append(this._metadataInfoContainer, $('.metadata-editor-container'));
|
|
527
|
-
this._buildMetadataEditor();
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
this.cell.metadataHeight = this._metadataEditor.getContentHeight();
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
this._metadataInfoContainer.style.display = 'none';
|
|
535
|
-
this.cell.metadataHeight = 0;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
updateOutputRendering(renderRichOutput) {
|
|
539
|
-
if (this.cell.outputFoldingState === PropertyFoldingState.Expanded) {
|
|
540
|
-
this._outputInfoContainer.style.display = 'block';
|
|
541
|
-
if (renderRichOutput) {
|
|
542
|
-
this._hideOutputsRaw();
|
|
543
|
-
this._buildOutputRendererContainer();
|
|
544
|
-
this._showOutputsRenderer();
|
|
545
|
-
this._showOutputsEmptyView();
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
this._hideOutputsRenderer();
|
|
549
|
-
this._buildOutputRawContainer();
|
|
550
|
-
this._showOutputsRaw();
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
this._outputInfoContainer.style.display = 'none';
|
|
555
|
-
this._hideOutputsRaw();
|
|
556
|
-
this._hideOutputsRenderer();
|
|
557
|
-
this._hideOutputsEmptyView();
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
_buildOutputRawContainer() {
|
|
561
|
-
if (!this._outputEditorContainer) {
|
|
562
|
-
this._outputEditorContainer = append(this._outputInfoContainer, $('.output-editor-container'));
|
|
563
|
-
this._buildOutputEditor();
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
_showOutputsRaw() {
|
|
567
|
-
if (this._outputEditorContainer) {
|
|
568
|
-
this._outputEditorContainer.style.display = 'block';
|
|
569
|
-
this.cell.rawOutputHeight = this._outputEditor.getContentHeight();
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
_showOutputsEmptyView() {
|
|
573
|
-
this.cell.layoutChange();
|
|
574
|
-
}
|
|
575
|
-
_hideOutputsRaw() {
|
|
576
|
-
if (this._outputEditorContainer) {
|
|
577
|
-
this._outputEditorContainer.style.display = 'none';
|
|
578
|
-
this.cell.rawOutputHeight = 0;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
_hideOutputsEmptyView() {
|
|
582
|
-
this.cell.layoutChange();
|
|
583
|
-
}
|
|
584
|
-
_applySanitizedMetadataChanges(currentMetadata, newMetadata) {
|
|
585
|
-
const result = {};
|
|
586
|
-
try {
|
|
587
|
-
const newMetadataObj = JSON.parse(newMetadata);
|
|
588
|
-
const keys = ( (new Set([...( (Object.keys(newMetadataObj)))])));
|
|
589
|
-
for (const key of keys) {
|
|
590
|
-
switch (key) {
|
|
591
|
-
case 'inputCollapsed':
|
|
592
|
-
case 'outputCollapsed':
|
|
593
|
-
if (typeof newMetadataObj[key] === 'boolean') {
|
|
594
|
-
result[key] = newMetadataObj[key];
|
|
595
|
-
}
|
|
596
|
-
else {
|
|
597
|
-
result[key] = currentMetadata[key];
|
|
598
|
-
}
|
|
599
|
-
break;
|
|
600
|
-
default:
|
|
601
|
-
result[key] = newMetadataObj[key];
|
|
602
|
-
break;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
const index = this.notebookEditor.textModel.cells.indexOf(this.cell.modified.textModel);
|
|
606
|
-
if (index < 0) {
|
|
607
|
-
return;
|
|
608
|
-
}
|
|
609
|
-
this.notebookEditor.textModel.applyEdits([
|
|
610
|
-
{ editType: 3 , index, metadata: result }
|
|
611
|
-
], true, undefined, () => undefined, undefined, true);
|
|
612
|
-
}
|
|
613
|
-
catch {
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
async _buildMetadataEditor() {
|
|
617
|
-
this._metadataEditorDisposeStore.clear();
|
|
618
|
-
if (this.cell instanceof SideBySideDiffElementViewModel) {
|
|
619
|
-
this._metadataEditor = this.instantiationService.createInstance(DiffEditorWidget, this._metadataEditorContainer, {
|
|
620
|
-
...fixedDiffEditorOptions,
|
|
621
|
-
overflowWidgetsDomNode: this.notebookEditor.getOverflowContainerDomNode(),
|
|
622
|
-
readOnly: false,
|
|
623
|
-
originalEditable: false,
|
|
624
|
-
ignoreTrimWhitespace: false,
|
|
625
|
-
automaticLayout: false,
|
|
626
|
-
dimension: {
|
|
627
|
-
height: this.cell.layoutInfo.metadataHeight,
|
|
628
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), true, true)
|
|
629
|
-
}
|
|
630
|
-
}, {
|
|
631
|
-
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
|
|
632
|
-
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
|
|
633
|
-
});
|
|
634
|
-
const unchangedRegions = this._register(getUnchangedRegionSettings(this.configurationService));
|
|
635
|
-
if (unchangedRegions.options.enabled) {
|
|
636
|
-
this._metadataEditor.updateOptions({ hideUnchangedRegions: unchangedRegions.options });
|
|
637
|
-
}
|
|
638
|
-
this._metadataEditorDisposeStore.add(unchangedRegions.onDidChangeEnablement(() => {
|
|
639
|
-
if (this._metadataEditor) {
|
|
640
|
-
this._metadataEditor.updateOptions({ hideUnchangedRegions: unchangedRegions.options });
|
|
641
|
-
}
|
|
642
|
-
}));
|
|
643
|
-
this.layout({ metadataHeight: true });
|
|
644
|
-
this._metadataEditorDisposeStore.add(this._metadataEditor);
|
|
645
|
-
this._metadataEditorContainer?.classList.add('diff');
|
|
646
|
-
const [originalMetadataModel, modifiedMetadataModel] = await Promise.all([
|
|
647
|
-
this.textModelService.createModelReference(CellUri.generateCellPropertyUri(this.cell.originalDocument.uri, this.cell.original.handle, Schemas.vscodeNotebookCellMetadata)),
|
|
648
|
-
this.textModelService.createModelReference(CellUri.generateCellPropertyUri(this.cell.modifiedDocument.uri, this.cell.modified.handle, Schemas.vscodeNotebookCellMetadata))
|
|
649
|
-
]);
|
|
650
|
-
this._metadataEditorDisposeStore.add(originalMetadataModel);
|
|
651
|
-
this._metadataEditorDisposeStore.add(modifiedMetadataModel);
|
|
652
|
-
const vm = this._metadataEditor.createViewModel({
|
|
653
|
-
original: originalMetadataModel.object.textEditorModel,
|
|
654
|
-
modified: modifiedMetadataModel.object.textEditorModel
|
|
655
|
-
});
|
|
656
|
-
await vm.waitForDiff();
|
|
657
|
-
this._metadataEditor.setModel(vm);
|
|
658
|
-
this.cell.metadataHeight = this._metadataEditor.getContentHeight();
|
|
659
|
-
this._metadataEditorDisposeStore.add(this._metadataEditor.onDidContentSizeChange((e) => {
|
|
660
|
-
if (e.contentHeightChanged && this.cell.metadataFoldingState === PropertyFoldingState.Expanded) {
|
|
661
|
-
this.cell.metadataHeight = e.contentHeight;
|
|
662
|
-
}
|
|
663
|
-
}));
|
|
664
|
-
let respondingToContentChange = false;
|
|
665
|
-
this._metadataEditorDisposeStore.add(modifiedMetadataModel.object.textEditorModel.onDidChangeContent(() => {
|
|
666
|
-
respondingToContentChange = true;
|
|
667
|
-
const value = modifiedMetadataModel.object.textEditorModel.getValue();
|
|
668
|
-
this._applySanitizedMetadataChanges(this.cell.modified.metadata, value);
|
|
669
|
-
this._metadataHeader.refresh();
|
|
670
|
-
respondingToContentChange = false;
|
|
671
|
-
}));
|
|
672
|
-
this._metadataEditorDisposeStore.add(this.cell.modified.textModel.onDidChangeMetadata(() => {
|
|
673
|
-
if (respondingToContentChange) {
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
const modifiedMetadataSource = getFormattedMetadataJSON(this.notebookEditor.textModel?.transientOptions.transientCellMetadata, this.cell.modified?.metadata || {}, this.cell.modified?.language);
|
|
677
|
-
modifiedMetadataModel.object.textEditorModel.setValue(modifiedMetadataSource);
|
|
678
|
-
}));
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
else {
|
|
682
|
-
this._metadataEditor = this.instantiationService.createInstance(CodeEditorWidget, this._metadataEditorContainer, {
|
|
683
|
-
...fixedEditorOptions,
|
|
684
|
-
dimension: {
|
|
685
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
686
|
-
height: this.cell.layoutInfo.metadataHeight
|
|
687
|
-
},
|
|
688
|
-
overflowWidgetsDomNode: this.notebookEditor.getOverflowContainerDomNode(),
|
|
689
|
-
readOnly: false
|
|
690
|
-
}, {});
|
|
691
|
-
this.layout({ metadataHeight: true });
|
|
692
|
-
this._metadataEditorDisposeStore.add(this._metadataEditor);
|
|
693
|
-
const mode = this.languageService.createById('jsonc');
|
|
694
|
-
const originalMetadataSource = getFormattedMetadataJSON(this.notebookEditor.textModel?.transientOptions.transientCellMetadata, this.cell.type === 'insert'
|
|
695
|
-
? this.cell.modified.metadata || {}
|
|
696
|
-
: this.cell.original.metadata || {});
|
|
697
|
-
const uri = this.cell.type === 'insert'
|
|
698
|
-
? this.cell.modified.uri
|
|
699
|
-
: this.cell.original.uri;
|
|
700
|
-
const handle = this.cell.type === 'insert'
|
|
701
|
-
? this.cell.modified.handle
|
|
702
|
-
: this.cell.original.handle;
|
|
703
|
-
const modelUri = CellUri.generateCellPropertyUri(uri, handle, Schemas.vscodeNotebookCellMetadata);
|
|
704
|
-
const metadataModel = this.modelService.createModel(originalMetadataSource, mode, modelUri, false);
|
|
705
|
-
this._metadataEditor.setModel(metadataModel);
|
|
706
|
-
this._metadataEditorDisposeStore.add(metadataModel);
|
|
707
|
-
this.cell.metadataHeight = this._metadataEditor.getContentHeight();
|
|
708
|
-
this._metadataEditorDisposeStore.add(this._metadataEditor.onDidContentSizeChange((e) => {
|
|
709
|
-
if (e.contentHeightChanged && this.cell.metadataFoldingState === PropertyFoldingState.Expanded) {
|
|
710
|
-
this.cell.metadataHeight = e.contentHeight;
|
|
711
|
-
}
|
|
712
|
-
}));
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
_buildOutputEditor() {
|
|
716
|
-
this._outputEditorDisposeStore.clear();
|
|
717
|
-
if ((this.cell.type === 'modified' || this.cell.type === 'unchanged') && !this.notebookEditor.textModel.transientOptions.transientOutputs) {
|
|
718
|
-
const originalOutputsSource = getFormattedOutputJSON(this.cell.original?.outputs || []);
|
|
719
|
-
const modifiedOutputsSource = getFormattedOutputJSON(this.cell.modified?.outputs || []);
|
|
720
|
-
if (originalOutputsSource !== modifiedOutputsSource) {
|
|
721
|
-
const mode = this.languageService.createById('json');
|
|
722
|
-
const originalModel = this.modelService.createModel(originalOutputsSource, mode, undefined, true);
|
|
723
|
-
const modifiedModel = this.modelService.createModel(modifiedOutputsSource, mode, undefined, true);
|
|
724
|
-
this._outputEditorDisposeStore.add(originalModel);
|
|
725
|
-
this._outputEditorDisposeStore.add(modifiedModel);
|
|
726
|
-
const lineHeight = this.notebookEditor.getLayoutInfo().fontInfo.lineHeight || 17;
|
|
727
|
-
const lineCount = Math.max(originalModel.getLineCount(), modifiedModel.getLineCount());
|
|
728
|
-
this._outputEditor = this.instantiationService.createInstance(DiffEditorWidget, this._outputEditorContainer, {
|
|
729
|
-
...fixedDiffEditorOptions,
|
|
730
|
-
overflowWidgetsDomNode: this.notebookEditor.getOverflowContainerDomNode(),
|
|
731
|
-
readOnly: true,
|
|
732
|
-
ignoreTrimWhitespace: false,
|
|
733
|
-
automaticLayout: false,
|
|
734
|
-
dimension: {
|
|
735
|
-
height: Math.min(OUTPUT_EDITOR_HEIGHT_MAGIC, this.cell.layoutInfo.rawOutputHeight || lineHeight * lineCount),
|
|
736
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
|
|
737
|
-
},
|
|
738
|
-
accessibilityVerbose: this.configurationService.getValue("accessibility.verbosity.diffEditor" ) ?? false
|
|
739
|
-
}, {
|
|
740
|
-
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
|
|
741
|
-
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
|
|
742
|
-
});
|
|
743
|
-
this._outputEditorDisposeStore.add(this._outputEditor);
|
|
744
|
-
this._outputEditorContainer?.classList.add('diff');
|
|
745
|
-
this._outputEditor.setModel({
|
|
746
|
-
original: originalModel,
|
|
747
|
-
modified: modifiedModel
|
|
748
|
-
});
|
|
749
|
-
this._outputEditor.restoreViewState(this.cell.getOutputEditorViewState());
|
|
750
|
-
this.cell.rawOutputHeight = this._outputEditor.getContentHeight();
|
|
751
|
-
this._outputEditorDisposeStore.add(this._outputEditor.onDidContentSizeChange((e) => {
|
|
752
|
-
if (e.contentHeightChanged && this.cell.outputFoldingState === PropertyFoldingState.Expanded) {
|
|
753
|
-
this.cell.rawOutputHeight = e.contentHeight;
|
|
754
|
-
}
|
|
755
|
-
}));
|
|
756
|
-
this._outputEditorDisposeStore.add(this.cell.modified.textModel.onDidChangeOutputs(() => {
|
|
757
|
-
const modifiedOutputsSource = getFormattedOutputJSON(this.cell.modified?.outputs || []);
|
|
758
|
-
modifiedModel.setValue(modifiedOutputsSource);
|
|
759
|
-
this._outputHeader.refresh();
|
|
760
|
-
}));
|
|
761
|
-
return;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
this._outputEditor = this.instantiationService.createInstance(CodeEditorWidget, this._outputEditorContainer, {
|
|
765
|
-
...fixedEditorOptions,
|
|
766
|
-
dimension: {
|
|
767
|
-
width: Math.min(OUTPUT_EDITOR_HEIGHT_MAGIC, this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, this.cell.type === 'unchanged' || this.cell.type === 'modified') - 32),
|
|
768
|
-
height: this.cell.layoutInfo.rawOutputHeight
|
|
769
|
-
},
|
|
770
|
-
overflowWidgetsDomNode: this.notebookEditor.getOverflowContainerDomNode()
|
|
771
|
-
}, {});
|
|
772
|
-
this._outputEditorDisposeStore.add(this._outputEditor);
|
|
773
|
-
const mode = this.languageService.createById('json');
|
|
774
|
-
const originaloutputSource = getFormattedOutputJSON(this.notebookEditor.textModel.transientOptions.transientOutputs
|
|
775
|
-
? []
|
|
776
|
-
: this.cell.type === 'insert'
|
|
777
|
-
? this.cell.modified?.outputs || []
|
|
778
|
-
: this.cell.original?.outputs || []);
|
|
779
|
-
const outputModel = this.modelService.createModel(originaloutputSource, mode, undefined, true);
|
|
780
|
-
this._outputEditorDisposeStore.add(outputModel);
|
|
781
|
-
this._outputEditor.setModel(outputModel);
|
|
782
|
-
this._outputEditor.restoreViewState(this.cell.getOutputEditorViewState());
|
|
783
|
-
this.cell.rawOutputHeight = this._outputEditor.getContentHeight();
|
|
784
|
-
this._outputEditorDisposeStore.add(this._outputEditor.onDidContentSizeChange((e) => {
|
|
785
|
-
if (e.contentHeightChanged && this.cell.outputFoldingState === PropertyFoldingState.Expanded) {
|
|
786
|
-
this.cell.rawOutputHeight = e.contentHeight;
|
|
787
|
-
}
|
|
788
|
-
}));
|
|
789
|
-
}
|
|
790
|
-
layoutNotebookCell() {
|
|
791
|
-
this.notebookEditor.layoutNotebookCell(this.cell, this.cell.layoutInfo.totalHeight);
|
|
792
|
-
}
|
|
793
|
-
updateBorders() {
|
|
794
|
-
this.templateData.leftBorder.style.height = `${this.cell.layoutInfo.totalHeight - 32}px`;
|
|
795
|
-
this.templateData.rightBorder.style.height = `${this.cell.layoutInfo.totalHeight - 32}px`;
|
|
796
|
-
this.templateData.bottomBorder.style.top = `${this.cell.layoutInfo.totalHeight - 32}px`;
|
|
797
|
-
}
|
|
798
|
-
dispose() {
|
|
799
|
-
if (this._outputEditor) {
|
|
800
|
-
this.cell.saveOutputEditorViewState(this._outputEditor.saveViewState());
|
|
801
|
-
}
|
|
802
|
-
if (this._metadataEditor) {
|
|
803
|
-
this.cell.saveMetadataEditorViewState(this._metadataEditor.saveViewState());
|
|
804
|
-
}
|
|
805
|
-
this._metadataEditorDisposeStore.dispose();
|
|
806
|
-
this._outputEditorDisposeStore.dispose();
|
|
807
|
-
this._isDisposed = true;
|
|
808
|
-
super.dispose();
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
class SingleSideDiffElement extends AbstractElementRenderer {
|
|
812
|
-
constructor(notebookEditor, cell, templateData, style, instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService) {
|
|
813
|
-
super(notebookEditor, cell, templateData, style, instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService);
|
|
814
|
-
this.cell = cell;
|
|
815
|
-
this.templateData = templateData;
|
|
816
|
-
this.updateBorders();
|
|
817
|
-
}
|
|
818
|
-
init() {
|
|
819
|
-
this._diagonalFill = this.templateData.diagonalFill;
|
|
820
|
-
}
|
|
821
|
-
buildBody() {
|
|
822
|
-
const body = this.templateData.body;
|
|
823
|
-
this._diffEditorContainer = this.templateData.diffEditorContainer;
|
|
824
|
-
body.classList.remove('left', 'right', 'full');
|
|
825
|
-
switch (this.style) {
|
|
826
|
-
case 'left':
|
|
827
|
-
body.classList.add('left');
|
|
828
|
-
break;
|
|
829
|
-
case 'right':
|
|
830
|
-
body.classList.add('right');
|
|
831
|
-
break;
|
|
832
|
-
default:
|
|
833
|
-
body.classList.add('full');
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
this.styleContainer(this._diffEditorContainer);
|
|
837
|
-
this.updateSourceEditor();
|
|
838
|
-
if (this.configurationService.getValue('notebook.diff.ignoreMetadata')) {
|
|
839
|
-
this._disposeMetadata();
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
this._buildMetadata();
|
|
843
|
-
}
|
|
844
|
-
if (this.configurationService.getValue('notebook.diff.ignoreOutputs') || this.notebookEditor.textModel?.transientOptions.transientOutputs) {
|
|
845
|
-
this._disposeOutput();
|
|
846
|
-
}
|
|
847
|
-
else {
|
|
848
|
-
this._buildOutput();
|
|
849
|
-
}
|
|
850
|
-
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
851
|
-
let metadataLayoutChange = false;
|
|
852
|
-
let outputLayoutChange = false;
|
|
853
|
-
if (e.affectsConfiguration('notebook.diff.ignoreMetadata')) {
|
|
854
|
-
this._metadataLocalDisposable.clear();
|
|
855
|
-
if (this.configurationService.getValue('notebook.diff.ignoreMetadata')) {
|
|
856
|
-
this._disposeMetadata();
|
|
857
|
-
}
|
|
858
|
-
else {
|
|
859
|
-
this.cell.metadataStatusHeight = 25;
|
|
860
|
-
this._buildMetadata();
|
|
861
|
-
this.updateMetadataRendering();
|
|
862
|
-
metadataLayoutChange = true;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
if (e.affectsConfiguration('notebook.diff.ignoreOutputs')) {
|
|
866
|
-
this._outputLocalDisposable.clear();
|
|
867
|
-
if (this.configurationService.getValue('notebook.diff.ignoreOutputs') || this.notebookEditor.textModel?.transientOptions.transientOutputs) {
|
|
868
|
-
this._disposeOutput();
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
this.cell.outputStatusHeight = 25;
|
|
872
|
-
this._buildOutput();
|
|
873
|
-
outputLayoutChange = true;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
if (metadataLayoutChange || outputLayoutChange) {
|
|
877
|
-
this.layout({ metadataHeight: metadataLayoutChange, outputTotalHeight: outputLayoutChange });
|
|
878
|
-
}
|
|
879
|
-
}));
|
|
880
|
-
}
|
|
881
|
-
updateSourceEditor() {
|
|
882
|
-
this._cellHeaderContainer = this.templateData.cellHeaderContainer;
|
|
883
|
-
this._cellHeaderContainer.style.display = 'flex';
|
|
884
|
-
this._cellHeaderContainer.innerText = '';
|
|
885
|
-
this._editorContainer = this.templateData.editorContainer;
|
|
886
|
-
this._editorContainer.classList.add('diff');
|
|
887
|
-
const renderSourceEditor = () => {
|
|
888
|
-
if (this.cell.cellFoldingState === PropertyFoldingState.Collapsed) {
|
|
889
|
-
this._editorContainer.style.display = 'none';
|
|
890
|
-
this.cell.editorHeight = 0;
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
const lineHeight = this.notebookEditor.getLayoutInfo().fontInfo.lineHeight || 17;
|
|
894
|
-
const editorHeight = this.cell.computeInputEditorHeight(lineHeight);
|
|
895
|
-
this._editorContainer.style.height = `${editorHeight}px`;
|
|
896
|
-
this._editorContainer.style.display = 'block';
|
|
897
|
-
if (this._editor) {
|
|
898
|
-
const contentHeight = this._editor.getContentHeight();
|
|
899
|
-
if (contentHeight >= 0) {
|
|
900
|
-
this.cell.editorHeight = contentHeight;
|
|
901
|
-
}
|
|
902
|
-
return;
|
|
903
|
-
}
|
|
904
|
-
this._editor = this.templateData.sourceEditor;
|
|
905
|
-
this._editor.layout({
|
|
906
|
-
width: (this.notebookEditor.getLayoutInfo().width - 2 * DIFF_CELL_MARGIN) / 2 - 18,
|
|
907
|
-
height: editorHeight
|
|
908
|
-
});
|
|
909
|
-
this._editor.updateOptions({ readOnly: this.readonly });
|
|
910
|
-
this.cell.editorHeight = editorHeight;
|
|
911
|
-
this._register(this._editor.onDidContentSizeChange((e) => {
|
|
912
|
-
if (this.cell.cellFoldingState === PropertyFoldingState.Expanded && e.contentHeightChanged && this.cell.layoutInfo.editorHeight !== e.contentHeight) {
|
|
913
|
-
this.cell.editorHeight = e.contentHeight;
|
|
914
|
-
}
|
|
915
|
-
}));
|
|
916
|
-
this._initializeSourceDiffEditor(this.nestedCellViewModel);
|
|
917
|
-
};
|
|
918
|
-
this._cellHeader = this._register(this.instantiationService.createInstance(PropertyHeader, this.cell, this._cellHeaderContainer, this.notebookEditor, {
|
|
919
|
-
updateInfoRendering: () => renderSourceEditor(),
|
|
920
|
-
checkIfModified: () => ({ reason: undefined }),
|
|
921
|
-
getFoldingState: () => this.cell.cellFoldingState,
|
|
922
|
-
updateFoldingState: (state) => this.cell.cellFoldingState = state,
|
|
923
|
-
unChangedLabel: 'Input',
|
|
924
|
-
changedLabel: 'Input',
|
|
925
|
-
prefix: 'input',
|
|
926
|
-
menuId: MenuId.NotebookDiffCellInputTitle
|
|
927
|
-
}));
|
|
928
|
-
this._cellHeader.buildHeader();
|
|
929
|
-
renderSourceEditor();
|
|
930
|
-
this._initializeSourceDiffEditor(this.nestedCellViewModel);
|
|
931
|
-
}
|
|
932
|
-
calculateDiagonalFillHeight() {
|
|
933
|
-
return this.cell.layoutInfo.cellStatusHeight + this.cell.layoutInfo.editorHeight + this.cell.layoutInfo.editorMargin + this.cell.layoutInfo.metadataStatusHeight + this.cell.layoutInfo.metadataHeight + this.cell.layoutInfo.outputTotalHeight + this.cell.layoutInfo.outputStatusHeight;
|
|
934
|
-
}
|
|
935
|
-
async _initializeSourceDiffEditor(modifiedCell) {
|
|
936
|
-
const modifiedRef = await this.textModelService.createModelReference(modifiedCell.uri);
|
|
937
|
-
if (this._isDisposed) {
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
const modifiedTextModel = modifiedRef.object.textEditorModel;
|
|
941
|
-
this._register(modifiedRef);
|
|
942
|
-
this._editor.setModel(modifiedTextModel);
|
|
943
|
-
const editorViewState = this.cell.getSourceEditorViewState();
|
|
944
|
-
if (editorViewState) {
|
|
945
|
-
this._editor.restoreViewState(editorViewState);
|
|
946
|
-
}
|
|
947
|
-
const contentHeight = this._editor.getContentHeight();
|
|
948
|
-
this.cell.editorHeight = contentHeight;
|
|
949
|
-
const height = `${this.calculateDiagonalFillHeight()}px`;
|
|
950
|
-
if (this._diagonalFill.style.height !== height) {
|
|
951
|
-
this._diagonalFill.style.height = height;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
_disposeMetadata() {
|
|
955
|
-
this.cell.metadataStatusHeight = 0;
|
|
956
|
-
this.cell.metadataHeight = 0;
|
|
957
|
-
this.templateData.cellHeaderContainer.style.display = 'none';
|
|
958
|
-
this.templateData.metadataHeaderContainer.style.display = 'none';
|
|
959
|
-
this.templateData.metadataInfoContainer.style.display = 'none';
|
|
960
|
-
this._metadataEditor = undefined;
|
|
961
|
-
}
|
|
962
|
-
_buildMetadata() {
|
|
963
|
-
this._metadataHeaderContainer = this.templateData.metadataHeaderContainer;
|
|
964
|
-
this._metadataInfoContainer = this.templateData.metadataInfoContainer;
|
|
965
|
-
this._metadataHeaderContainer.style.display = 'flex';
|
|
966
|
-
this._metadataInfoContainer.style.display = 'block';
|
|
967
|
-
this._metadataHeaderContainer.innerText = '';
|
|
968
|
-
this._metadataInfoContainer.innerText = '';
|
|
969
|
-
this._metadataHeader = this.instantiationService.createInstance(PropertyHeader, this.cell, this._metadataHeaderContainer, this.notebookEditor, {
|
|
970
|
-
updateInfoRendering: this.updateMetadataRendering.bind(this),
|
|
971
|
-
checkIfModified: () => {
|
|
972
|
-
return this.cell.checkMetadataIfModified();
|
|
973
|
-
},
|
|
974
|
-
getFoldingState: () => {
|
|
975
|
-
return this.cell.metadataFoldingState;
|
|
976
|
-
},
|
|
977
|
-
updateFoldingState: (state) => {
|
|
978
|
-
this.cell.metadataFoldingState = state;
|
|
979
|
-
},
|
|
980
|
-
unChangedLabel: 'Metadata',
|
|
981
|
-
changedLabel: 'Metadata changed',
|
|
982
|
-
prefix: 'metadata',
|
|
983
|
-
menuId: MenuId.NotebookDiffCellMetadataTitle
|
|
984
|
-
});
|
|
985
|
-
this._metadataLocalDisposable.add(this._metadataHeader);
|
|
986
|
-
this._metadataHeader.buildHeader();
|
|
987
|
-
}
|
|
988
|
-
_buildOutput() {
|
|
989
|
-
this.templateData.outputHeaderContainer.style.display = 'flex';
|
|
990
|
-
this.templateData.outputInfoContainer.style.display = 'block';
|
|
991
|
-
this._outputHeaderContainer = this.templateData.outputHeaderContainer;
|
|
992
|
-
this._outputInfoContainer = this.templateData.outputInfoContainer;
|
|
993
|
-
this._outputHeaderContainer.innerText = '';
|
|
994
|
-
this._outputInfoContainer.innerText = '';
|
|
995
|
-
this._outputHeader = this.instantiationService.createInstance(PropertyHeader, this.cell, this._outputHeaderContainer, this.notebookEditor, {
|
|
996
|
-
updateInfoRendering: this.updateOutputRendering.bind(this),
|
|
997
|
-
checkIfModified: () => {
|
|
998
|
-
return this.cell.checkIfOutputsModified();
|
|
999
|
-
},
|
|
1000
|
-
getFoldingState: () => {
|
|
1001
|
-
return this.cell.outputFoldingState;
|
|
1002
|
-
},
|
|
1003
|
-
updateFoldingState: (state) => {
|
|
1004
|
-
this.cell.outputFoldingState = state;
|
|
1005
|
-
},
|
|
1006
|
-
unChangedLabel: 'Outputs',
|
|
1007
|
-
changedLabel: 'Outputs changed',
|
|
1008
|
-
prefix: 'output',
|
|
1009
|
-
menuId: MenuId.NotebookDiffCellOutputsTitle
|
|
1010
|
-
});
|
|
1011
|
-
this._outputLocalDisposable.add(this._outputHeader);
|
|
1012
|
-
this._outputHeader.buildHeader();
|
|
1013
|
-
}
|
|
1014
|
-
_disposeOutput() {
|
|
1015
|
-
this._hideOutputsRaw();
|
|
1016
|
-
this._hideOutputsRenderer();
|
|
1017
|
-
this._hideOutputsEmptyView();
|
|
1018
|
-
this.cell.rawOutputHeight = 0;
|
|
1019
|
-
this.cell.outputMetadataHeight = 0;
|
|
1020
|
-
this.cell.outputStatusHeight = 0;
|
|
1021
|
-
this.templateData.outputHeaderContainer.style.display = 'none';
|
|
1022
|
-
this.templateData.outputInfoContainer.style.display = 'none';
|
|
1023
|
-
this._outputViewContainer = undefined;
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
let DeletedElement = class DeletedElement extends SingleSideDiffElement {
|
|
1027
|
-
constructor(notebookEditor, cell, templateData, languageService, modelService, textModelService, instantiationService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService) {
|
|
1028
|
-
super(notebookEditor, cell, templateData, 'left', instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService);
|
|
1029
|
-
}
|
|
1030
|
-
get nestedCellViewModel() {
|
|
1031
|
-
return this.cell.original;
|
|
1032
|
-
}
|
|
1033
|
-
get readonly() {
|
|
1034
|
-
return true;
|
|
1035
|
-
}
|
|
1036
|
-
styleContainer(container) {
|
|
1037
|
-
container.classList.remove('inserted');
|
|
1038
|
-
container.classList.add('removed');
|
|
1039
|
-
}
|
|
1040
|
-
layout(state) {
|
|
1041
|
-
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
1042
|
-
if ((state.editorHeight || state.outerWidth) && this._editor) {
|
|
1043
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1044
|
-
this._editor.layout({
|
|
1045
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
1046
|
-
height: this.cell.layoutInfo.editorHeight
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
if (state.outerWidth && this._editor) {
|
|
1050
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1051
|
-
this._editor.layout();
|
|
1052
|
-
}
|
|
1053
|
-
if (state.metadataHeight || state.outerWidth) {
|
|
1054
|
-
this._metadataEditor?.layout({
|
|
1055
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
1056
|
-
height: this.cell.layoutInfo.metadataHeight
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
if (state.outputTotalHeight || state.outerWidth) {
|
|
1060
|
-
this._outputEditor?.layout({
|
|
1061
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
1062
|
-
height: this.cell.layoutInfo.outputTotalHeight
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
if (this._diagonalFill) {
|
|
1066
|
-
this._diagonalFill.style.height = `${this.calculateDiagonalFillHeight()}px`;
|
|
1067
|
-
}
|
|
1068
|
-
this.layoutNotebookCell();
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
_buildOutputRendererContainer() {
|
|
1072
|
-
if (!this._outputViewContainer) {
|
|
1073
|
-
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
1074
|
-
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
1075
|
-
const span = append(this._outputEmptyElement, $('span'));
|
|
1076
|
-
span.innerText = 'No outputs to render';
|
|
1077
|
-
if (!this.cell.original?.outputs.length) {
|
|
1078
|
-
this._outputEmptyElement.style.display = 'block';
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
this._outputEmptyElement.style.display = 'none';
|
|
1082
|
-
}
|
|
1083
|
-
this.cell.layoutChange();
|
|
1084
|
-
this._outputLeftView = this.instantiationService.createInstance(OutputContainer, this.notebookEditor, this.notebookEditor.textModel, this.cell, this.cell.original, DiffSide.Original, this._outputViewContainer);
|
|
1085
|
-
this._register(this._outputLeftView);
|
|
1086
|
-
this._outputLeftView.render();
|
|
1087
|
-
const removedOutputRenderListener = this.notebookEditor.onDidDynamicOutputRendered(e => {
|
|
1088
|
-
if (( (e.cell.uri.toString())) === ( (this.cell.original.uri.toString()))) {
|
|
1089
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Original, this.cell.original.id, ['nb-cellDeleted'], []);
|
|
1090
|
-
removedOutputRenderListener.dispose();
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
this._register(removedOutputRenderListener);
|
|
1094
|
-
}
|
|
1095
|
-
this._outputViewContainer.style.display = 'block';
|
|
1096
|
-
}
|
|
1097
|
-
_decorate() {
|
|
1098
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Original, this.cell.original.id, ['nb-cellDeleted'], []);
|
|
1099
|
-
}
|
|
1100
|
-
_showOutputsRenderer() {
|
|
1101
|
-
if (this._outputViewContainer) {
|
|
1102
|
-
this._outputViewContainer.style.display = 'block';
|
|
1103
|
-
this._outputLeftView?.showOutputs();
|
|
1104
|
-
this._decorate();
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
_hideOutputsRenderer() {
|
|
1108
|
-
if (this._outputViewContainer) {
|
|
1109
|
-
this._outputViewContainer.style.display = 'none';
|
|
1110
|
-
this._outputLeftView?.hideOutputs();
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
dispose() {
|
|
1114
|
-
if (this._editor) {
|
|
1115
|
-
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
|
|
1116
|
-
}
|
|
1117
|
-
super.dispose();
|
|
1118
|
-
}
|
|
1119
|
-
};
|
|
1120
|
-
DeletedElement = ( (__decorate([
|
|
1121
|
-
( (__param(3, ILanguageService))),
|
|
1122
|
-
( (__param(4, IModelService))),
|
|
1123
|
-
( (__param(5, ITextModelService))),
|
|
1124
|
-
( (__param(6, IInstantiationService))),
|
|
1125
|
-
( (__param(7, IContextMenuService))),
|
|
1126
|
-
( (__param(8, IKeybindingService))),
|
|
1127
|
-
( (__param(9, INotificationService))),
|
|
1128
|
-
( (__param(10, IMenuService))),
|
|
1129
|
-
( (__param(11, IContextKeyService))),
|
|
1130
|
-
( (__param(12, IConfigurationService))),
|
|
1131
|
-
( (__param(13, ITextResourceConfigurationService)))
|
|
1132
|
-
], DeletedElement)));
|
|
1133
|
-
let InsertElement = class InsertElement extends SingleSideDiffElement {
|
|
1134
|
-
constructor(notebookEditor, cell, templateData, instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService) {
|
|
1135
|
-
super(notebookEditor, cell, templateData, 'right', instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService);
|
|
1136
|
-
}
|
|
1137
|
-
get nestedCellViewModel() {
|
|
1138
|
-
return this.cell.modified;
|
|
1139
|
-
}
|
|
1140
|
-
get readonly() {
|
|
1141
|
-
return false;
|
|
1142
|
-
}
|
|
1143
|
-
styleContainer(container) {
|
|
1144
|
-
container.classList.remove('removed');
|
|
1145
|
-
container.classList.add('inserted');
|
|
1146
|
-
}
|
|
1147
|
-
_buildOutputRendererContainer() {
|
|
1148
|
-
if (!this._outputViewContainer) {
|
|
1149
|
-
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
1150
|
-
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
1151
|
-
this._outputEmptyElement.innerText = 'No outputs to render';
|
|
1152
|
-
if (!this.cell.modified?.outputs.length) {
|
|
1153
|
-
this._outputEmptyElement.style.display = 'block';
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
this._outputEmptyElement.style.display = 'none';
|
|
1157
|
-
}
|
|
1158
|
-
this.cell.layoutChange();
|
|
1159
|
-
this._outputRightView = this.instantiationService.createInstance(OutputContainer, this.notebookEditor, this.notebookEditor.textModel, this.cell, this.cell.modified, DiffSide.Modified, this._outputViewContainer);
|
|
1160
|
-
this._register(this._outputRightView);
|
|
1161
|
-
this._outputRightView.render();
|
|
1162
|
-
const insertOutputRenderListener = this.notebookEditor.onDidDynamicOutputRendered(e => {
|
|
1163
|
-
if (( (e.cell.uri.toString())) === ( (this.cell.modified.uri.toString()))) {
|
|
1164
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Modified, this.cell.modified.id, ['nb-cellAdded'], []);
|
|
1165
|
-
insertOutputRenderListener.dispose();
|
|
1166
|
-
}
|
|
1167
|
-
});
|
|
1168
|
-
this._register(insertOutputRenderListener);
|
|
1169
|
-
}
|
|
1170
|
-
this._outputViewContainer.style.display = 'block';
|
|
1171
|
-
}
|
|
1172
|
-
_decorate() {
|
|
1173
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Modified, this.cell.modified.id, ['nb-cellAdded'], []);
|
|
1174
|
-
}
|
|
1175
|
-
_showOutputsRenderer() {
|
|
1176
|
-
if (this._outputViewContainer) {
|
|
1177
|
-
this._outputViewContainer.style.display = 'block';
|
|
1178
|
-
this._outputRightView?.showOutputs();
|
|
1179
|
-
this._decorate();
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
_hideOutputsRenderer() {
|
|
1183
|
-
if (this._outputViewContainer) {
|
|
1184
|
-
this._outputViewContainer.style.display = 'none';
|
|
1185
|
-
this._outputRightView?.hideOutputs();
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
layout(state) {
|
|
1189
|
-
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
1190
|
-
if ((state.editorHeight || state.outerWidth) && this._editor) {
|
|
1191
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1192
|
-
this._editor.layout({
|
|
1193
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
1194
|
-
height: this.cell.layoutInfo.editorHeight
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
if (state.outerWidth && this._editor) {
|
|
1198
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1199
|
-
this._editor.layout();
|
|
1200
|
-
}
|
|
1201
|
-
if (state.metadataHeight || state.outerWidth) {
|
|
1202
|
-
this._metadataEditor?.layout({
|
|
1203
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
1204
|
-
height: this.cell.layoutInfo.metadataHeight
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
if (state.outputTotalHeight || state.outerWidth) {
|
|
1208
|
-
this._outputEditor?.layout({
|
|
1209
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
1210
|
-
height: this.cell.layoutInfo.outputTotalHeight
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
this.layoutNotebookCell();
|
|
1214
|
-
if (this._diagonalFill) {
|
|
1215
|
-
this._diagonalFill.style.height = `${this.calculateDiagonalFillHeight()}px`;
|
|
1216
|
-
}
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
dispose() {
|
|
1220
|
-
if (this._editor) {
|
|
1221
|
-
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
|
|
1222
|
-
}
|
|
1223
|
-
super.dispose();
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
|
-
InsertElement = ( (__decorate([
|
|
1227
|
-
( (__param(3, IInstantiationService))),
|
|
1228
|
-
( (__param(4, ILanguageService))),
|
|
1229
|
-
( (__param(5, IModelService))),
|
|
1230
|
-
( (__param(6, ITextModelService))),
|
|
1231
|
-
( (__param(7, IContextMenuService))),
|
|
1232
|
-
( (__param(8, IKeybindingService))),
|
|
1233
|
-
( (__param(9, INotificationService))),
|
|
1234
|
-
( (__param(10, IMenuService))),
|
|
1235
|
-
( (__param(11, IContextKeyService))),
|
|
1236
|
-
( (__param(12, IConfigurationService))),
|
|
1237
|
-
( (__param(13, ITextResourceConfigurationService)))
|
|
1238
|
-
], InsertElement)));
|
|
1239
|
-
let ModifiedElement = class ModifiedElement extends AbstractElementRenderer {
|
|
1240
|
-
constructor(notebookEditor, cell, templateData, instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService) {
|
|
1241
|
-
super(notebookEditor, cell, templateData, 'full', instantiationService, languageService, modelService, textModelService, contextMenuService, keybindingService, notificationService, menuService, contextKeyService, configurationService, textConfigurationService);
|
|
1242
|
-
this.cell = cell;
|
|
1243
|
-
this.templateData = templateData;
|
|
1244
|
-
this._editorViewStateChanged = false;
|
|
1245
|
-
this.updateBorders();
|
|
1246
|
-
}
|
|
1247
|
-
init() { }
|
|
1248
|
-
styleContainer(container) {
|
|
1249
|
-
container.classList.remove('inserted', 'removed');
|
|
1250
|
-
}
|
|
1251
|
-
buildBody() {
|
|
1252
|
-
super.buildBody();
|
|
1253
|
-
if (this.cell.displayIconToHideUnmodifiedCells) {
|
|
1254
|
-
this._register(this.templateData.marginOverlay.onAction(() => this.cell.hideUnchangedCells()));
|
|
1255
|
-
this.templateData.marginOverlay.show();
|
|
1256
|
-
}
|
|
1257
|
-
else {
|
|
1258
|
-
this.templateData.marginOverlay.hide();
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
_disposeMetadata() {
|
|
1262
|
-
this.cell.metadataStatusHeight = 0;
|
|
1263
|
-
this.cell.metadataHeight = 0;
|
|
1264
|
-
this.templateData.metadataHeaderContainer.style.display = 'none';
|
|
1265
|
-
this.templateData.metadataInfoContainer.style.display = 'none';
|
|
1266
|
-
this._metadataEditor = undefined;
|
|
1267
|
-
}
|
|
1268
|
-
_buildMetadata() {
|
|
1269
|
-
this._metadataHeaderContainer = this.templateData.metadataHeaderContainer;
|
|
1270
|
-
this._metadataInfoContainer = this.templateData.metadataInfoContainer;
|
|
1271
|
-
this._metadataHeaderContainer.style.display = 'flex';
|
|
1272
|
-
this._metadataInfoContainer.style.display = 'block';
|
|
1273
|
-
this._metadataHeaderContainer.innerText = '';
|
|
1274
|
-
this._metadataInfoContainer.innerText = '';
|
|
1275
|
-
this._metadataHeader = this.instantiationService.createInstance(PropertyHeader, this.cell, this._metadataHeaderContainer, this.notebookEditor, {
|
|
1276
|
-
updateInfoRendering: this.updateMetadataRendering.bind(this),
|
|
1277
|
-
checkIfModified: () => {
|
|
1278
|
-
return this.cell.checkMetadataIfModified();
|
|
1279
|
-
},
|
|
1280
|
-
getFoldingState: () => {
|
|
1281
|
-
return this.cell.metadataFoldingState;
|
|
1282
|
-
},
|
|
1283
|
-
updateFoldingState: (state) => {
|
|
1284
|
-
this.cell.metadataFoldingState = state;
|
|
1285
|
-
},
|
|
1286
|
-
unChangedLabel: 'Metadata',
|
|
1287
|
-
changedLabel: 'Metadata changed',
|
|
1288
|
-
prefix: 'metadata',
|
|
1289
|
-
menuId: MenuId.NotebookDiffCellMetadataTitle
|
|
1290
|
-
});
|
|
1291
|
-
this._metadataLocalDisposable.add(this._metadataHeader);
|
|
1292
|
-
this._metadataHeader.buildHeader();
|
|
1293
|
-
}
|
|
1294
|
-
_disposeOutput() {
|
|
1295
|
-
this._hideOutputsRaw();
|
|
1296
|
-
this._hideOutputsRenderer();
|
|
1297
|
-
this._hideOutputsEmptyView();
|
|
1298
|
-
this.cell.rawOutputHeight = 0;
|
|
1299
|
-
this.cell.outputMetadataHeight = 0;
|
|
1300
|
-
this.cell.outputStatusHeight = 0;
|
|
1301
|
-
this.templateData.outputHeaderContainer.style.display = 'none';
|
|
1302
|
-
this.templateData.outputInfoContainer.style.display = 'none';
|
|
1303
|
-
this._outputViewContainer = undefined;
|
|
1304
|
-
}
|
|
1305
|
-
_buildOutput() {
|
|
1306
|
-
this.templateData.outputHeaderContainer.style.display = 'flex';
|
|
1307
|
-
this.templateData.outputInfoContainer.style.display = 'block';
|
|
1308
|
-
this._outputHeaderContainer = this.templateData.outputHeaderContainer;
|
|
1309
|
-
this._outputInfoContainer = this.templateData.outputInfoContainer;
|
|
1310
|
-
this._outputHeaderContainer.innerText = '';
|
|
1311
|
-
this._outputInfoContainer.innerText = '';
|
|
1312
|
-
if (this.cell.checkIfOutputsModified()) {
|
|
1313
|
-
this._outputInfoContainer.classList.add('modified');
|
|
1314
|
-
}
|
|
1315
|
-
else {
|
|
1316
|
-
this._outputInfoContainer.classList.remove('modified');
|
|
1317
|
-
}
|
|
1318
|
-
this._outputHeader = this.instantiationService.createInstance(PropertyHeader, this.cell, this._outputHeaderContainer, this.notebookEditor, {
|
|
1319
|
-
updateInfoRendering: this.updateOutputRendering.bind(this),
|
|
1320
|
-
checkIfModified: () => {
|
|
1321
|
-
return this.cell.checkIfOutputsModified();
|
|
1322
|
-
},
|
|
1323
|
-
getFoldingState: () => {
|
|
1324
|
-
return this.cell.outputFoldingState;
|
|
1325
|
-
},
|
|
1326
|
-
updateFoldingState: (state) => {
|
|
1327
|
-
this.cell.outputFoldingState = state;
|
|
1328
|
-
},
|
|
1329
|
-
unChangedLabel: 'Outputs',
|
|
1330
|
-
changedLabel: 'Outputs changed',
|
|
1331
|
-
prefix: 'output',
|
|
1332
|
-
menuId: MenuId.NotebookDiffCellOutputsTitle
|
|
1333
|
-
});
|
|
1334
|
-
this._outputLocalDisposable.add(this._outputHeader);
|
|
1335
|
-
this._outputHeader.buildHeader();
|
|
1336
|
-
}
|
|
1337
|
-
_buildOutputRendererContainer() {
|
|
1338
|
-
if (!this._outputViewContainer) {
|
|
1339
|
-
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
1340
|
-
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
1341
|
-
this._outputEmptyElement.innerText = 'No outputs to render';
|
|
1342
|
-
if (!this.cell.checkIfOutputsModified() && this.cell.modified.outputs.length === 0) {
|
|
1343
|
-
this._outputEmptyElement.style.display = 'block';
|
|
1344
|
-
}
|
|
1345
|
-
else {
|
|
1346
|
-
this._outputEmptyElement.style.display = 'none';
|
|
1347
|
-
}
|
|
1348
|
-
this.cell.layoutChange();
|
|
1349
|
-
this._register(this.cell.modified.textModel.onDidChangeOutputs(() => {
|
|
1350
|
-
if (!this.cell.checkIfOutputsModified() && this.cell.modified.outputs.length === 0) {
|
|
1351
|
-
this._outputEmptyElement.style.display = 'block';
|
|
1352
|
-
}
|
|
1353
|
-
else {
|
|
1354
|
-
this._outputEmptyElement.style.display = 'none';
|
|
1355
|
-
}
|
|
1356
|
-
this._decorate();
|
|
1357
|
-
}));
|
|
1358
|
-
this._outputLeftContainer = append(this._outputViewContainer, $('.output-view-container-left'));
|
|
1359
|
-
this._outputRightContainer = append(this._outputViewContainer, $('.output-view-container-right'));
|
|
1360
|
-
this._outputMetadataContainer = append(this._outputViewContainer, $('.output-view-container-metadata'));
|
|
1361
|
-
const outputModified = this.cell.checkIfOutputsModified();
|
|
1362
|
-
const outputMetadataChangeOnly = outputModified
|
|
1363
|
-
&& outputModified.kind === 1
|
|
1364
|
-
&& this.cell.original.outputs.length === 1
|
|
1365
|
-
&& this.cell.modified.outputs.length === 1
|
|
1366
|
-
&& outputEqual(this.cell.original.outputs[0], this.cell.modified.outputs[0]) === 1 ;
|
|
1367
|
-
if (outputModified && !outputMetadataChangeOnly) {
|
|
1368
|
-
const originalOutputRenderListener = this.notebookEditor.onDidDynamicOutputRendered(e => {
|
|
1369
|
-
if (( (e.cell.uri.toString())) === ( (this.cell.original.uri.toString())) && this.cell.checkIfOutputsModified()) {
|
|
1370
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Original, this.cell.original.id, ['nb-cellDeleted'], []);
|
|
1371
|
-
originalOutputRenderListener.dispose();
|
|
1372
|
-
}
|
|
1373
|
-
});
|
|
1374
|
-
const modifiedOutputRenderListener = this.notebookEditor.onDidDynamicOutputRendered(e => {
|
|
1375
|
-
if (( (e.cell.uri.toString())) === ( (this.cell.modified.uri.toString())) && this.cell.checkIfOutputsModified()) {
|
|
1376
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Modified, this.cell.modified.id, ['nb-cellAdded'], []);
|
|
1377
|
-
modifiedOutputRenderListener.dispose();
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
this._register(originalOutputRenderListener);
|
|
1381
|
-
this._register(modifiedOutputRenderListener);
|
|
1382
|
-
}
|
|
1383
|
-
this._outputLeftView = this.instantiationService.createInstance(OutputContainer, this.notebookEditor, this.notebookEditor.textModel, this.cell, this.cell.original, DiffSide.Original, this._outputLeftContainer);
|
|
1384
|
-
this._outputLeftView.render();
|
|
1385
|
-
this._register(this._outputLeftView);
|
|
1386
|
-
this._outputRightView = this.instantiationService.createInstance(OutputContainer, this.notebookEditor, this.notebookEditor.textModel, this.cell, this.cell.modified, DiffSide.Modified, this._outputRightContainer);
|
|
1387
|
-
this._outputRightView.render();
|
|
1388
|
-
this._register(this._outputRightView);
|
|
1389
|
-
if (outputModified && !outputMetadataChangeOnly) {
|
|
1390
|
-
this._decorate();
|
|
1391
|
-
}
|
|
1392
|
-
if (outputMetadataChangeOnly) {
|
|
1393
|
-
this._outputMetadataContainer.style.top = `${this.cell.layoutInfo.rawOutputHeight}px`;
|
|
1394
|
-
this._outputMetadataEditor = this.instantiationService.createInstance(DiffEditorWidget, this._outputMetadataContainer, {
|
|
1395
|
-
...fixedDiffEditorOptions,
|
|
1396
|
-
overflowWidgetsDomNode: this.notebookEditor.getOverflowContainerDomNode(),
|
|
1397
|
-
readOnly: true,
|
|
1398
|
-
ignoreTrimWhitespace: false,
|
|
1399
|
-
automaticLayout: false,
|
|
1400
|
-
dimension: {
|
|
1401
|
-
height: OUTPUT_EDITOR_HEIGHT_MAGIC,
|
|
1402
|
-
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
|
|
1403
|
-
}
|
|
1404
|
-
}, {
|
|
1405
|
-
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
|
|
1406
|
-
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
|
|
1407
|
-
});
|
|
1408
|
-
this._register(this._outputMetadataEditor);
|
|
1409
|
-
const originalOutputMetadataSource = JSON.stringify(this.cell.original.outputs[0].metadata ?? {}, undefined, '\t');
|
|
1410
|
-
const modifiedOutputMetadataSource = JSON.stringify(this.cell.modified.outputs[0].metadata ?? {}, undefined, '\t');
|
|
1411
|
-
const mode = this.languageService.createById('json');
|
|
1412
|
-
const originalModel = this.modelService.createModel(originalOutputMetadataSource, mode, undefined, true);
|
|
1413
|
-
const modifiedModel = this.modelService.createModel(modifiedOutputMetadataSource, mode, undefined, true);
|
|
1414
|
-
this._outputMetadataEditor.setModel({
|
|
1415
|
-
original: originalModel,
|
|
1416
|
-
modified: modifiedModel
|
|
1417
|
-
});
|
|
1418
|
-
this.cell.outputMetadataHeight = this._outputMetadataEditor.getContentHeight();
|
|
1419
|
-
this._register(this._outputMetadataEditor.onDidContentSizeChange((e) => {
|
|
1420
|
-
this.cell.outputMetadataHeight = e.contentHeight;
|
|
1421
|
-
}));
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
this._outputViewContainer.style.display = 'block';
|
|
1425
|
-
}
|
|
1426
|
-
_decorate() {
|
|
1427
|
-
if (this.cell.checkIfOutputsModified()) {
|
|
1428
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Original, this.cell.original.id, ['nb-cellDeleted'], []);
|
|
1429
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Modified, this.cell.modified.id, ['nb-cellAdded'], []);
|
|
1430
|
-
}
|
|
1431
|
-
else {
|
|
1432
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Original, this.cell.original.id, [], ['nb-cellDeleted']);
|
|
1433
|
-
this.notebookEditor.deltaCellOutputContainerClassNames(DiffSide.Modified, this.cell.modified.id, [], ['nb-cellAdded']);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
_showOutputsRenderer() {
|
|
1437
|
-
if (this._outputViewContainer) {
|
|
1438
|
-
this._outputViewContainer.style.display = 'block';
|
|
1439
|
-
this._outputLeftView?.showOutputs();
|
|
1440
|
-
this._outputRightView?.showOutputs();
|
|
1441
|
-
this._outputMetadataEditor?.layout({
|
|
1442
|
-
width: this._editor?.getViewWidth() || this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
1443
|
-
height: this.cell.layoutInfo.outputMetadataHeight
|
|
1444
|
-
});
|
|
1445
|
-
this._decorate();
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
_hideOutputsRenderer() {
|
|
1449
|
-
if (this._outputViewContainer) {
|
|
1450
|
-
this._outputViewContainer.style.display = 'none';
|
|
1451
|
-
this._outputLeftView?.hideOutputs();
|
|
1452
|
-
this._outputRightView?.hideOutputs();
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
updateSourceEditor() {
|
|
1456
|
-
this._cellHeaderContainer = this.templateData.cellHeaderContainer;
|
|
1457
|
-
this._cellHeaderContainer.style.display = 'flex';
|
|
1458
|
-
this._cellHeaderContainer.innerText = '';
|
|
1459
|
-
const modifiedCell = this.cell.modified;
|
|
1460
|
-
this._editorContainer = this.templateData.editorContainer;
|
|
1461
|
-
this._editorContainer.classList.add('diff');
|
|
1462
|
-
const renderSourceEditor = () => {
|
|
1463
|
-
if (this.cell.cellFoldingState === PropertyFoldingState.Collapsed) {
|
|
1464
|
-
this._editorContainer.style.display = 'none';
|
|
1465
|
-
this.cell.editorHeight = 0;
|
|
1466
|
-
return;
|
|
1467
|
-
}
|
|
1468
|
-
const lineCount = modifiedCell.textModel.textBuffer.getLineCount();
|
|
1469
|
-
const lineHeight = this.notebookEditor.getLayoutInfo().fontInfo.lineHeight || 17;
|
|
1470
|
-
const editorHeight = this.cell.layoutInfo.editorHeight !== 0 ? this.cell.layoutInfo.editorHeight : this.cell.computeInputEditorHeight(lineHeight);
|
|
1471
|
-
this._editorContainer.style.height = `${editorHeight}px`;
|
|
1472
|
-
this._editorContainer.style.display = 'block';
|
|
1473
|
-
if (this._editor) {
|
|
1474
|
-
const contentHeight = this._editor.getContentHeight();
|
|
1475
|
-
if (contentHeight >= 0) {
|
|
1476
|
-
this.cell.editorHeight = contentHeight;
|
|
1477
|
-
}
|
|
1478
|
-
return;
|
|
1479
|
-
}
|
|
1480
|
-
this._editor = this.templateData.sourceEditor;
|
|
1481
|
-
const options = {
|
|
1482
|
-
padding: getEditorPadding(lineCount)
|
|
1483
|
-
};
|
|
1484
|
-
const unchangedRegions = this._register(getUnchangedRegionSettings(this.configurationService));
|
|
1485
|
-
if (unchangedRegions.options.enabled) {
|
|
1486
|
-
options.hideUnchangedRegions = unchangedRegions.options;
|
|
1487
|
-
}
|
|
1488
|
-
this._editor.updateOptions(options);
|
|
1489
|
-
this._register(unchangedRegions.onDidChangeEnablement(() => {
|
|
1490
|
-
options.hideUnchangedRegions = unchangedRegions.options;
|
|
1491
|
-
this._editor?.updateOptions(options);
|
|
1492
|
-
}));
|
|
1493
|
-
this._editor.layout({
|
|
1494
|
-
width: this.notebookEditor.getLayoutInfo().width - 2 * DIFF_CELL_MARGIN,
|
|
1495
|
-
height: editorHeight
|
|
1496
|
-
});
|
|
1497
|
-
this._register(this._editor.onDidContentSizeChange((e) => {
|
|
1498
|
-
if (this.cell.cellFoldingState === PropertyFoldingState.Expanded && e.contentHeightChanged && this.cell.layoutInfo.editorHeight !== e.contentHeight) {
|
|
1499
|
-
this.cell.editorHeight = e.contentHeight;
|
|
1500
|
-
}
|
|
1501
|
-
}));
|
|
1502
|
-
this._initializeSourceDiffEditor();
|
|
1503
|
-
};
|
|
1504
|
-
this._cellHeader = this._register(this.instantiationService.createInstance(PropertyHeader, this.cell, this._cellHeaderContainer, this.notebookEditor, {
|
|
1505
|
-
updateInfoRendering: () => renderSourceEditor(),
|
|
1506
|
-
checkIfModified: () => {
|
|
1507
|
-
return this.cell.modified?.textModel.getTextBufferHash() !== this.cell.original?.textModel.getTextBufferHash() ? { reason: undefined } : false;
|
|
1508
|
-
},
|
|
1509
|
-
getFoldingState: () => this.cell.cellFoldingState,
|
|
1510
|
-
updateFoldingState: (state) => this.cell.cellFoldingState = state,
|
|
1511
|
-
unChangedLabel: 'Input',
|
|
1512
|
-
changedLabel: 'Input changed',
|
|
1513
|
-
prefix: 'input',
|
|
1514
|
-
menuId: MenuId.NotebookDiffCellInputTitle
|
|
1515
|
-
}));
|
|
1516
|
-
this._cellHeader.buildHeader();
|
|
1517
|
-
renderSourceEditor();
|
|
1518
|
-
const scopedContextKeyService = this.contextKeyService.createScoped(this.templateData.inputToolbarContainer);
|
|
1519
|
-
this._register(scopedContextKeyService);
|
|
1520
|
-
const inputChanged = NOTEBOOK_DIFF_CELL_INPUT.bindTo(scopedContextKeyService);
|
|
1521
|
-
inputChanged.set(this.cell.modified.textModel.getTextBufferHash() !== this.cell.original.textModel.getTextBufferHash());
|
|
1522
|
-
const ignoreWhitespace = NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE.bindTo(scopedContextKeyService);
|
|
1523
|
-
const ignore = this.textConfigurationService.getValue(this.cell.modified.uri, 'diffEditor.ignoreTrimWhitespace');
|
|
1524
|
-
ignoreWhitespace.set(ignore);
|
|
1525
|
-
this._toolbar = this.templateData.toolbar;
|
|
1526
|
-
this._toolbar.context = this.cell;
|
|
1527
|
-
const refreshToolbar = () => {
|
|
1528
|
-
const ignore = this.textConfigurationService.getValue(this.cell.modified.uri, 'diffEditor.ignoreTrimWhitespace');
|
|
1529
|
-
ignoreWhitespace.set(ignore);
|
|
1530
|
-
const hasChanges = this.cell.modified.textModel.getTextBufferHash() !== this.cell.original.textModel.getTextBufferHash();
|
|
1531
|
-
inputChanged.set(hasChanges);
|
|
1532
|
-
if (hasChanges) {
|
|
1533
|
-
const actions = [];
|
|
1534
|
-
const menu = this.menuService.getMenuActions(MenuId.NotebookDiffCellInputTitle, scopedContextKeyService, { shouldForwardArgs: true });
|
|
1535
|
-
createAndFillInActionBarActions(menu, actions);
|
|
1536
|
-
this._toolbar.setActions(actions);
|
|
1537
|
-
}
|
|
1538
|
-
else {
|
|
1539
|
-
this._toolbar.setActions([]);
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
this._register(this.cell.modified.textModel.onDidChangeContent(() => refreshToolbar()));
|
|
1543
|
-
this._register(this.textConfigurationService.onDidChangeConfiguration(e => {
|
|
1544
|
-
if (e.affectsConfiguration(this.cell.modified.uri, 'diffEditor') &&
|
|
1545
|
-
( (e.affectedKeys.has('diffEditor.ignoreTrimWhitespace')))) {
|
|
1546
|
-
refreshToolbar();
|
|
1547
|
-
}
|
|
1548
|
-
}));
|
|
1549
|
-
refreshToolbar();
|
|
1550
|
-
}
|
|
1551
|
-
async _initializeSourceDiffEditor() {
|
|
1552
|
-
const [originalRef, modifiedRef] = await Promise.all([
|
|
1553
|
-
this.textModelService.createModelReference(this.cell.original.uri),
|
|
1554
|
-
this.textModelService.createModelReference(this.cell.modified.uri)
|
|
1555
|
-
]);
|
|
1556
|
-
this._register(originalRef);
|
|
1557
|
-
this._register(modifiedRef);
|
|
1558
|
-
if (this._isDisposed) {
|
|
1559
|
-
originalRef.dispose();
|
|
1560
|
-
modifiedRef.dispose();
|
|
1561
|
-
return;
|
|
1562
|
-
}
|
|
1563
|
-
const vm = this._register(this._editor.createViewModel({
|
|
1564
|
-
original: originalRef.object.textEditorModel,
|
|
1565
|
-
modified: modifiedRef.object.textEditorModel,
|
|
1566
|
-
}));
|
|
1567
|
-
await vm.waitForDiff();
|
|
1568
|
-
this._editor.setModel(vm);
|
|
1569
|
-
const handleViewStateChange = () => {
|
|
1570
|
-
this._editorViewStateChanged = true;
|
|
1571
|
-
};
|
|
1572
|
-
const handleScrollChange = (e) => {
|
|
1573
|
-
if (e.scrollTopChanged || e.scrollLeftChanged) {
|
|
1574
|
-
this._editorViewStateChanged = true;
|
|
1575
|
-
}
|
|
1576
|
-
};
|
|
1577
|
-
this.updateEditorOptionsForWhitespace();
|
|
1578
|
-
this._register(this._editor.getOriginalEditor().onDidChangeCursorSelection(handleViewStateChange));
|
|
1579
|
-
this._register(this._editor.getOriginalEditor().onDidScrollChange(handleScrollChange));
|
|
1580
|
-
this._register(this._editor.getModifiedEditor().onDidChangeCursorSelection(handleViewStateChange));
|
|
1581
|
-
this._register(this._editor.getModifiedEditor().onDidScrollChange(handleScrollChange));
|
|
1582
|
-
const editorViewState = this.cell.getSourceEditorViewState();
|
|
1583
|
-
if (editorViewState) {
|
|
1584
|
-
this._editor.restoreViewState(editorViewState);
|
|
1585
|
-
}
|
|
1586
|
-
const contentHeight = this._editor.getContentHeight();
|
|
1587
|
-
this.cell.editorHeight = contentHeight;
|
|
1588
|
-
}
|
|
1589
|
-
updateEditorOptionsForWhitespace() {
|
|
1590
|
-
const editor = this._editor;
|
|
1591
|
-
if (!editor) {
|
|
1592
|
-
return;
|
|
1593
|
-
}
|
|
1594
|
-
const uri = editor.getModel()?.modified.uri || editor.getModel()?.original.uri;
|
|
1595
|
-
if (!uri) {
|
|
1596
|
-
return;
|
|
1597
|
-
}
|
|
1598
|
-
const ignoreTrimWhitespace = this.textConfigurationService.getValue(uri, 'diffEditor.ignoreTrimWhitespace');
|
|
1599
|
-
editor.updateOptions({ ignoreTrimWhitespace });
|
|
1600
|
-
this._register(this.textConfigurationService.onDidChangeConfiguration(e => {
|
|
1601
|
-
if (e.affectsConfiguration(uri, 'diffEditor') &&
|
|
1602
|
-
( (e.affectedKeys.has('diffEditor.ignoreTrimWhitespace')))) {
|
|
1603
|
-
const ignoreTrimWhitespace = this.textConfigurationService.getValue(uri, 'diffEditor.ignoreTrimWhitespace');
|
|
1604
|
-
editor.updateOptions({ ignoreTrimWhitespace });
|
|
1605
|
-
}
|
|
1606
|
-
}));
|
|
1607
|
-
}
|
|
1608
|
-
layout(state) {
|
|
1609
|
-
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
1610
|
-
if (state.editorHeight && this._editor) {
|
|
1611
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1612
|
-
this._editor.layout({
|
|
1613
|
-
width: this._editor.getViewWidth(),
|
|
1614
|
-
height: this.cell.layoutInfo.editorHeight
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
if (state.outerWidth && this._editor) {
|
|
1618
|
-
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1619
|
-
this._editor.layout();
|
|
1620
|
-
}
|
|
1621
|
-
if (state.metadataHeight || state.outerWidth) {
|
|
1622
|
-
if (this._metadataEditorContainer) {
|
|
1623
|
-
this._metadataEditorContainer.style.height = `${this.cell.layoutInfo.metadataHeight}px`;
|
|
1624
|
-
this._metadataEditor?.layout({
|
|
1625
|
-
width: this._editor?.getViewWidth() || this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
1626
|
-
height: this.cell.layoutInfo.metadataHeight
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
if (state.outputTotalHeight || state.outerWidth) {
|
|
1631
|
-
if (this._outputEditorContainer) {
|
|
1632
|
-
this._outputEditorContainer.style.height = `${this.cell.layoutInfo.outputTotalHeight}px`;
|
|
1633
|
-
this._outputEditor?.layout({
|
|
1634
|
-
width: this._editor?.getViewWidth() || this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
1635
|
-
height: this.cell.layoutInfo.outputTotalHeight
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
if (this._outputMetadataContainer) {
|
|
1639
|
-
this._outputMetadataContainer.style.height = `${this.cell.layoutInfo.outputMetadataHeight}px`;
|
|
1640
|
-
this._outputMetadataContainer.style.top = `${this.cell.layoutInfo.outputTotalHeight - this.cell.layoutInfo.outputMetadataHeight}px`;
|
|
1641
|
-
this._outputMetadataEditor?.layout({
|
|
1642
|
-
width: this._editor?.getViewWidth() || this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true),
|
|
1643
|
-
height: this.cell.layoutInfo.outputMetadataHeight
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
this.layoutNotebookCell();
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
dispose() {
|
|
1651
|
-
if (this._editor) {
|
|
1652
|
-
this._editor.setModel(null);
|
|
1653
|
-
}
|
|
1654
|
-
if (this._editor && this._editorViewStateChanged) {
|
|
1655
|
-
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
|
|
1656
|
-
}
|
|
1657
|
-
super.dispose();
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
ModifiedElement = ( (__decorate([
|
|
1661
|
-
( (__param(3, IInstantiationService))),
|
|
1662
|
-
( (__param(4, ILanguageService))),
|
|
1663
|
-
( (__param(5, IModelService))),
|
|
1664
|
-
( (__param(6, ITextModelService))),
|
|
1665
|
-
( (__param(7, IContextMenuService))),
|
|
1666
|
-
( (__param(8, IKeybindingService))),
|
|
1667
|
-
( (__param(9, INotificationService))),
|
|
1668
|
-
( (__param(10, IMenuService))),
|
|
1669
|
-
( (__param(11, IContextKeyService))),
|
|
1670
|
-
( (__param(12, IConfigurationService))),
|
|
1671
|
-
( (__param(13, ITextResourceConfigurationService)))
|
|
1672
|
-
], ModifiedElement)));
|
|
1673
|
-
class CollapsedCellOverlayWidget extends Disposable {
|
|
1674
|
-
constructor(container) {
|
|
1675
|
-
super();
|
|
1676
|
-
this.container = container;
|
|
1677
|
-
this._nodes = h('div.diff-hidden-cells', [
|
|
1678
|
-
h('div.center@content', { style: { display: 'flex' } }, [
|
|
1679
|
-
$('a', {
|
|
1680
|
-
title: ( localize(11618, 'Show Unchanged Cells')),
|
|
1681
|
-
role: 'button',
|
|
1682
|
-
onclick: () => { this._action.fire(); }
|
|
1683
|
-
}, ...renderLabelWithIcons('$(unfold)'))
|
|
1684
|
-
]),
|
|
1685
|
-
]);
|
|
1686
|
-
this._action = this._register(( (new Emitter())));
|
|
1687
|
-
this.onAction = this._action.event;
|
|
1688
|
-
this._nodes.root.style.display = 'none';
|
|
1689
|
-
container.appendChild(this._nodes.root);
|
|
1690
|
-
}
|
|
1691
|
-
show() {
|
|
1692
|
-
this._nodes.root.style.display = 'block';
|
|
1693
|
-
}
|
|
1694
|
-
hide() {
|
|
1695
|
-
this._nodes.root.style.display = 'none';
|
|
1696
|
-
}
|
|
1697
|
-
dispose() {
|
|
1698
|
-
this.hide();
|
|
1699
|
-
this.container.removeChild(this._nodes.root);
|
|
1700
|
-
reset(this._nodes.root);
|
|
1701
|
-
super.dispose();
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
class UnchangedCellOverlayWidget extends Disposable {
|
|
1705
|
-
constructor(container) {
|
|
1706
|
-
super();
|
|
1707
|
-
this.container = container;
|
|
1708
|
-
this._nodes = h('div.diff-hidden-cells', [
|
|
1709
|
-
h('div.center@content', { style: { display: 'flex' } }, [
|
|
1710
|
-
$('a', {
|
|
1711
|
-
title: ( localize(11619, 'Hide Unchanged Cells')),
|
|
1712
|
-
role: 'button',
|
|
1713
|
-
onclick: () => { this._action.fire(); }
|
|
1714
|
-
}, ...renderLabelWithIcons('$(fold)')),
|
|
1715
|
-
]),
|
|
1716
|
-
]);
|
|
1717
|
-
this._action = this._register(( (new Emitter())));
|
|
1718
|
-
this.onAction = this._action.event;
|
|
1719
|
-
this._nodes.root.style.display = 'none';
|
|
1720
|
-
container.appendChild(this._nodes.root);
|
|
1721
|
-
}
|
|
1722
|
-
show() {
|
|
1723
|
-
this._nodes.root.style.display = 'block';
|
|
1724
|
-
}
|
|
1725
|
-
hide() {
|
|
1726
|
-
this._nodes.root.style.display = 'none';
|
|
1727
|
-
}
|
|
1728
|
-
dispose() {
|
|
1729
|
-
this.hide();
|
|
1730
|
-
this.container.removeChild(this._nodes.root);
|
|
1731
|
-
reset(this._nodes.root);
|
|
1732
|
-
super.dispose();
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
export { CellDiffPlaceholderElement, CollapsedCellOverlayWidget, DeletedElement, InsertElement, ModifiedElement, NotebookDocumentMetadataElement, UnchangedCellOverlayWidget, getOptimizedNestedCodeEditorWidgetOptions };
|