Skip to content

Commit 755be4a

Browse files
feat(Common/IPC): Add ExtHostDebug proxy target
Added `ExtHostDebug` variant to the `ProxyTarget` enum in the Common crate's IPC DTO module. This change extends the RPC proxy targets to support the debug extension host capability, which is a prerequisite for implementing the debug API in the `Cocoon` sidecar and `Mountain` backend. The `ProxyTarget` enum is used by the `Track` dispatcher in `Mountain` to route RPC calls and by `Cocoon` to register its capabilities. This addition enables the debug extension host to be integrated into the existing RPC system (`Vine` gRPC layer), supporting the debugging workflow implementation. The `GetTargetPrefix()` method will now generate appropriate RPC method prefixes (e.g., `ExtHostDebug$MethodName`) for debug-related operations. This aligns with Land's architecture where Common defines the abstract IPC contracts that both Mountain (Rust backend) and Cocoon (TypeScript extension host) implement, enabling type-safe communication through the Vine IPC layer.
1 parent 6a7d2f5 commit 755be4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/IPC/DTO/ProxyTarget.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,13 @@ pub enum ProxyTarget {
115115
ExtHostSourceControlManagement,
116116

117117
ExtHostTesting,
118+
119+
ExtHostDebug,
118120
}
119121

120122
impl ProxyTarget {
121123
/// Returns a string prefix representing the target, used in constructing
122-
/// fully qualified RPC method names (e.g.,
124+
/// fully qualified RPC method names (e.g.
123125
/// `MainThreadCommands$ExecuteCommand`).
124126
pub fn GetTargetPrefix(&self) -> String { format!("{:?}", self) }
125127
}

0 commit comments

Comments
 (0)