2018-07-04 00:19:15 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////export default function ad() {}
|
|
|
|
////export const a0 = 0;
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////export default function bd() {}
|
|
|
|
////export const b0 = 0;
|
|
|
|
|
|
|
|
// @Filename: /c.ts
|
|
|
|
////export default function cd() {}
|
|
|
|
////export const c0 = 0;
|
|
|
|
|
|
|
|
// @Filename: /d.ts
|
|
|
|
////export default function dd() {}
|
|
|
|
////export const d0 = 0;
|
|
|
|
////export const d1 = 1;
|
|
|
|
|
|
|
|
// @Filename: /e.d.ts
|
|
|
|
////declare function e(): void;
|
|
|
|
////export = e;
|
|
|
|
|
|
|
|
// @Filename: /user.ts
|
|
|
|
////import * as b from "./b";
|
|
|
|
////import { } from "./c";
|
|
|
|
////import dd from "./d";
|
|
|
|
////
|
|
|
|
////ad; ad; a0; a0;
|
|
|
|
////bd; bd; b0; b0;
|
|
|
|
////cd; cd; c0; c0;
|
|
|
|
////dd; dd; d0; d0; d1; d1;
|
|
|
|
////e; e;
|
|
|
|
|
|
|
|
goTo.file("/user.ts");
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "fixMissingImport",
|
|
|
|
fixAllDescription: "Add all missing imports",
|
|
|
|
newFileContent:
|
|
|
|
`import bd, * as b from "./b";
|
|
|
|
import cd, { c0 } from "./c";
|
|
|
|
import dd, { d0, d1 } from "./d";
|
|
|
|
import ad, { a0 } from "./a";
|
2018-08-28 22:04:11 +02:00
|
|
|
import e = require("./e");
|
2018-07-04 00:19:15 +02:00
|
|
|
|
|
|
|
ad; ad; a0; a0;
|
|
|
|
bd; bd; b.b0; b.b0;
|
|
|
|
cd; cd; c0; c0;
|
|
|
|
dd; dd; d0; d0; d1; d1;
|
|
|
|
e; e;`,
|
|
|
|
});
|