Source controlDiff
Viewer
Diff Viewer from the Source control package.
Loading DiffViewer…
Source code
Waiting for the preview before loading source files · 2 of 2
Properties
Public properties derived from the component’s TypeScript signature.
| Property | Type | Default |
|---|---|---|
diffOptional | GitFileDiff | null | — |
statusOptional | "added" | "deleted" | "modified" | "untracked" | — |
modeOptional | "split" | "unified" | — |
defaultModeOptional | "split" | "unified" | "unified" |
selectedHunkIdOptional | string | null | — |
defaultSelectedHunkIdOptional | string | null | null |
selectedLineIdOptional | string | null | — |
defaultSelectedLineIdOptional | string | null | null |
loadingOptional | boolean | false |
emptyLabelOptional | string | "Select a changed file to inspect its diff" |
onModeChangeOptional | ((mode: DiffViewerMode) => void) | — |
onSelectHunkOptional | ((hunk: GitDiffHunk) => void) | — |
onSelectLineOptional | ((selection: DiffLineSelection) => void) | — |
customizeOptional | UiCustomization | — |