Skip to content

Callback functions don't have the expected indentation #13688

Closed
@mjbvz

Description

@mjbvz

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:

  1. The following file was formatted using the keyboard shortcut. Notice how the onNext and onError callbacks line up with the subscribe method.
    screen shot 2017-01-24 at 12 07 33 pm

  2. I would rather see those two callbacks indented one more level like so:
    screen shot 2017-01-24 at 12 09 00 pm

Copied from original issue: microsoft/vscode#19260

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions