Skip to content

Commit

Permalink
allow targetDir to be an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceberger committed Jan 2, 2025
1 parent b4f865a commit 369a654
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,8 +2129,7 @@ impl Config {
Some(Utf8PathBuf::from("target/rust-analyzer"))
}
TargetDirectory::UseSubdirectory(false) => None,
TargetDirectory::Directory(dir) if dir.is_relative() => Some(dir.clone()),
TargetDirectory::Directory(_) => None,
TargetDirectory::Directory(dir) => Some(dir.clone()),
})
}

Expand Down

0 comments on commit 369a654

Please sign in to comment.