-
Notifications
You must be signed in to change notification settings - Fork 12.8k
getEditsForFileRename missing change #25327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The following test passes: /// <reference path='fourslash.ts' />
// @Filename: /Folder2/file1.ts
////import "./file1";
////export const cd = 1;
// @Filename: /Folder2/file2.ts
////import { cd } from "./file1";
////const d = cd;
// @Filename: /tsconfig.json
////{
//// "compilerOptions": {
//// "module": "commonjs",
//// "target": "es6",
//// "lib": ["es6"],
//// "sourceMap": true
//// },
//// "exclude": [
//// "node_modules"
//// ],
//// "files": [
//// "../NewFolder9/app9.ts",
//// "../NewFolder9/TypeScript2.ts"
//// ]
////}
verify.getEditsForFileRename({
oldPath: "/Folder2/file2.ts",
newPath: "/Folder1/file2.ts",
newFileContents: {
"/Folder2/file2.ts":
`import { cd } from "../Folder2/file1";
const d = cd;`,
},
}); Maybe you pasted the wrong |
On second thought, maybe this is an error that would only come up in a session with multiple projects. So we should fix #25420 before investigating further. |
Sorry, I forgot to rename the tsconfig entries when I simplified my repro. |
@mjbvz Testing this again and I don't see |
FWIW, my repro was in VS. |
@amcasey Could you try to get a |
Should be no problem. |
Actually, this looks like the same cause as #25536. The |
Uh oh!
There was an error while loading. Please reload this page.
Repro
Folder1/tsconfig.json
Folder2/file1.ts
Folder2/file2.ts
Move file2.ts from Folder2 to Folder1.
Expected: tsconfig and file2 are updated
Actual: only tsconfig is updated
The text was updated successfully, but these errors were encountered: