Open
Description
From @lumaxis on August 12, 2016 0:7
- VSCode Version: 1.5.0-insider (666ed83)
- OS Version: 10.11.6
Steps to Reproduce:
- Create a Typescript file and start writing code using promises
- Auto-indent file using
Shift+Alt+DShift+Alt-F
Expected Result:
return output
.then((result: ControllerResponse) => {
return res
.status(result.statusCode)
.json(result.payload);
})
Actual Result:
return output
.then((result: ControllerResponse) => {
return res
.status(result.statusCode)
.json(result.payload);
})
Description:
The problem with the current way is that it leads to a strange indentation on the closing braces:
});
}
Here, the closing curly braces and parentheses for the .then()
block are indented 4 spaces instead of 2 spaces as they should be.
Copied from original issue: microsoft/vscode#10453