detect_line_ending

Function detect_line_ending 

Source
fn detect_line_ending(s: &str) -> &'static str
Expand description

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.