Provides side-by-side and inline diff view capabilities for comparing code differences between two versions.
Supports visual highlighting of additions, deletions, and modifications with customizable diff providers
and rendering options. Includes features for synchronized scrolling, line number alignment, and
various diff computation algorithms.
Components:
InlineDiffView: Single editor view showing changes inline with markers
SplitDiffView: Side-by-side comparison view with two synchronized editors
DiffProvider: Configurable algorithms for computing differences
Usage:
constdiffView = createDiffView({ valueA:originalContent, valueB:modifiedContent, inline:false// or 'a'/'b' for inline view });
Diff extension
Provides side-by-side and inline diff view capabilities for comparing code differences between two versions. Supports visual highlighting of additions, deletions, and modifications with customizable diff providers and rendering options. Includes features for synchronized scrolling, line number alignment, and various diff computation algorithms.
Components:
InlineDiffView: Single editor view showing changes inline with markersSplitDiffView: Side-by-side comparison view with two synchronized editorsDiffProvider: Configurable algorithms for computing differencesUsage: