Skip to content

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

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Conversation

donaldnevermore
Copy link
Contributor

@donaldnevermore donaldnevermore commented Apr 11, 2023

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

@@ -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.",
Copy link
Member

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.

Copy link
Collaborator

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

@donaldnevermore donaldnevermore force-pushed the fix-indent branch 2 times, most recently from 5c88cf7 to 39fc097 Compare April 12, 2023 17:26
andrewbranch
andrewbranch previously approved these changes Apr 12, 2023
@mjbvz mjbvz added this to the April 2023 milestone Apr 18, 2023
@@ -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.",
Copy link
Collaborator

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

@mjbvz mjbvz enabled auto-merge (squash) April 18, 2023 17:18
@mjbvz mjbvz merged commit 7122771 into microsoft:main Apr 18, 2023
@donaldnevermore donaldnevermore deleted the fix-indent branch April 18, 2023 17:33
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2023
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.

Support TS custom switch-case indentation
4 participants