pub async fn validate_and_fix(
content: &str,
_file_path: &str,
_new_string: &str,
_original_content: &str,
) -> ValidateResultExpand description
Run all pre-write validations on the content in memory:
- Duplicate block detection
- Brace auto-fix
- HTML tag auto-fix
Returns a ValidateResult with the (possibly fixed) content.
The caller should write fixed_content to disk, then optionally call
post_edit_syntax_check for on-disk syntax validation.
content is the post-edit content (what would be written to disk).
original_content is the pre-edit content (for delta validation).