registerWorkspaceTimelineProvider

Register a provider for the workspace timeline.

Multiple providers can be registered. In that case, providers are asked in parallel and the results are merged. A failing provider (rejected promise or exception) will not cause a failure of the whole operation.

To activate your extension when the Timeline view is shown, use the onView:timeline activation event.

Parameters

id

A unique identifier for this provider. It is passed to commands and used to filter the Timeline view. Registering two workspace timeline providers with the same id fails. A TimelineProvider registered by the same extension can use the same id, in which case both are shown as one source of the Timeline view.

label

A human-readable name for this provider, shown when filtering the Timeline view.

provider

A workspace timeline provider.