pub fn CommandRegister(
ApplicationHandle: &AppHandle,
AppState: &Arc<ApplicationState>,
) -> Result<(), String>Expand description
Registers all native commands with the Tauri application.
§Arguments
ApplicationHandle- The Tauri application handleAppState- The application state structure
§Returns
A Result indicating success or failure.
§Registered Commands
This function delegates to Command::Bootstrap::RegisterNativeCommands
which registers all native commands for frontend communication:
- TreeView commands (GetTreeViewChildren)
- Language features (ProvideHover, ProvideCompletions, ProvideDefinition, ProvideReferences)
- Source Control Management commands
- Keybinding commands
- UI request dispatchers (DispatchFrontendCommand, ResolveUIRequest)
§Errors
Returns an error if command registration fails.