Skip to content

Commit

Permalink
docs: add documentation for diff truncation options
Browse files Browse the repository at this point in the history
  • Loading branch information
willieho committed Apr 4, 2024
1 parent 244e75f commit aa28ecf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2031,6 +2031,28 @@ export default defineConfig({
```
:::

#### diff.truncateThreshold

- **Type**: `number`
- **Default**: `0`

The maximum length of diff result to be displayed. Diffs above this threshold will be truncated.
Truncation won't take effect with default value 0.

#### diff.truncateAnnotation

- **Type**: `string`
- **Default**: `'... Diff result is truncated'`

Annotation that is output at the end of diff result if it's truncated.

#### diff.truncateAnnotationColor

- **Type**: `DiffOptionsColor = (arg: string) => string`
- **Default**: `noColor = (string: string): string => string`

Color of truncate annotation, default is output with no color.

### fakeTimers

- **Type:** `FakeTimerInstallOpts`
Expand Down

0 comments on commit aa28ecf

Please sign in to comment.