(&mut self, file_path: &str)
| 251 | } |
| 252 | |
| 253 | pub async fn format_code(&mut self, file_path: &str) -> Result<String> { |
| 254 | if !self.initialized { |
| 255 | return Err(anyhow::anyhow!("Client not initialized")); |
| 256 | } |
| 257 | |
| 258 | let params = create_formatting_params(file_path); |
| 259 | let response = self |
| 260 | .send_request_internal("textDocument/formatting", params) |
| 261 | .await?; |
| 262 | |
| 263 | Ok(format!("Formatting response: {response}")) |
| 264 | } |
| 265 | |
| 266 | pub async fn analyze_manifest(&mut self, manifest_path: &str) -> Result<String> { |
| 267 | // This would analyze Cargo.toml file |
no test coverage detected