mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add additional_outdirs in config
This commit is contained in:
parent
6b9d66bbee
commit
c1db5d26a0
6 changed files with 13 additions and 0 deletions
|
@ -44,6 +44,9 @@ pub struct ServerConfig {
|
|||
/// Fine grained feature flags to disable specific features.
|
||||
pub feature_flags: FxHashMap<String, bool>,
|
||||
|
||||
/// Fine grained controls for additional `OUT_DIR` env variables
|
||||
pub additional_out_dirs: FxHashMap<String, String>,
|
||||
|
||||
pub rustfmt_args: Vec<String>,
|
||||
|
||||
/// Cargo feature configurations.
|
||||
|
@ -64,6 +67,7 @@ impl Default for ServerConfig {
|
|||
cargo_watch_all_targets: true,
|
||||
with_sysroot: true,
|
||||
feature_flags: FxHashMap::default(),
|
||||
additional_out_dirs: FxHashMap::default(),
|
||||
cargo_features: Default::default(),
|
||||
rustfmt_args: Vec::new(),
|
||||
}
|
||||
|
|
|
@ -195,6 +195,7 @@ pub fn main_loop(
|
|||
Watch(!config.use_client_watching),
|
||||
options,
|
||||
feature_flags,
|
||||
config.additional_out_dirs,
|
||||
)
|
||||
};
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ impl WorldState {
|
|||
watch: Watch,
|
||||
options: Options,
|
||||
feature_flags: FeatureFlags,
|
||||
additional_out_dirs: FxHashMap<String, String>,
|
||||
) -> WorldState {
|
||||
let mut change = AnalysisChange::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue