confirm_file_write_with_ide

Function confirm_file_write_with_ide 

Source
pub async fn confirm_file_write_with_ide(
    path: &str,
    old_content: Option<&str>,
    new_content: &str,
    ide_client: Option<&IdeClient>,
) -> ConfirmationResult
Expand 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 modified
  • old_content - Current file content (None for new files)
  • new_content - Proposed new content
  • ide_client - Optional IDE client for native diff viewing

§Returns

A ConfirmationResult indicating the user’s decision