Skip to content

Fix issue with formatting object literal csharp style#24262

Merged
armanio123 merged 3 commits into
microsoft:masterfrom
armanio123:FixObjectLiteralExpression
May 22, 2018
Merged

Fix issue with formatting object literal csharp style#24262
armanio123 merged 3 commits into
microsoft:masterfrom
armanio123:FixObjectLiteralExpression

Conversation

@armanio123
Copy link
Copy Markdown
Contributor

Fixes feedback: https://developercommunity.visualstudio.com/content/problem/253676/js-and-ts-indentation-issue.html.

Current formatting:

var clear =
    {
        outerKey:
            {
                innerKey: 1
            }
    };

Expected formatting:

var clear =
{
    outerKey:
    {
        innerKey: 1
    }
};

@armanio123 armanio123 requested review from a user, billti and mhegazy May 18, 2018 23:39
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented May 19, 2018

How this different from #22849, and why is the fix in #22849 not sufficient?

i see it working for me locally...

screen

@armanio123
Copy link
Copy Markdown
Contributor Author

This is for fixing it during typing.

Before this fix:
before

After this fix:
after

Copy link
Copy Markdown
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test

@armanio123 armanio123 merged commit b5d882e into microsoft:master May 22, 2018
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented May 22, 2018

@armanio123 please port to release-2.9

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
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.

2 participants