Skip to content

Should the extension change line feeds on compilation? #1495

Discussion options

You must be logged in to vote

The Atelier API that our extensions use to talk to the server works with documents as an array of lines, so there are no line separators. When building an array of lines to send to the server, our extensions are tolerant of both CRLF and LF. However, when receiving a file from the server and showing it in VS Code (or writing to a file system) we always use LF. I think your .gitattributes approach is the right approach to keep things normalized in your source control repository. I will open a request to get this added to our documentation.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ColinBroughNHS
Comment options

Comment options

You must be logged in to vote
1 reply
@ColinBroughNHS
Comment options

Answer selected by ColinBroughNHS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants