Hierarchy (view full)

Constructors

  • Constructs a new base DiffView instance.

    Parameters

    • Optional inlineDiffEditor: boolean

      Whether to use an inline diff editor.

    • Optional container: HTMLElement

      optional container element for the DiffView.

    Returns BaseDiffView

Properties

$syncingFold: boolean
$updatingSelection: boolean
activeEditor: any
chunks: DiffChunk[]
container: HTMLElement
currentDiffIndex: number
diffProvider: {
    compute: ((val1, val2, options) => any[]);
}

Type declaration

  • compute: ((val1, val2, options) => any[])
      • (val1, val2, options): any[]
      • Parameters

        • val1: any
        • val2: any
        • options: any

        Returns any[]

diffSession: {
    chunks: DiffChunk[];
    sessionA: EditSession;
    sessionB: EditSession;
}

@type{{sessionA: EditSession, sessionB: EditSession, chunks: DiffChunk[]}}

Type declaration

  • chunks: DiffChunk[]
  • sessionA: EditSession
  • sessionB: EditSession
editorA: any
editorB: any
gutterDecoratorA: MinimalGutterDiffDecorator
gutterDecoratorB: MinimalGutterDiffDecorator
inlineDiffEditor: boolean
markerA: DiffHighlight
markerB: DiffHighlight
options: {
    ignoreTrimWhitespace: boolean;
    maxComputationTimeMs: number;
    syncSelections: boolean;
}

Type declaration

  • ignoreTrimWhitespace: boolean
  • maxComputationTimeMs: number
  • syncSelections: boolean
otherEditor: any
otherSession: EditSession
realignPending: boolean
savedOptionsA: Partial<EditorOptions>
savedOptionsB: Partial<EditorOptions>
selectionRangeA: any
selectionRangeB: any
sessionA: EditSession
sessionB: EditSession
showSideA: boolean
syncSelectionMarkerA: SyncSelectionMarker
syncSelectionMarkerB: SyncSelectionMarker

Methods

  • Parameters

    • fromEditSession: EditSession
    • toEditSession: EditSession
    • fromLine: number
    • toLine: number

    Returns number

  • Parameters

    • Optional diffModel: {
          editorA: Editor;
          editorB: Editor;
          sessionA: EditSession;
          sessionB: EditSession;
          showSideA: boolean;
          valueA: string;
          valueB: string;
      }

      The model for the diff view.

      • editorA: Editor

        The editor for the original view.

      • editorB: Editor

        The editor for the edited view.

      • sessionA: EditSession

        The edit session for the original view.

      • sessionB: EditSession

        The edit session for the edited view.

      • showSideA: boolean

        Whether to show the original view or modified view.

      • valueA: string

        The original content.

      • valueB: string

        The modified content.

    Returns void

  • Returns {
        chunks: DiffChunk[];
        sessionA: EditSession;
        sessionB: EditSession;
    }

    • chunks: DiffChunk[]
    • sessionA: EditSession
    • sessionB: EditSession
  • Parameters

    • options: {
          foldUnchanged: boolean;
          ignoreTrimWhitespace: boolean;
          maxComputationTimeMs: number;
          syncSelections: boolean;
      }

      The configuration options for the DiffView.

      • foldUnchanged: boolean

        Whether to fold unchanged regions in the diff view.

      • ignoreTrimWhitespace: boolean

        Whether to ignore whitespace changes when computing diffs.

      • maxComputationTimeMs: number

        The maximum time in milliseconds to spend computing diffs (0 means no limit).

      • syncSelections: boolean

        Whether to synchronize selections between the original and edited views.

    Returns void

Generated using TypeDoc