You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Handle user requested line ending preference here
I'm not 100% sure what is going on:
Client opens unix document. Document::new() sets LineIndex's endings to LineEnding::Lf
Formatting occurs on save. Formatter uses air.toml option and generates a formatted string output with Crlf endings (\r\n)
replace_all_edit() is called using the original line index and its original stored options, i.e. endings of Lf! A bunch of Indels are generated, with insertions of \r because that is the only difference. It does seem like we keep the \r all the way through this function and send it back to the frontend?