mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
commit
37c883d6e8
@ -461,6 +461,7 @@ namespace ts.formatting {
|
||||
case SyntaxKind.ParenthesizedType:
|
||||
case SyntaxKind.TaggedTemplateExpression:
|
||||
case SyntaxKind.AwaitExpression:
|
||||
case SyntaxKind.NamedImports:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
12
tests/cases/fourslash/smartIndentNamedImport.ts
Normal file
12
tests/cases/fourslash/smartIndentNamedImport.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////import {/*0*/
|
||||
//// numbers as bn,/*1*/
|
||||
//// list/*2*/
|
||||
////} from '@bykov/basics';/*3*/
|
||||
|
||||
format.document();
|
||||
goTo.marker("0"); verify.currentLineContentIs("import {");
|
||||
goTo.marker("1"); verify.currentLineContentIs(" numbers as bn,");
|
||||
goTo.marker("2"); verify.currentLineContentIs(" list");
|
||||
goTo.marker("3"); verify.currentLineContentIs("} from '@bykov/basics';");
|
||||
Loading…
x
Reference in New Issue
Block a user