Handling statements from a known source file (#58679)

This commit is contained in:
navya9singh
2024-05-29 13:46:37 -07:00
committed by GitHub
parent 0cc62c3007
commit 1659a9d615
3 changed files with 45 additions and 8 deletions

View File

@@ -8,7 +8,11 @@
// @Filename: /b.ts
//// import { abc } from "./a";
//// console.log(abc);
////
//// [|console.log(abc);
////
//// |]
//// console.log("abc");
// @Filename: /tsconfig.json
////{ "files": ["c.ts", "a.ts", "b.ts"] }
@@ -18,6 +22,7 @@ verify.pasteEdits({
args: {
pastedText: [`console.log(abc);`],
pasteLocations: [range[0]],
copiedFrom: { file: "b.ts", range: [range[1]] },
},
newFileContents: {
"/c.ts":