Interface IDiffEditorBaseOptions
interface IDiffEditorBaseOptions {
accessibilityVerbose?: boolean;
compactMode?: boolean;
diffAlgorithm?: "advanced" | "legacy";
diffCodeLens?: boolean;
diffWordWrap?: "off" | "on" | "inherit";
enableSplitViewResizing?: boolean;
experimental?: {
showEmptyDecorations?: boolean;
showMoves?: boolean;
useTrueInlineView?: boolean;
};
hideUnchangedRegions?: {
contextLineCount?: number;
enabled?: boolean;
minimumLineCount?: number;
revealLineCount?: number;
};
ignoreTrimWhitespace?: boolean;
isInEmbeddedEditor?: boolean;
maxComputationTime?: number;
maxFileSize?: number;
onlyShowAccessibleDiffViewer?: boolean;
originalEditable?: boolean;
renderGutterMenu?: boolean;
renderIndicators?: boolean;
renderMarginRevertIcon?: boolean;
renderOverviewRuler?: boolean;
renderSideBySide?: boolean;
renderSideBySideInlineBreakpoint?: number;
splitViewDefaultRatio?: number;
useInlineViewWhenSpaceIsLimited?: boolean;
}Properties§
accessibility Verbose?: booleancompact Mode?: booleanIf set, the diff editor is optimized for small views.
Defaults to false.
diff Algorithm?: "advanced" | "legacy"Diff Algorithm
diff Code Lens?: booleanShould the diff editor enable code lens? Defaults to false.
diff Word Wrap?: "off" | "on" | "inherit"Control the wrapping of the diff editor.
enable Split View Resizing?: booleanAllow the user to resize the diff editor split view. Defaults to true.
experimental?: { ... }§hide Unchanged Regions?: { ... }§ignore Trim Whitespace?: booleanCompute the diff by ignoring leading/trailing whitespace Defaults to true.
is In Embedded Editor?: booleanIs the diff editor inside another editor Defaults to false
max Computation Time?: numberTimeout in milliseconds after which diff computation is cancelled. Defaults to 5000.
max File Size?: numberMaximum supported file size in MB. Defaults to 50.
only Show Accessible Diff Viewer?: booleanIf the diff editor should only show the difference review mode.
original Editable?: booleanOriginal model should be editable? Defaults to false.
Indicates if the gutter menu should be rendered.
render Indicators?: booleanRender +/- indicators for added/deleted changes. Defaults to true.
render Margin Revert Icon?: booleanShows icons in the glyph margin to revert changes. Default to true.
render Overview Ruler?: booleanIs the diff editor should render overview ruler Defaults to true
render Side By Side?: booleanRender the differences in two side-by-side editors. Defaults to true.
render Side By Side Inline Breakpoint?: numberWhen renderSideBySide is enabled, useInlineViewWhenSpaceIsLimited is set,
and the diff editor has a width less than renderSideBySideInlineBreakpoint, the inline view is used.
split View Default Ratio?: numberThe default ratio when rendering side-by-side editors. Must be a number between 0 and 1, min sizes apply. Defaults to 0.5
use Inline View When Space Is Limited?: booleanWhen renderSideBySide is enabled, useInlineViewWhenSpaceIsLimited is set,
and the diff editor has a width less than renderSideBySideInlineBreakpoint, the inline view is used.
Whether the diff editor aria label should be verbose.