Code Editor Out of Sync after using Sublime Text

It was only for notebook cells (and is now released in jlab 3.2.0): Normalize cell source \r line endings by jasongrout · Pull Request #11271 · jupyterlab/jupyterlab · GitHub

The code handling line endings for text files only handles \r\n line endings, not just plain \r line endings: https://github.com/jupyterlab/jupyterlab/blob/4169b7b684f6160b5a9ab093391ec531399dfa82/packages/docregistry/src/context.ts#L687-L694. I’ve opened an issue: Handle \r line endings in text files · Issue #11290 · jupyterlab/jupyterlab · GitHub

If you’d like to help fix it, it would be much appreciated!