9c9f3e3cf9
* 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
18 lines
349 B
TypeScript
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;`,
|
|
]);
|