TypeScript/tests/cases/fourslash/importNameCodeFix_all2.ts
Andrew Branch 03c79d7422
Insert auto-imports in sorted order (#39394)
* Sort auto-imports

* Avoid re-checking sort all the time

* Add comment
2020-07-08 15:25:04 -07:00

24 lines
457 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: /path.ts
////export declare function join(): void;
// @Filename: /os.ts
////export declare function homedir(): void;
// @Filename: /index.ts
////
////join();
////homedir();
goTo.file("/index.ts");
verify.codeFixAll({
fixId: "fixMissingImport",
fixAllDescription: "Add all missing imports",
newFileContent: `import { homedir } from "./os";
import { join } from "./path";
join();
homedir();`
});