(&self, file_path: String, write: bool)
| 576 | } |
| 577 | |
| 578 | pub async fn do_lsp_touch_file(&self, file_path: String, write: bool) -> Result<(), ToolError> { |
| 579 | if let Some(ref callback) = self.lsp_touch_file { |
| 580 | callback(file_path, write).await |
| 581 | } else { |
| 582 | Ok(()) |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | pub fn with_todo_update<F, Fut>(mut self, callback: F) -> Self |
| 587 | where |