mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-28 08:00:55 -05:00
Handling statements from a known source file (#58679)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user