Merge pull request #24262 from armanio123/FixObjectLiteralExpression

Fix issue with formatting object literal csharp style
This commit is contained in:
Armando Aguirre
2018-05-22 12:39:14 -07:00
committed by GitHub
2 changed files with 24 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
/// <reference path='fourslash.ts'/>
//// var a =
//// {/*1*/}
////
//// var b = {
//// outer:
//// {/*2*/}
//// }
function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
goTo.marker(marker);
edit.insert("\n");
verify.indentationIs(indentation);
}
verifyIndentationAfterNewLine("1", 0);
verifyIndentationAfterNewLine("2", 4);