2018-05-29 21:40:06 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /a/index.d.ts
|
|
|
|
// @Symlink: /b/node_modules/a/index.d.ts
|
|
|
|
// @Symlink: /c/node_modules/a/index.d.ts
|
|
|
|
////export const a: number;
|
|
|
|
|
|
|
|
// @Filename: /b/index.ts
|
|
|
|
// @Symlink: /c/node_modules/b/index.d.ts
|
|
|
|
////import { a } from 'a'
|
|
|
|
////export const b: number;
|
|
|
|
|
|
|
|
// @Filename: /c/a_user.ts
|
|
|
|
// Importing from "a" to get /c/node_modules/a in the project.
|
|
|
|
// Must do this in a separate file to avoid import fixes attempting to share the import.
|
|
|
|
////import { a } from "a";
|
|
|
|
|
|
|
|
// @Filename: /c/foo.ts
|
|
|
|
////[|import { b } from "b";
|
|
|
|
////a;|]
|
|
|
|
|
|
|
|
goTo.file("/c/foo.ts");
|
|
|
|
verify.importFixAtPosition([
|
2020-07-09 00:25:04 +02:00
|
|
|
`import { a } from "a";
|
|
|
|
import { b } from "b";
|
2018-05-29 21:40:06 +02:00
|
|
|
a;`,
|
|
|
|
]);
|