diff options
author | Aaron Wood <[email protected]> | 2020-09-16 20:09:44 +0100 |
---|---|---|
committer | Aaron Wood <[email protected]> | 2020-09-16 20:09:44 +0100 |
commit | 2fbb09a73f1f541f69b8591c3c15b44df889d1bc (patch) | |
tree | 89ed9ec4598634cea5d2c79a2bb425b1c354eb40 /crates/rust-analyzer/src/reload.rs | |
parent | 74c26a785ad8e8ef857b903d3639beb623077933 (diff) |
Correct project_root path for ProjectJson.
It was already the folder containing the rust-project.json file, not the file itself.
Diffstat (limited to 'crates/rust-analyzer/src/reload.rs')
-rw-r--r-- | crates/rust-analyzer/src/reload.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index b819618cb..a052f36a7 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs | |||
@@ -249,7 +249,7 @@ impl GlobalState { | |||
249 | // Enable flychecks for json projects if a custom flycheck command was supplied | 249 | // Enable flychecks for json projects if a custom flycheck command was supplied |
250 | // in the workspace configuration. | 250 | // in the workspace configuration. |
251 | match config { | 251 | match config { |
252 | FlycheckConfig::CustomCommand { .. } => project.path(), | 252 | FlycheckConfig::CustomCommand { .. } => Some(project.path()), |
253 | _ => None, | 253 | _ => None, |
254 | } | 254 | } |
255 | } | 255 | } |