(
state: State<'_, AppState>,
startup_trace: State<'_, DesktopStartupTrace>,
)
| 1931 | |
| 1932 | #[tauri::command] |
| 1933 | pub async fn get_current_workspace( |
| 1934 | state: State<'_, AppState>, |
| 1935 | startup_trace: State<'_, DesktopStartupTrace>, |
| 1936 | ) -> Result<Option<WorkspaceInfoDto>, String> { |
| 1937 | let trace_started = Instant::now(); |
| 1938 | let workspace_service = &state.workspace_service; |
| 1939 | let result = Ok(workspace_service |
| 1940 | .get_current_workspace() |
| 1941 | .await |
| 1942 | .map(|info| WorkspaceInfoDto::from_workspace_info(&info))); |
| 1943 | startup_trace.record_tauri_command_elapsed("get_current_workspace", None, trace_started); |
| 1944 | result |
| 1945 | } |
| 1946 | |
| 1947 | #[tauri::command] |
| 1948 | pub async fn get_recent_workspaces( |
nothing calls this directly
no test coverage detected