mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-04 23:50:47 +00:00
Add support for formatting entire document with rustfmt
Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements.
This commit is contained in:
parent
2aac6b0e34
commit
8b24f158f7
6 changed files with 95 additions and 3 deletions
|
@ -295,6 +295,7 @@ fn on_request(
|
|||
.on::<req::PrepareRenameRequest>(handlers::handle_prepare_rename)?
|
||||
.on::<req::Rename>(handlers::handle_rename)?
|
||||
.on::<req::References>(handlers::handle_references)?
|
||||
.on::<req::Formatting>(handlers::handle_formatting)?
|
||||
.finish();
|
||||
match req {
|
||||
Ok(id) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue