Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed monaco-adapter to respect line endings #303

Merged
merged 1 commit into from
Jun 18, 2018
Merged

Changed monaco-adapter to respect line endings #303

merged 1 commit into from
Jun 18, 2018

Conversation

Cnidarias
Copy link
Contributor

@Cnidarias Cnidarias commented Jun 17, 2018

When monaco was not using '\n' as its line ending then the calculations for text positions where all incorrect which caused the creation of faulty TextOps

This simply uses the monaco.getModel().getEOF() to access the currently used line feed and calculate positions based on that.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 72.483% when pulling 11c2f36 on Cnidarias:master into 2c4bebf on firebase:master.

@mikelehen mikelehen merged commit 9e70ccd into FirebaseExtended:master Jun 18, 2018
@mikelehen
Copy link
Collaborator

Merged, thanks!

mfont-gh pushed a commit to mfont-gh/firepad that referenced this pull request Jun 3, 2019
…ions (FirebaseExtended#303)

When monaco was not using '\n' as its line ending then the calculations for text positions were all incorrect which caused the creation of faulty TextOps

This simply uses the monaco.getModel().getEOF() to access the currently used line feed and calculate positions based on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants