-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.7+ (first commit: d49491b)
VS Code does not repro. Try Visual Studio 2017 or run my fourslash test from below
Search Terms: smart indent
Code
function foo() {
return; // hit enter here
// new line is indented correctly
if (true) {
return; // hit enter here
// new line is NOT indented correctly
}
}
Expected behavior:
Line is indented 8 characters after the return
statement within the if
statement
Actual behavior:
Line is only indented 4 characters
Test:
git pull https://github.com/minestarks/TypeScript.git smartindentbug
jake test test=smartIndentReturn lint=false
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issue