Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Find active editor through atom on save #42

Merged
merged 4 commits into from
Mar 30, 2017
Merged

Find active editor through atom on save #42

merged 4 commits into from
Mar 30, 2017

Conversation

notnotdrew
Copy link
Member

@notnotdrew notnotdrew commented Mar 24, 2017

see learn-co/learn-ide#425

should be released with learn-ide@2.5.0

While working on this, I also discovered that line endings were causing trouble with save on Windows. Basically, we switch to LF from CRLF before sending a file to the server, and it is then sent back to the local disk in LF; however, the buffer still thinks it should be CRLF, so the file stays "dirty" (looks like it hasn't saved). This now updates the contents of the buffer before sending the file to the server, so that as soon as it gets back, the text buffer will recognize that it is in sync with the disk contents.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant