d671c7ae96
* getEditsForFileRename: Support directory rename * Code review * Handle imports inside the new file/directory * Document path updaters * Shorten relative paths where possible * Reduce duplicate code * Rewrite, use moduleSpecifiers.ts to get module specifiers from scratch instead of updating relative paths * Update additional tsconfig.json fields * Add test with '.js' extension * Handle case-insensitive paths * Better tsconfig handling * Handle properties inside compilerOptions * Use getOptionFromName
14 lines
275 B
TypeScript
14 lines
275 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a/b/file1.ts
|
|
////import { foo } from "foo";
|
|
|
|
// @Filename: /a/b/node_modules/foo/index.d.ts
|
|
////export const foo = 0;
|
|
|
|
verify.getEditsForFileRename({
|
|
oldPath: "/a/b",
|
|
newPath: "/a/d",
|
|
newFileContents: {},
|
|
});
|