You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 075ebfa introduced the behavior of using the OS default for line endings in tsconfig.json. This is undesirable behavior for people who use a line ending different from the OS default. Until Atom supports configurable line endings, atom-typescript should read the line endings from the existing tsconfig.json file and use those.
The text was updated successfully, but these errors were encountered:
Any updates on this?
I need to be able to use both atom-typescript and tsc (the regular compiler),
and I can't get them to produce the same results because of the line ending difference :)
I wish to have just newlines:
"newLineCharacter": "\n",
but if I look at the output I see atom-typescript adds "^M" :
var langCodeToName = {};^M
I tried newLine compiler option:
"compilerOptions": {
"newLine": "CRLF"
http://json.schemastore.org/tsconfig
"newLine": {
"description": "Specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).",
"enum": [ "CRLF", "LF" ]
},
Ok, solved it by upgrading my tsc compiler to latest version, and now newLine: CRLF works,
and the two compilers produce the same output (they still have some minor discrepancies, but nothing some typecasts can't fix).
Still would be nice to support newLine in atom-typescript :)
Commit 075ebfa introduced the behavior of using the OS default for line endings in
tsconfig.json
. This is undesirable behavior for people who use a line ending different from the OS default. Until Atom supports configurable line endings, atom-typescript should read the line endings from the existingtsconfig.json
file and use those.The text was updated successfully, but these errors were encountered: