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

Wrong multiline parenthesis indent (JS) #181

Closed
alexanderby opened this issue Nov 19, 2015 · 2 comments
Closed

Wrong multiline parenthesis indent (JS) #181

alexanderby opened this issue Nov 19, 2015 · 2 comments

Comments

@alexanderby
Copy link

When formatting JavaScript the indent of right parenthesis (that is placed on different line) is too large.
This is expected to be

function (
    arg1,
    arg2
) {
    if (
        arg1
        && arg2
    ) {
        //...
    }
}

but actually is

function (
    arg1,
    arg2
    ) {
    if (
        arg1
        && arg2
        ) {
        //...
    }
}
@jrieken
Copy link
Member

jrieken commented Nov 24, 2015

This issue was moved to microsoft/TypeScript#5771

@jrieken jrieken closed this as completed Nov 24, 2015
@alexanderby
Copy link
Author

So, in version 0.10.6 (which uses TS1.7 language service) I can still reproduce this issue when editing JavaScript (not TypeScript). Please, re-open.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants