Theia API Documentation v1.75.0
    Preparing search index...
    Index

    Constructors

    Properties

    _entries: HistoryGraphEntry[] = []
    _hasAttemptedLoad: boolean = false
    _hasMore: boolean = false
    _historyItemRefFilter: undefined | string[]

    Explicitly picked ref ids to filter the graph by; undefined = auto (current/remote/base).

    _loading: boolean = false
    _provider: undefined | ScmHistoryProvider
    _viewMode: ScmHistoryViewMode = 'list'
    cancelSource: CancellationTokenSource = ...
    logger: ILogger
    onDidChange: Event<void> = ...
    onDidChangeEmitter: Emitter<void> = ...
    onDidRequestReveal: Event<number> = ...

    Fired with the index of an entry the view should scroll to and select.

    onDidRequestRevealEmitter: Emitter<number> = ...
    scmPreferences: ScmPreferences
    scmService: ScmService
    toDispose: DisposableCollection = ...
    toDisposeOnProviderChange: DisposableCollection = ...

    Accessors

    • get hasAttemptedLoad(): boolean

      Returns true once the model has completed at least one load attempt (regardless of whether history items were found). This is used by the widget to distinguish "still initializing" from "no history".

      Returns boolean

    Methods

    • Returns the refs to pass to provideHistoryItems: the explicitly picked ref ids when a filter is active, otherwise (auto mode) the revisions of the current branch ref, its remote tracking ref, and the merge-base ref. Providers walk history starting from these refs.

      Returns string[]

    • Locates the commit the current history item ref points at, loading further pages while it is outside the loaded range, and asks the view to reveal it. Returns its index, or undefined when there is no current history item ref or the commit is not part of the graph (e.g. the ref is excluded by the filter).

      Returns Promise<undefined | number>

    • Sets the ref ids to filter the graph by (undefined returns to auto mode) and reloads the graph.

      Parameters

      • refIds: undefined | readonly string[]

      Returns void