Should the extension change line feeds on compilation? #1495
-
Ensemble 2018.1 instances, doing client side development on Windows systems, with BitBucket Cloud as shared repo. After compilation via the extension the file has LF line endings (otherwise not modified). "Import" on its own does not impact the line ending, only compilation. Is this expected behaviour? Thanks! Colin |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What platform are your Ensemble 2018.1 instances running on? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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
andLF
. However, when receiving a file from the server and showing it in VS Code (or writing to a file system) we always useLF
. 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.