pub struct SourceControlCreateDTO {
pub ID: String,
pub Label: String,
pub RootUri: Url,
pub Handle: Option<u32>,
}Expand description
A serializable struct sent from the extension host (Cocoon) to the main
host (Mountain) when an extension calls vscode.scm.createSourceControl.
Fields§
§ID: StringThe unique identifier for this source control provider.
Label: StringThe human-readable label for this provider (e.g., “Git”).
RootUri: UrlThe root URI of the repository this provider is managing.
Handle: Option<u32>Caller-supplied provider handle. Cocoon uses a process-local
sequential allocator (NextProviderHandle() in ScmNamespace.ts)
and includes the same handle on every subsequent
register_scm_resource_group / update_scm_group /
unregister_scm_provider notification. When present, Mountain MUST
key its marker maps under this handle so group-update lookups
resolve - allocating a fresh handle here keys the
SourceControlManagementProviders map under a value Cocoon will
never reference, and every later update_scm_group warns
“Received group update for unknown provider handle:
Trait Implementations§
Source§impl Clone for SourceControlCreateDTO
impl Clone for SourceControlCreateDTO
Source§fn clone(&self) -> SourceControlCreateDTO
fn clone(&self) -> SourceControlCreateDTO
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more