MountainGetWorkbenchConfiguration

Function MountainGetWorkbenchConfiguration 

Source
pub async fn MountainGetWorkbenchConfiguration(
    ApplicationHandle: AppHandle,
    State: State<'_, Arc<ApplicationState>>,
) -> Result<Value, String>
Expand description

Provides the initial workbench configuration to the Sky frontend.

This command is called by the frontend during initialization to receive the sandbox configuration including workspace folders, settings, and other application state needed to bootstrap the UI.

§Arguments

  • ApplicationHandle - Tauri application handle for accessing system resources
  • State - Global application state containing workspace information

§Returns

Returns a JSON object containing the workbench configuration on success, or a string error message on failure.

§Errors

Returns an error string if:

  • Configuration construction fails (file system errors, JSON parsing)
  • State locking fails (concurrent access issues)