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
543 B
TypeScript
34 lines
543 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// This fourslash file is indented with tabs.
|
|
|
|
// @Filename: /a.ts
|
|
//// [|export class Foo {
|
|
//// constructor(
|
|
//// public readonly a: number,
|
|
////
|
|
//// /**
|
|
//// * Docs!
|
|
//// */
|
|
//// public readonly b: number,
|
|
//// ) { }
|
|
//// }|]
|
|
|
|
format.setOption("convertTabsToSpaces", false);
|
|
verify.moveToNewFile({
|
|
newFileContents: {
|
|
"/a.ts": "",
|
|
"/Foo.ts":
|
|
`export class Foo {
|
|
constructor(
|
|
public readonly a: number,
|
|
|
|
/**
|
|
* Docs!
|
|
*/
|
|
public readonly b: number
|
|
) { }
|
|
}
|
|
`
|
|
}
|
|
});
|