rust/crates/rust-analyzer
bors[bot] 835cf55887
Merge #8767
8767: implement range formatting r=matklad a=euclio

Fixes #7580.

This PR implements the `textDocument/rangeFormatting` request using `rustfmt`'s `--file-lines` option.

Still needs some tests. What I want to know is how I should handle the instability of the `--file-lines` option. It's still unstable in rustfmt, so it's only available on nightly, and needs a special flag to enable. Is there a way for `rust-analyzer` to detect if it's using nightly rustfmt, or for users to opt-in?

Co-authored-by: Andy Russell <arussell123@gmail.com>
2021-05-25 12:15:48 +00:00
..
src Merge #8767 2021-05-25 12:15:48 +00:00
tests/slow-tests internal: use more evocative test folder name 2021-05-17 19:01:54 +03:00
build.rs minor: standard snippet 2021-05-07 21:46:25 +03:00
Cargo.toml Use package renaming so source doesn't say tikv 2021-05-07 12:41:07 -07:00