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>;


Implemented by


changed: ISignal<IRecentsManager, void>

Signal emitted when either of the list changes.

isDisposed: boolean

Test whether the object has been disposed.


This property is always safe to access.

recentlyClosed: RecentDocument[]

Get the recently closed items.

recentlyOpened: RecentDocument[]

Get the recently opened documents.


  • Dispose of the resources held by the object.


    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