Closed
Description
From @battmanz on January 24, 2017 19:14
In TypeScript (maybe other languages too), callback functions don't have the expected indentation when placed on a new line. Such is the case when using the subscribe
method on an Observable
in rxjs.
- VSCode Version: 1.8.1
- OS Version: macOS Sierra
Steps to Reproduce:
-
The following file was formatted using the keyboard shortcut. Notice how the
onNext
andonError
callbacks line up with thesubscribe
method.
-
I would rather see those two callbacks indented one more level like so:
Copied from original issue: microsoft/vscode#19260