Skip to content

Callback functions don't have the expected indentation #19260

@battmanz

Description

@battmanz

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

Metadata

Metadata

Assignees

Labels

formattingSource formatter issuestypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions