fn detect_line_ending(s: &str) -> &'static str
The file’s line ending, from the first line break (what VS Code does). Using “any CRLF present” would flag a mostly-LF file as CRLF and convert all its LF lines on save.