mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-23 18:48:40 -05:00
indent 'from' again
This commit is contained in:
@@ -477,7 +477,6 @@ namespace ts.formatting {
|
||||
case SyntaxKind.CloseParenToken:
|
||||
case SyntaxKind.ElseKeyword:
|
||||
case SyntaxKind.WhileKeyword:
|
||||
case SyntaxKind.FromKeyword:
|
||||
case SyntaxKind.AtToken:
|
||||
return indentation;
|
||||
default:
|
||||
|
||||
@@ -44,7 +44,7 @@ verify.currentLineContentIs(" y as yy, z");
|
||||
goTo.marker("exportCloseBrace");
|
||||
verify.currentLineContentIs("}");
|
||||
goTo.marker("fromKeywordAutoformat");
|
||||
verify.currentLineContentIs("from");
|
||||
verify.currentLineContentIs(" from");
|
||||
goTo.marker("fromKeywordIndent");
|
||||
verify.indentationIs(4);
|
||||
goTo.marker("exportDir");
|
||||
@@ -62,7 +62,7 @@ verify.currentLineContentIs(" as yy,");
|
||||
goTo.marker("importCloseBrace");
|
||||
verify.currentLineContentIs("}");
|
||||
goTo.marker("importDir");
|
||||
verify.currentLineContentIs('from "wow"');
|
||||
verify.currentLineContentIs(' from "wow"');
|
||||
|
||||
goTo.marker("formatOnEnter");
|
||||
edit.insertLine('');
|
||||
|
||||
Reference in New Issue
Block a user