File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -461,6 +461,7 @@ namespace ts.formatting {
461
461
case SyntaxKind . ParenthesizedType :
462
462
case SyntaxKind . TaggedTemplateExpression :
463
463
case SyntaxKind . AwaitExpression :
464
+ case SyntaxKind . NamedImports :
464
465
return true ;
465
466
}
466
467
return false ;
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts' />
2
+
3
+ ////import {/*0*/
4
+ //// numbers as bn,/*1*/
5
+ //// list/*2*/
6
+ //// } from '@bykov/basics';/*3*/
7
+
8
+ format . document ( ) ;
9
+ goTo . marker ( "0" ) ; verify . currentLineContentIs ( "import {" ) ;
10
+ goTo . marker ( "1" ) ; verify . currentLineContentIs ( " numbers as bn," ) ;
11
+ goTo . marker ( "2" ) ; verify . currentLineContentIs ( " list" ) ;
12
+ goTo . marker ( "3" ) ; verify . currentLineContentIs ( "} from '@bykov/basics';" ) ;
You can’t perform that action at this time.
0 commit comments