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?)
34 lines
591 B
TypeScript
34 lines
591 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a.ts
|
|
////// header comment
|
|
////
|
|
////import './foo';
|
|
////import { a, b, alreadyUnused } from './other';
|
|
////const p = 0;
|
|
////[|const y: Date = p + b;|]
|
|
////a; y;
|
|
|
|
verify.moveToNewFile({
|
|
newFileContents: {
|
|
"/a.ts":
|
|
`// header comment
|
|
|
|
import './foo';
|
|
import { a, alreadyUnused } from './other';
|
|
import { y } from './y';
|
|
export const p = 0;
|
|
a; y;`,
|
|
|
|
"/y.ts":
|
|
`import { b } from './other';
|
|
import { p } from './a';
|
|
|
|
export const y: Date = p + b;
|
|
`,
|
|
},
|
|
|
|
preferences: {
|
|
quotePreference: "single",
|
|
}
|
|
});
|