Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zed: Fix formatting in workspace initialization #22152

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

maxdeviant
Copy link
Member

This PR fixes some formatting issues in the workspace initialization code that stemmed from certain constructs causing rustfmt to bail out of the formatting.

The bulk of the content of initialize_workspace has been factored out into functions, as having nested closures within closures seems to be the primary cause of rustfmt being unhappy.

Release Notes:

  • N/A

@maxdeviant maxdeviant self-assigned this Dec 17, 2024
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 17, 2024
Base automatically changed from marshall/assistant2-allow-assistant1 to main December 17, 2024 19:24
@maxdeviant maxdeviant force-pushed the marshall/fix-formatting-in-workspace-initialization branch from d94da9c to 64173dd Compare December 17, 2024 19:28
@maxdeviant maxdeviant merged commit e1ca5ed into main Dec 17, 2024
8 checks passed
@maxdeviant maxdeviant deleted the marshall/fix-formatting-in-workspace-initialization branch December 17, 2024 21:34
helgemahrt pushed a commit to helgemahrt/zed that referenced this pull request Dec 18, 2024
This PR fixes some formatting issues in the workspace initialization
code that stemmed from certain constructs causing `rustfmt` to bail out
of the formatting.

The bulk of the content of `initialize_workspace` has been factored out
into functions, as having nested closures within closures seems to be
the primary cause of `rustfmt` being unhappy.

Release Notes:

- N/A
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.

1 participant