Skip to content

Use sys.newLine in transpile when possible#2640

Merged
mhegazy merged 1 commit into
masterfrom
systemDependentLineEndings
Apr 6, 2015
Merged

Use sys.newLine in transpile when possible#2640
mhegazy merged 1 commit into
masterfrom
systemDependentLineEndings

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Apr 6, 2015

Fixes #2614

Comment thread src/services/services.ts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compute this once by introducing compilerHostNewLine - also, can you declare compilerHost and program with let instead of var?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the emitter already does that. it is not called on every call to writeLine()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's more or less fine then.

@DanielRosenwasser
Copy link
Copy Markdown
Member

👍

mhegazy added a commit that referenced this pull request Apr 6, 2015
Use sys.newLine in transpile when possible
@mhegazy mhegazy merged commit cf86d3e into master Apr 6, 2015
@mhegazy mhegazy deleted the systemDependentLineEndings branch April 6, 2015 22:41
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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.

ts.transpile() outputs CRLF as EOL in any OS

3 participants