You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
We currently only format a whole file. We should also try to format a range. Rustfmt has partial support for this (rust-lang/rustfmt#1159) I think it is good enough, that we should implement in the RLS (as an unstable feature) and then let Rustfmt catch up.
The text was updated successfully, but these errors were encountered:
@kogai yes, it should look pretty similar to reformat. In Rustfmt, you'll want to look at the "file-lines" feature which lets you pass the range to Rustfmt.
We currently only format a whole file. We should also try to format a range. Rustfmt has partial support for this (rust-lang/rustfmt#1159) I think it is good enough, that we should implement in the RLS (as an unstable feature) and then let Rustfmt catch up.
The text was updated successfully, but these errors were encountered: