mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Correct project_root path for ProjectJson.
It was already the folder containing the rust-project.json file, not the file itself.
This commit is contained in:
parent
74c26a785a
commit
2fbb09a73f
2 changed files with 5 additions and 8 deletions
|
@ -249,7 +249,7 @@ impl GlobalState {
|
|||
// Enable flychecks for json projects if a custom flycheck command was supplied
|
||||
// in the workspace configuration.
|
||||
match config {
|
||||
FlycheckConfig::CustomCommand { .. } => project.path(),
|
||||
FlycheckConfig::CustomCommand { .. } => Some(project.path()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue