HistoryManager Extended

History manager for remembering which projects have been opened.

An instance of this class is always available as the atom.history global.

The project history is used to enable the ‘Reopen Project’ menu.

Methods

::getProjects()

Obtain a list of previously opened projects.

Return values

Returns an Array of HistoryProject objects, most recent first.

::clearProjects()

Clear all projects from the history.

Note: This is not a privacy function - other traces will still exist, e.g. window state.

Return a Promise that resolves when the history has been successfully cleared.

::onDidChangeProjects(callback)

Invoke the given callback when the list of projects changes.

Argument Description

callback

Function

Return values

Returns a Disposable on which .dispose() can be called to unsubscribe.