(
session_id: String,
state: State<'_, TerminalState>,
)
| 769 | |
| 770 | #[tauri::command] |
| 771 | pub async fn terminal_has_shell_integration( |
| 772 | session_id: String, |
| 773 | state: State<'_, TerminalState>, |
| 774 | ) -> Result<bool, String> { |
| 775 | if is_remote_session(&session_id).await { |
| 776 | return Ok(false); |
| 777 | } |
| 778 | |
| 779 | let api = state.get_or_init_api().await?; |
| 780 | Ok(api.has_shell_integration(&session_id).await) |
| 781 | } |
| 782 | |
| 783 | #[tauri::command] |
| 784 | pub async fn terminal_shutdown_all(state: State<'_, TerminalState>) -> Result<(), String> { |
nothing calls this directly
no test coverage detected