Merge pull request #18822 from bryceberger/targetdir-absolute

allow targetDir to be an absolute path
This commit is contained in:
Lukas Wirth 2025-01-03 11:33:57 +00:00 committed by GitHub
commit db55d9ade0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()),
})
}