File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/editor/browser/widget/diffEditor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,12 @@ export class DiffEditorOptions {
71
71
public readonly showEmptyDecorations = derived(this, reader => this._options.read(reader).experimental.showEmptyDecorations!);
72
72
public readonly onlyShowAccessibleDiffViewer = derived(this, reader => this._options.read(reader).onlyShowAccessibleDiffViewer);
73
73
public readonly compactMode = derived(this, reader => this._options.read(reader).compactMode);
74
+ private readonly trueInlineDiffRenderingEnabled: IObservable<boolean> = derived(this, reader =>
75
+ this._options.read(reader).experimental.useTrueInlineView!
76
+ );
77
+
74
78
public readonly useTrueInlineDiffRendering: IObservable<boolean> = derived(this, reader =>
75
- !this.renderSideBySide.read(reader) && this._options .read(reader).experimental.useTrueInlineView!
79
+ !this.renderSideBySide.read(reader) && this.trueInlineDiffRenderingEnabled .read(reader)
76
80
);
77
81
78
82
public readonly hideUnchangedRegions = derived(this, reader => this._options.read(reader).hideUnchangedRegions.enabled!);
@@ -99,7 +103,7 @@ export class DiffEditorOptions {
99
103
private readonly shouldRenderInlineViewInSmartMode = this._model
100
104
.map(this, model => derivedConstOnceDefined(this, reader => {
101
105
const diffs = model?.diff.read(reader);
102
- return diffs ? isSimpleDiff(diffs, this.useTrueInlineDiffRendering .read(reader)) : undefined;
106
+ return diffs ? isSimpleDiff(diffs, this.trueInlineDiffRenderingEnabled .read(reader)) : undefined;
103
107
}))
104
108
.flatten()
105
109
.map(this, v => !!v);
You can’t perform that action at this time.
0 commit comments