pub fn RegisterCommand(
SideCarIdentifier: String,
CommandIdentifier: String,
) -> ActionEffect<Arc<dyn CommandExecutor>, CommonError, ()>Expand description
Creates an effect that, when executed, will register a command that is implemented in a sidecar process like Cocoon.
This allows the host application (Mountain) to know about commands
contributed by extensions so they can be displayed in the command palette
and invoked correctly. The CommandExecutor implementation will typically
store this as a Proxied command handler.
§Parameters
SideCarIdentifier: The unique ID of the sidecar where the command logic resides.CommandIdentifier: The unique ID of the command itself (e.g., “MyExtension.DoSomething”).
§Returns
An ActionEffect that resolves to () on success.