Interface IRecentsManager

Recent opened items manager.

interface IRecentsManager {
    changed: ISignal<IRecentsManager, void>;
    isDisposed: boolean;
    recentlyClosed: RecentDocument[];
    recentlyOpened: RecentDocument[];
    addRecent(document, event): void;
    dispose(): void;
    removeRecent(document, event): void;
    validate(recent): Promise<boolean>;
}

Hierarchy

Implemented by

Properties

changed: ISignal<IRecentsManager, void>

Signal emitted when either of the list changes.

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

recentlyClosed: RecentDocument[]

Get the recently closed items.

recentlyOpened: RecentDocument[]

Get the recently opened documents.

Methods

  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void