pub async fn confirm_file_write_with_ide(
path: &str,
old_content: Option<&str>,
new_content: &str,
ide_client: Option<&IdeClient>,
) -> ConfirmationResultExpand description
Confirm file write with IDE integration
When an IDE client is connected, this shows BOTH:
- The diff in the IDE’s native diff viewer
- A terminal menu for confirmation
The user can respond from either place - first response wins.
§Arguments
path- Path to the file being modifiedold_content- Current file content (None for new files)new_content- Proposed new contentide_client- Optional IDE client for native diff viewing
§Returns
A ConfirmationResult indicating the user’s decision