Skip to content

DiffPluginOptions

DiffPluginOptions = object

readonly mode: DiffPluginMode

§C1. document is the parity path; overlay is explicitly non-parity — see §C2.

Required, with no default. The factory this replaced took no arguments and was always overlay, so the natural migration — rename the call, keep the empty argument list — would otherwise produce a plugin that mounts, registers everything, renders nothing and reports no error, because setBaseFile and setEnabled both early-return outside overlay mode.


readonly optional regions?: DiffRegionStore

Expansion state, shared when a host drives two sides of one diff. Omit it and the plugin keeps a private store; pass one store to both split plugins and a toggle on either side moves both. See regions.ts — this is what holds §C7 together.


readonly optional side?: DiffGutterSide


readonly optional syntaxBackend?: DiffSyntaxBackend


readonly optional syntaxHighlight?: boolean