Hierarchy (view full)

Constructors

  • Constructs a new inline DiffView instance.

    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.

    • Optional container: HTMLElement

      optional container element for the DiffView.

    Returns InlineDiffView

Properties

$syncingFold: boolean
$updatingSelection: boolean
activeEditor: any
chunks: DiffChunk[]
container: HTMLElement
currentDiffIndex: number
cursorLayer: any
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
gutterLayer: any
inlineDiffEditor: boolean
markerA: DiffHighlight
markerB: DiffHighlight
markerLayer: any
onMouseDetach: (() => void)

Type declaration

    • (): void
    • Returns void

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

Type declaration

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

Methods

  • 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

  • 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