moveToNewFile: Support selecting the name of a declaration (#24331)

This commit is contained in:
Andy
2018-05-22 14:00:29 -07:00
committed by GitHub
parent 9cda2bdba0
commit 5622bc2dd6
2 changed files with 26 additions and 1 deletions

View 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(); }`,
},
});