TypeScript/tests/cases/fourslash/formatTsxClosingAfterJsxText.ts
Orta 7726464abd
De-duplicate indentations in JSX Texts (#36552)
* WIP on making the JSX text node not include whitespace

* Scans to the last newline for JSX correctly

* Handle JSX closing element wrapping

* Offload all jsx text indentation handling to indentMultilineCommentOrJsxText

* Switch from find node -> find inde in formatting

Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-02-03 17:09:50 -05:00

32 lines
408 B
TypeScript

/// <reference path="fourslash.ts"/>
// @Filename: foo.tsx
////
////const a = (
//// <div>
//// text
//// </div>
////)
////const b = (
//// <div>
//// text
//// twice
//// </div>
////)
////
format.document();
verify.currentFileContentIs(`
const a = (
<div>
text
</div>
)
const b = (
<div>
text
twice
</div>
)
`);