-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Change default newline + turn on forceConsistentCasingInFileNames #52336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| const newLine = getNewLineCharacter(options, () => system.newLine); | ||
| const newLine = getNewLineCharacter(options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you also need it in createCompilerHostFromProgramHost
Also if this doesnt have matching changes in services.ts, we might have issues with compileOnSave?
| }, | ||
| "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", | ||
| "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" | ||
| "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These now use \r\n? Isn't that the opposite of what's expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think thats because 'getNewLineCharacter` doesnt have changed default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the other PR was actually more on the right path given that you were catching other places where we weren't handling newlines correctly.
Yeah, I think the other PR was nearly there except the printer calls needed to use the correct function (then it should have been right afterwards). |
Retrying #52298 with a more minimal diff