(request: OpenWorkspaceRequest)
| 198 | |
| 199 | #[tauri::command] |
| 200 | pub async fn lsp_close_workspace(request: OpenWorkspaceRequest) -> Result<(), String> { |
| 201 | let workspace_path = PathBuf::from(&request.workspace_path); |
| 202 | close_workspace(workspace_path) |
| 203 | .await |
| 204 | .map_err(|e| format!("Failed to close workspace: {}", e))?; |
| 205 | |
| 206 | Ok(()) |
| 207 | } |
| 208 | |
| 209 | #[tauri::command] |
| 210 | pub async fn lsp_open_document(request: OpenDocumentRequest) -> Result<(), String> { |
nothing calls this directly
no test coverage detected