We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ef436f + 57c595a commit 37c883dCopy full SHA for 37c883d
2 files changed
src/services/formatting/smartIndenter.ts
@@ -461,6 +461,7 @@ namespace ts.formatting {
461
case SyntaxKind.ParenthesizedType:
462
case SyntaxKind.TaggedTemplateExpression:
463
case SyntaxKind.AwaitExpression:
464
+ case SyntaxKind.NamedImports:
465
return true;
466
}
467
return false;
tests/cases/fourslash/smartIndentNamedImport.ts
@@ -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