# lsp: Support on-type formatting request with newlines \(\#44882\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7889aaf3fb74bee4cab6f1ea1715eb08163e6afd)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7889aaf3fb74bee4cab6f1ea1715eb08163e6afd

Requested commit: 7889aaf3fb74bee4cab6f1ea1715eb08163e6afd

Commit: 7889aaf3fb74bee4cab6f1ea1715eb08163e6afd

Tree: 91355c6d0304f0c4218f16f209d982aa97e35859

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
lsp: Support on-type formatting request with newlines (#44882)

We called out to `request_on_type_formatting` only in handle_input
function, but newlines are actually handled by editor::Newline action.

Closes #12383

Release Notes:

- Added support for on-type formatting with newlines.
```

## Parents

- [3bf57dc7790b359d4c49f5639d0bb7b80eed4b17](https://git.cafe/gitcafe/zed/commit/3bf57dc7790b359d4c49f5639d0bb7b80eed4b17?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7889aaf3fb74bee4cab6f1ea1715eb08163e6afd?format=markdown)
