Generalize rustfmt config

This commit is contained in:
Aleksey Kladov
2020-04-01 13:31:12 +02:00
parent 67351a011b
commit 6ac9668998
3 changed files with 40 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ use crate::{
subscriptions::Subscriptions,
},
req,
world::{Config, WorldSnapshot, WorldState},
world::{Config, RustfmtConfig, WorldSnapshot, WorldState},
Result, ServerConfig,
};
use req::ConfigurationParams;
@@ -110,7 +110,7 @@ fn get_config(
} else {
None
},
rustfmt_args: config.rustfmt_args.clone(),
rustfmt: RustfmtConfig::Rustfmt { extra_args: config.rustfmt_args.clone() },
vscode_lldb: config.vscode_lldb,
proc_macro_srv: None, // FIXME: get this from config
}