* 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>
32 lines
408 B
TypeScript
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>
|
|
)
|
|
`);
|