b834096998
* Fix #37948 * Fix formatter skipping tab/space fixup on comments, handle trailing commas in list closing line count. Fixes #37944 * Add newline between imports and main body of new file in moveToNewFile Fixes #37941 * Update baseline (probably broken before?)
30 lines
452 B
TypeScript
30 lines
452 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a.ts
|
|
////export {}; // make this a module
|
|
////const a = 0, b = 0;
|
|
////[|const x = 0;
|
|
////a;
|
|
////const y = 1;
|
|
////b;|]
|
|
////x; y;
|
|
|
|
verify.moveToNewFile({
|
|
newFileContents: {
|
|
"/a.ts":
|
|
`import { x, y } from "./x";
|
|
|
|
export {}; // make this a module
|
|
export const a = 0, b = 0;
|
|
x; y;`,
|
|
|
|
"/x.ts":
|
|
`import { a, b } from "./a";
|
|
|
|
export const x = 0;
|
|
a;
|
|
export const y = 1;
|
|
b;
|
|
`,
|
|
},
|
|
});
|