Skip to content

Support TS custom switch-case indentation #180239

Closed

Description

@mjbvz

Support issue for #179670

See microsoft/TypeScript#53733 for details

Activity

  1. mjbvz commented on Apr 18, 2023

    @mjbvz
    ContributorAuthor

    Fixed by #179670

  2. added
    feature-request
    typescript
    javascript
    verification-needed
    on Apr 18, 2023
  3. mjbvz commented on Apr 24, 2023

    @mjbvz
    ContributorAuthor

    To verify:

    1. npm install typescript@next in the workspace
    2. Switch the workspace to use that version
    3. Create a simple switch case statement
    4. Confirm that by default, case clauses have an extra indent when formatted:
    switch ('') {
        case '': break;
    }
    1. Set "typescript.format.indentSwitchCase": false
    2. Now confirm that formatting changes the code to remove the extra indent:
    switch ('') {
    case '': break;
    }
  4. added
    author-verification-requested
    and removed
    author-verification-requested
    on Apr 24, 2023
  5. locked and limited conversation to collaborators on Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestjavascripttypescriptverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions