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: <H>” while the
SCM viewlet stays empty. Optional so callers without an external
handle (none currently) still work via Mountain-side allocation.
Trait Implementations§
Source§impl Clone for SourceControlCreateDTO
impl Clone for SourceControlCreateDTO
Source§fn clone(&self) -> SourceControlCreateDTO
fn clone(&self) -> SourceControlCreateDTO
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceControlCreateDTO
impl Debug for SourceControlCreateDTO
Source§impl<'de> Deserialize<'de> for SourceControlCreateDTO
impl<'de> Deserialize<'de> for SourceControlCreateDTO
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SourceControlCreateDTO
impl RefUnwindSafe for SourceControlCreateDTO
impl Send for SourceControlCreateDTO
impl Sync for SourceControlCreateDTO
impl Unpin for SourceControlCreateDTO
impl UnsafeUnpin for SourceControlCreateDTO
impl UnwindSafe for SourceControlCreateDTO
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more