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

Feature request: rustfmt current block. #5849

Closed
crlf0710 opened this issue Aug 23, 2020 · 2 comments
Closed

Feature request: rustfmt current block. #5849

crlf0710 opened this issue Aug 23, 2020 · 2 comments

Comments

@crlf0710
Copy link
Member

Currently rustfmt does nothing to code within MBE. Before fully solving this problem. It would be nice if there's a workaround command that we can recognize the current block syntax the cursor is within, and reformat the code within the block with some recognized indentation.

@kjeremy
Copy link
Contributor

kjeremy commented Aug 23, 2020

There is a range version of the format request for LSP but we do not implement it since rustfmt is unreliable for document ranges.

@matklad
Copy link
Member

matklad commented Aug 24, 2020

This is a desirable feature, but it'll mostly fall out naturally after shaving this two large yaks: #4182, #1665

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

No branches or pull requests

3 participants