Skip to content

Commit

Permalink
Set rust-analyzer.check.invocationLocation to root
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Feb 8, 2023
1 parent 9433ba6 commit 730470c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bootstrap/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/etc/vscode_settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"rust-analyzer.check.invocationLocation": "root",
"rust-analyzer.check.invocationStrategy": "once",
"rust-analyzer.checkOnSave.overrideCommand": [
"python3",
"x.py",
Expand Down

0 comments on commit 730470c

Please sign in to comment.