]> git.lizzy.rs Git - rust.git/commitdiff
Set `rust-analyzer.check.invocationLocation` to `root`
authorclubby789 <jamie@hill-daniel.co.uk>
Wed, 8 Feb 2023 22:38:20 +0000 (22:38 +0000)
committerclubby789 <jamie@hill-daniel.co.uk>
Wed, 8 Feb 2023 22:53:50 +0000 (22:53 +0000)
src/bootstrap/setup.rs
src/etc/vscode_settings.json

index c98a52450849e9bc9bce15d17a92a5d1e40edd72..2b613ad50ee482f9011748d46554b6ead681a80f 100644 (file)
@@ -24,10 +24,12 @@ pub enum Profile {
 }
 
 /// A list of historical hashes of `src/etc/vscode_settings.json`.
-/// New entries should be appended whenever this is updated so we can detected
+/// New entries should be appended whenever this is updated so we can detect
 /// outdated vs. user-modified settings files.
-static SETTINGS_HASHES: &[&str] =
-    &["ea67e259dedf60d4429b6c349a564ffcd1563cf41c920a856d1f5b16b4701ac8"];
+static SETTINGS_HASHES: &[&str] = &[
+    "ea67e259dedf60d4429b6c349a564ffcd1563cf41c920a856d1f5b16b4701ac8",
+    "56e7bf011c71c5d81e0bf42e84938111847a810eee69d906bba494ea90b51922",
+];
 static VSCODE_SETTINGS: &str = include_str!("../etc/vscode_settings.json");
 
 impl Profile {
index cd61a38c5da987c7176353c28d7f040be75b8a6b..04c34ce91c0b7aa72d05371e94e4a0d08f789cad 100644 (file)
@@ -1,4 +1,6 @@
 {
+    "rust-analyzer.check.invocationLocation": "root",
+    "rust-analyzer.check.invocationStrategy": "once",
     "rust-analyzer.checkOnSave.overrideCommand": [
         "python3",
         "x.py",