mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 13:48:46 -05:00
moveToNewFile: Support selecting the name of a declaration (#24331)
This commit is contained in:
19
tests/cases/fourslash/moveToNewFile_selectionOnName.ts
Normal file
19
tests/cases/fourslash/moveToNewFile_selectionOnName.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: /a.ts
|
||||
////export {};
|
||||
////function e[|f|]f() { gee(); }
|
||||
////function gee() { eff(); }
|
||||
|
||||
verify.moveToNewFile({
|
||||
newFileContents: {
|
||||
"/a.ts":
|
||||
`import { eff } from "./eff";
|
||||
|
||||
export {};
|
||||
export function gee() { eff(); }`,
|
||||
"/eff.ts":
|
||||
`import { gee } from "./a";
|
||||
export function eff() { gee(); }`,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user