OptionalaccessibilityOptionalcompactIf set, the diff editor is optimized for small views.
Defaults to false.
OptionaldiffDiff Algorithm
OptionaldiffShould the diff editor enable code lens? Defaults to false.
OptionaldiffControl the wrapping of the diff editor.
OptionalenableAllow the user to resize the diff editor split view. Defaults to true.
OptionalexperimentalOptionalshowEmptyDecorations?: booleanOptionalshowMoves?: booleanDefaults to false.
OptionaluseTrueInlineView?: booleanOnly applies when renderSideBySide is set to false.
OptionalhideOptionalignoreCompute the diff by ignoring leading/trailing whitespace Defaults to true.
OptionalisIs the diff editor inside another editor Defaults to false
OptionalmaxTimeout in milliseconds after which diff computation is cancelled. Defaults to 5000.
OptionalmaxMaximum supported file size in MB. Defaults to 50.
OptionalonlyIf the diff editor should only show the difference review mode.
OptionaloriginalOriginal model should be editable? Defaults to false.
OptionalrenderIndicates if the gutter menu should be rendered.
OptionalrenderRender +/- indicators for added/deleted changes. Defaults to true.
OptionalrenderShows icons in the glyph margin to revert changes. Default to true.
OptionalrenderIs the diff editor should render overview ruler Defaults to true
OptionalrenderRender the differences in two side-by-side editors. Defaults to true.
OptionalrenderWhen renderSideBySide is enabled, useInlineViewWhenSpaceIsLimited is set,
and the diff editor has a width less than renderSideBySideInlineBreakpoint, the inline view is used.
OptionalsplitThe default ratio when rendering side-by-side editors. Must be a number between 0 and 1, min sizes apply. Defaults to 0.5
OptionaluseWhen 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.