Skip to content

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

Merged
osiewicz merged 1 commit intomainfrom
on-type-formatting-with-newlines
Dec 15, 2025
Merged

lsp: Support on-type formatting request with newlines#44882
osiewicz merged 1 commit intomainfrom
on-type-formatting-with-newlines

Conversation

@osiewicz
Copy link
Member

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.

We called out to `request_on_type_formatting` only in handle_input function, but newlines are actually handled by editor::Newline action.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 15, 2025
@osiewicz
Copy link
Member Author

@janko I'm sorry you had to wait so long for something that was admittedly pretty simple in hindsight.

@osiewicz osiewicz enabled auto-merge (squash) December 15, 2025 13:34
@osiewicz osiewicz merged commit 7889aaf into main Dec 15, 2025
24 checks passed
@osiewicz osiewicz deleted the on-type-formatting-with-newlines branch December 15, 2025 13:44
@janko
Copy link
Contributor

janko commented Dec 15, 2025

Great, thanks! 🙌🏻 I sensed it's just a matter of calling the LSP request, but I understand it's not always easy to tell whether a problem has a simple solution 😄

CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…#44882)

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

Closes zed-industries#12383

Release Notes:

- Added support for on-type formatting with newlines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically inserting end in Ruby

2 participants