TypeScript/tests/cases/fourslash/getEditsForFileRename_nodeModuleDirectoryCase.ts
ShuiRuTian 8293e517c0
fix rename cause import change wrongly (#38462)
* use canonical file name when resolve module

* renameSync in vfs supports same folder.

* Update src/harness/vfsUtil.ts

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>

* change tss rather than compiler.

* remove useless comment.

* use fileName rather than path.

Co-authored-by: Song Gao <song.gao@laserfiche.com>
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2020-06-18 08:31:30 -07:00

14 lines
273 B
TypeScript

/// <reference path='fourslash.ts' />
// @Filename: /a/b/file1.ts
////import { foo } from "foo";
// @Filename: /a/node_modules/foo/index.d.ts
////export const foo = 0;
verify.getEditsForFileRename({
oldPath: "/a/b",
newPath: "/a/B",
newFileContents: {},
});