Skip to content

Commit 37c883d

Browse files
committed
Merge pull request microsoft#5970 from DanCorder/5497
Fix for issue microsoft#5947
2 parents 2ef436f + 57c595a commit 37c883d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ namespace ts.formatting {
461461
case SyntaxKind.ParenthesizedType:
462462
case SyntaxKind.TaggedTemplateExpression:
463463
case SyntaxKind.AwaitExpression:
464+
case SyntaxKind.NamedImports:
464465
return true;
465466
}
466467
return false;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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';");

0 commit comments

Comments
 (0)