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
Hey, I think i've run into a bug with how monaco handles CR LF characters. If you use the below script in the monaco playground you can see that applying \r\n as two separate edits causes the editor to display 2 lines rather than 1. If you apply \r\n in a single edit then this isn't a problem.
monaco-editor version: playground Browser: firefox OS: windows 10
This is as designed. By design, we do not allow a file to be in a mixed line ending situation. Therefore, if the model is configured to have \r\n\ as EOL sequence, when you insert \r, it will be "fixed" to \r\n. Also, when you insert \n, it will be "fixed" to \n.
There are some people who would still want mixed line endings in their files 🤷♂ ... Let's track that at microsoft/vscode#127
Hey, I think i've run into a bug with how monaco handles CR LF characters. If you use the below script in the monaco playground you can see that applying
\r\n
as two separate edits causes the editor to display 2 lines rather than 1. If you apply\r\n
in a single edit then this isn't a problem.monaco-editor version: playground
Browser: firefox
OS: windows 10
Steps or JS usage snippet reproducing the issue:
The text was updated successfully, but these errors were encountered: