TypeScript/tests/cases/fourslash/importNameCodeFix_symlink_own_package_2.ts
Andy 9c9f3e3cf9
importFixes: When one file redirects to another, consider both for global import specifiers (#25834)
* importFixes: When one file redirects to another, consider both for global import specifiers

* Add test for #26044

* Avoid a symlinked package globally importing itself (fixes another case of #26044)

* Compare to node_modules with getCanonicalFileName
2018-07-31 17:28:56 -07:00

18 lines
349 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: /packages/a/test.ts
// @Symlink: /node_modules/a/test.ts
////x;
// @Filename: /packages/a/utils.ts
// @Symlink: /node_modules/a/utils.ts
////import {} from "a/utils";
////export const x = 0;
goTo.file("/packages/a/test.ts");
verify.importFixAtPosition([
`import { x } from "./utils";
x;`,
]);