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

When an IDE client is connected, this shows BOTH:

  1. The diff in the IDE’s native diff viewer
  2. A terminal menu for confirmation

The user can respond from either place - first response wins.

§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