fix jsxelement formatting

This commit is contained in:
SaschaNaz
2015-08-16 17:27:23 +09:00
parent 7376e4845d
commit bcde56202e
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -428,6 +428,7 @@ namespace ts.formatting {
case SyntaxKind.ConditionalExpression:
case SyntaxKind.ArrayBindingPattern:
case SyntaxKind.ObjectBindingPattern:
case SyntaxKind.JsxElement:
return true;
}
return false;
@@ -0,0 +1,19 @@
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
////function () {
//// return (
//// <div className="commentBox" >
////Hello, World!/*autoformat*/
/////*indent*/
//// </div>
//// )
////}
////
format.document();
goTo.marker("autoformat");
verify.currentLineContentIs(' Hello, World!');
goTo.marker("indent");
verify.indentationIs(12);