aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorClemens Wasser <[email protected]>2020-06-10 07:51:11 +0100
committerClemens Wasser <[email protected]>2020-06-10 07:51:11 +0100
commit47ef544fa57ca1833b466e491315e54a88780b4d (patch)
tree6d0e1e074561f78c94a3107787728b3842c51b3b /crates
parent684b6fa1b8cd41b03ba485084690f78991820645 (diff)
Added the rust-analyzer.checkOnSave.features option.
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/config.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 5d5f7d66a..320414ecf 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -242,7 +242,10 @@ impl Config {
242 set(value, "/checkOnSave/command", command); 242 set(value, "/checkOnSave/command", command);
243 set(value, "/checkOnSave/allTargets", all_targets); 243 set(value, "/checkOnSave/allTargets", all_targets);
244 set(value, "/checkOnSave/allFeatures", all_features); 244 set(value, "/checkOnSave/allFeatures", all_features);
245 *features = self.cargo.features.clone(); 245 set(value, "/checkOnSave/features", features);
246 if features.is_empty() && !self.cargo.features.is_empty() {
247 *features = self.cargo.features.clone();
248 }
246 } 249 }
247 } 250 }
248 }; 251 };