lineSeparator option and history

Does the lineSeparator option affect the history of Codemirror?
If not could be implemented?
I would like the ability to undo the change of the line ending.

Nope, it doesn’t get stored as change history. And this is probably not something that’ll ever be supported.

Is there a workaround? The only thing I found is Custom entries in undo history.
Is that the only way, or today there is something less “hacky”?