Add support for `format_on_save` only changed lines (#49964)