Skip to main content

Module RegisterScmResourceGroup

Module RegisterScmResourceGroup 

Source
Expand description

Cocoon → Mountain register_scm_resource_group notification.

Pairs with RegisterScmProvider: an SCM provider creates one or more resource groups (Git’s “Changes”, “Staged Changes”, “Merge Changes”). Cocoon emits this from ScmNamespace.ts:42 whenever sourceControl.createResourceGroup(id, label) is called by an extension. Wire payload:

{ scm_handle, group_handle, group_id, label }

The renderer SCM view subscribes to sky://scm/registerGroup to materialise the group header row; the typed SourceControlManagementProvider::UpdateSourceControlGroup trait seeds the group with an empty resourceStates list so the state-tracking path is also primed for the first update_scm_group that follows.

Functions§

RegisterScmResourceGroup