-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
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
onNextandonErrorcallbacks line up with thesubscribemethod.

-
I would rather see those two callbacks indented one more level like so:

Copied from original issue: microsoft/vscode#19260
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