File tree 3 files changed +37
-0
lines changed
3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -533,6 +533,7 @@ namespace ts.refactor {
533
533
case SyntaxKind . ImportEqualsDeclaration :
534
534
case SyntaxKind . ImportSpecifier :
535
535
case SyntaxKind . ImportClause :
536
+ case SyntaxKind . NamespaceImport :
536
537
return true ;
537
538
case SyntaxKind . VariableDeclaration :
538
539
return isVariableDeclarationInImport ( decl as VariableDeclaration ) ;
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts' />
2
+
3
+ // @Filename : /a.ts
4
+ ////import { foo as oFoo } from './other';
5
+ ////[|export const x = oFoo();|]
6
+ ////export const a = 0;
7
+
8
+ verify . moveToNewFile ( {
9
+ newFileContents : {
10
+ "/a.ts" :
11
+ `export const a = 0;` ,
12
+
13
+ "/x.ts" :
14
+ `import { foo as oFoo } from './other';
15
+ export const x = oFoo();
16
+ `
17
+ } ,
18
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts' />
2
+
3
+ // @Filename : /a.ts
4
+ ////import * as o from './other';
5
+ ////[|export const x = o.foo();|]
6
+ ////export const a = 0;
7
+
8
+ verify . moveToNewFile ( {
9
+ newFileContents : {
10
+ "/a.ts" :
11
+ `export const a = 0;` ,
12
+
13
+ "/x.ts" :
14
+ `import * as o from './other';
15
+ export const x = o.foo();
16
+ `
17
+ } ,
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments