Skip to content

Format compact do binds in bend2-fmt-lsp - #2344

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fmt-lsp-compact-do-binds-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fmt-lsp-compact-do-binds-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The editor formatter left Unit<-IO.print("x") glued and could space an erased datatype binder like a do bind. It now formats Unit <- IO.print("x") but keeps type Box<-T: Type> together. This is the language server, not the bend-lint change in #2237.

All 38 LSP and formatter tests passed on Linux across two runs. A real stdio request returned the edit, and both example programs printed the same result before and after formatting. The mini cluster was unavailable.

- Split the angle opener from the quantity only after a datatype declaration name.
- Cover compact do binds and erased parameters adjacent to the opener.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant