Open trevyn opened 2 years ago
Separate binary that can be run that uses syn to parse out .rs files, replace strings with SQL with pretty-printed, then run rustfmt afterwards. Can swap this in with rust-analyzer.rustfmt.overrideCommand.
syn
.rs
rustfmt
rust-analyzer.rustfmt.overrideCommand
See also: https://crates.io/crates/sqlformat and https://crates.io/crates/prettyplease
Also see https://github.com/DioxusLabs/dioxus/issues/368 for an example of pretty-printing macro contents in a VSCode extension
Separate binary that can be run that uses
syn
to parse out.rs
files, replace strings with SQL with pretty-printed, then runrustfmt
afterwards. Can swap this in withrust-analyzer.rustfmt.overrideCommand
.See also: https://crates.io/crates/sqlformat and https://crates.io/crates/prettyplease