-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Support custom switch-case indentation #179670
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
1c1590a
to
441ecd5
Compare
extensions/typescript-language-features/src/languageFeatures/fileConfigurationManager.ts
Show resolved
Hide resolved
@@ -39,6 +39,7 @@ | |||
"format.semicolons.ignore": "Don't insert or remove any semicolons.", | |||
"format.semicolons.insert": "Insert semicolons at statement ends.", | |||
"format.semicolons.remove": "Remove unnecessary semicolons.", | |||
"format.indentSwitchCase": "Indent case clauses in switch statements.", |
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.
@mjbvz should individual formatter preferences indicate what TS version they require? I’m realizing now I didn’t do that on format.semicolons
back when I added that.
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.
Yes we should call this out. See some of the other setting strings for an example of this
5c88cf7
to
39fc097
Compare
39fc097
to
e546d1d
Compare
e546d1d
to
3c97bab
Compare
@@ -39,6 +39,7 @@ | |||
"format.semicolons.ignore": "Don't insert or remove any semicolons.", | |||
"format.semicolons.insert": "Insert semicolons at statement ends.", | |||
"format.semicolons.remove": "Remove unnecessary semicolons.", | |||
"format.indentSwitchCase": "Indent case clauses in switch statements.", |
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.
Yes we should call this out. See some of the other setting strings for an example of this
This PR correlates closely with microsoft/TypeScript#53733 due to API change.
Don't merge before microsoft/TypeScript#53733 gets merged. It won't work until the typescript version in vscode is upgraded.Closes #180239, microsoft/TypeScript#18682