36f7623225
* Refactored scanJsxToken when is formatting * Added bug regression test * Simplify JsxText formatting * Renamed isFormatting to allowMultilineJsxText * Updated baselines
79 lines
No EOL
1 KiB
TypeScript
79 lines
No EOL
1 KiB
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//@Filename: file.tsx
|
|
//// const a = (
|
|
//// <div>
|
|
//// foo
|
|
//// </div>
|
|
//// );
|
|
////
|
|
//// const b = (
|
|
//// <div>
|
|
//// { foo }
|
|
//// </div>
|
|
//// );
|
|
////
|
|
//// const c = (
|
|
//// <div>
|
|
//// foo
|
|
//// { foobar }
|
|
//// bar
|
|
//// </div>
|
|
//// );
|
|
////
|
|
//// const d =
|
|
//// <div>
|
|
//// foo
|
|
//// </div>;
|
|
////
|
|
//// const e =
|
|
//// <div>
|
|
//// { foo }
|
|
//// </div>
|
|
////
|
|
//// const f =
|
|
//// <div>
|
|
//// foo
|
|
//// { foobar }
|
|
//// bar
|
|
//// </div>
|
|
|
|
format.document();
|
|
|
|
verify.currentFileContentIs(
|
|
`const a = (
|
|
<div>
|
|
foo
|
|
</div>
|
|
);
|
|
|
|
const b = (
|
|
<div>
|
|
{foo}
|
|
</div>
|
|
);
|
|
|
|
const c = (
|
|
<div>
|
|
foo
|
|
{foobar}
|
|
bar
|
|
</div>
|
|
);
|
|
|
|
const d =
|
|
<div>
|
|
foo
|
|
</div>;
|
|
|
|
const e =
|
|
<div>
|
|
{foo}
|
|
</div>
|
|
|
|
const f =
|
|
<div>
|
|
foo
|
|
{foobar}
|
|
bar
|
|
</div>`); |