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?)
46 lines
871 B
TypeScript
46 lines
871 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @Filename: /a.ts
|
|
//// [|class Foo {
|
|
////
|
|
//// constructor() {
|
|
//// }
|
|
////
|
|
//// public runCommand(): void {
|
|
//// let focusedEditor = 1;
|
|
//// // Only if editor text focus (i.e. not if editor has widget focus).
|
|
//// if (focusedEditor) {
|
|
//// return;
|
|
//// }
|
|
//// }
|
|
////
|
|
//// public run(): void { }
|
|
//// }|]
|
|
//// export const a = new Foo();
|
|
|
|
verify.moveToNewFile({
|
|
newFileContents: {
|
|
"/a.ts":
|
|
`import { Foo } from "./Foo";
|
|
|
|
export const a = new Foo();`,
|
|
"/Foo.ts":
|
|
`export class Foo {
|
|
|
|
constructor() {
|
|
}
|
|
|
|
public runCommand(): void {
|
|
let focusedEditor = 1;
|
|
// Only if editor text focus (i.e. not if editor has widget focus).
|
|
if (focusedEditor) {
|
|
return;
|
|
}
|
|
}
|
|
|
|
public run(): void { }
|
|
}
|
|
`
|
|
}
|
|
});
|