Skip to content
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

async function in object wrong indentation #1573

Closed
llwslc opened this issue Oct 12, 2018 · 1 comment · Fixed by HookyQR/VSCodeBeautify#275
Closed

async function in object wrong indentation #1573

llwslc opened this issue Oct 12, 2018 · 1 comment · Fixed by HookyQR/VSCodeBeautify#275

Comments

@llwslc
Copy link

llwslc commented Oct 12, 2018

Description

async function in object wrong indentation

Input

The code looked like this before beautification:

{
  foo: async function() {
    //null 
  },
  bar: async function() {
    //null 
  },
  baz: async function() {
    //null 
  },
  qux: async function() {
    //null 
  },
}

Expected Output

The code should have looked like this after beautification:

{
  foo: async function() {
    //null 
  },
  bar: async function() {
    //null 
  },
  baz: async function() {
    //null 
  },
  qux: async function() {
    //null 
  },
}

Actual Output

The code actually looked like this after beautification:

{
  foo: async function() {
      //null 
    },
    bar: async function() {
        //null 
      },
      baz: async function() {
          //null 
        },
        qux: async function() {
          //null 
        },
}

Settings

Default

@bitwiseman
Copy link
Member

bitwiseman commented Oct 12, 2018

@llwslc
Ouch. Thanks for the bug report. This issues started after 1.7.5 but has been in all 1.8.x releases.

@bitwiseman bitwiseman added this to the v1.8.x milestone Oct 12, 2018
@bitwiseman bitwiseman changed the title async funcion in object wrong indentation async function in object wrong indentation Oct 12, 2018
bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Oct 13, 2018
@bitwiseman bitwiseman modified the milestones: v1.8.x, v1.8.8 Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants