Skip to content

Commit

Permalink
Fixes diff editor rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Jul 22, 2024
1 parent 54f90d6 commit 709d1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/editor/browser/widget/diffEditor/diffEditorOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export class DiffEditorOptions {
public readonly showEmptyDecorations = derived(this, reader => this._options.read(reader).experimental.showEmptyDecorations!);
public readonly onlyShowAccessibleDiffViewer = derived(this, reader => this._options.read(reader).onlyShowAccessibleDiffViewer);
public readonly compactMode = derived(this, reader => this._options.read(reader).compactMode);
public readonly useTrueInlineDiffRendering = derived(this, reader => this._options.read(reader).experimental.useTrueInlineView!);
public readonly useTrueInlineDiffRendering: IObservable<boolean> = derived(this, reader =>
!this.renderSideBySide.read(reader) && this._options.read(reader).experimental.useTrueInlineView!
);

public readonly hideUnchangedRegions = derived(this, reader => this._options.read(reader).hideUnchangedRegions.enabled!);
public readonly hideUnchangedRegionsRevealLineCount = derived(this, reader => this._options.read(reader).hideUnchangedRegions.revealLineCount!);
Expand Down

0 comments on commit 709d1b8

Please sign in to comment.