mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-25 06:06:08 -05:00
Merge pull request #24262 from armanio123/FixObjectLiteralExpression
Fix issue with formatting object literal csharp style
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user