A console history manager object.

Implements

Constructors

Properties

_cursor: number = 0
_editor: null | CodeEditor.IEditor = null
_filtered: string[] = []
_hasSession: boolean = false
_history: string[][] = []
_isDisposed: boolean = false
_kernel: undefined | null | IKernelConnection = null
_kernelSession: string = ''
_placeholder: string = ''
_requestBatchSize: number = 10

The number of history items to increase a batch size by per subsequent request.

_sessionContext: ISessionContext

The client session used to query history.

_setByHistory: boolean = false
_toRequest: number

The number of history items to request.

Translator to be used for warnings

Accessors

Methods

  • Fetches a subsequent batch of history. Updates the filtered history and cursor to correct place in history, accounting for potentially new history items above it.

    Returns Promise<void>

  • Populate the history collection on history reply from a kernel.

    Parameters

    • value: IHistoryReplyMsg

      The kernel message history reply.

      Notes

      History entries have the shape: [session: number, line: number, input: string] Contiguous duplicates are stripped out of the API response.

    • Optional cell: Cell<ICellModel>

    Returns void

  • Set the filter data.

    Parameters

    • filterStr: string = ''

      The string to use when filtering the data.

    Returns void