Change:
a change it using the gutter arrow :bug: indentation is lost
Can you share a screenshot/screenrecording and provide context on the document you have? Thanks!
Cannot reproduce: ! Please always try to include as much context as you can.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our guidelines. Happy Coding!
Hi Henning I think I can also reproduce this in 1.84.0-insider (MacOS). I believe the preconditions to reproduce is to set (which is also the default) and revert a deleted code chunk. See attached gif. !
Hey this issue might need further attention. you can help us out by closing this issue if the problem no longer exists, or adding more information.

Discussion:
import { AccessibleDiffViewer, AccessibleDiffViewerModelFromEditors } from 'vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer'; import { DiffEditorDecorations } from 'vs/editor/browser/widget/diffEditor/components/diffEditorDecorations'; import { DiffEditorSash } from 'vs/editor/browser/widget/diffEditor/components/diffEditorSash'; <del> import { HideUnchangedRegionsFeature } from 'vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature'; </del> import { DiffEditorViewZones } from 'vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones'; <ins> import { HideUnchangedRegionsFeature } from 'vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature'; </ins> import { MovedBlocksLinesFeature } from 'vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature'; import { OverviewRulerFeature } from 'vs/editor/browser/widget/diffEditor/features/overviewRulerFeature'; <ins> import { RevertButtonsFeature } from 'vs/editor/browser/widget/diffEditor/features/revertButtonsFeature'; </ins> import { CSSStyle, ObservableElementSizeObserver, applyStyle, applyViewZones, bindContextKey, readHotReloadableExport, translatePosition } from 'vs/editor/browser/widget/diffEditor/utils'; import { IDiffEditorOptions } from 'vs/editor/common/config/editorOptions'; import { IDimension } from 'vs/editor/common/core/dimension';

import { Range } from 'vs/editor/common/core/range'; import { CursorChangeReason } from 'vs/editor/common/cursorEvents'; import { IDiffComputationResult, ILineChange } from 'vs/editor/common/diff/legacyLinesDiffComputer'; <del> import { DetailedLineRangeMapping, RangeMapping } from 'vs/editor/common/diff/rangeMapping'; </del> <ins> import { LineRangeMapping, RangeMapping } from 'vs/editor/common/diff/rangeMapping'; </ins> import { EditorType, IDiffEditorModel, IDiffEditorViewModel, IDiffEditorViewState } from 'vs/editor/common/editorCommon'; import { EditorContextKeys } from 'vs/editor/common/editorContextKeys'; import { IIdentifiedSingleEditOperation } from 'vs/editor/common/model';

import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection'; import { IEditorProgressService } from 'vs/platform/progress/common/progress'; <del> import { DelegatingEditor } from './delegatingEditorImpl'; </del> import { DiffEditorEditors } from './components/diffEditorEditors'; <ins> import { DelegatingEditor } from './delegatingEditorImpl'; </ins> import { DiffEditorOptions } from './diffEditorOptions'; import { DiffEditorViewModel, DiffMapping, DiffState } from './diffEditorViewModel'; <del> import { RevertButtonsFeature } from 'vs/editor/browser/widget/diffEditor/features/revertButtonsFeature'; </del> export interface IDiffCodeEditorWidgetOptions { originalEditor?: ICodeEditorWidgetOptions;

}; } <del> revert(diff: DetailedLineRangeMapping): void { if (diff.innerChanges) { this.revertRangeMappings(diff.innerChanges); return; } </del> <ins> revert(diff: LineRangeMapping): void { </ins> const model = this._diffModel.get(); if (!model || !model.isDiffUpToDate.get()) { return; }

import { DiffEditorWidget } from 'vs/editor/browser/widget/diffEditor/diffEditorWidget'; import { LineRange, LineRangeSet } from 'vs/editor/common/core/lineRange'; import { Range } from 'vs/editor/common/core/range'; <del> import { RangeMapping } from 'vs/editor/common/diff/rangeMapping'; </del> <ins> import { LineRangeMapping, RangeMapping } from 'vs/editor/common/diff/rangeMapping'; </ins> import { GlyphMarginLane } from 'vs/editor/common/model'; import { localize } from 'vs/nls';

const btn = store.add(new RevertButton( m.lineRangeMapping.modified.startLineNumber, this._widget, <del> m.lineRangeMapping.innerChanges, </del> <ins> m.lineRangeMapping, </ins> false )); this._editors.modified.addGlyphMarginWidget(btn);

constructor( private readonly _lineNumber: number, private readonly _widget: DiffEditorWidget, <del> private readonly _diffs: RangeMapping[], </del> <ins> private readonly _diffs: RangeMapping[] | LineRangeMapping, </ins> private readonly _revertSelection: boolean, ) { super();

})); this._register(addDisposableListener(this._domNode, EventType.CLICK, (e) => { <del> this._widget.revertRangeMappings(this._diffs); </del> <ins> if (this._diffs instanceof LineRangeMapping) { this._widget.revert(this._diffs); } else { this._widget.revertRangeMappings(this._diffs); } </ins> e.stopPropagation(); e.preventDefault(); }));