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
If an IDE client is connected, the diff will be shown in the IDE’s native diff viewer. Otherwise, falls back to terminal diff display.
§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