Do not break Zed & Zed CLI compatibility

This commit is contained in:
Kirill Bulatov 2023-05-13 11:39:35 +03:00
parent 628558aa39
commit 106064c734
4 changed files with 41 additions and 13 deletions

View file

@ -79,10 +79,11 @@ fn main() -> Result<()> {
.paths_with_position
.into_iter()
.map(|path_with_position| {
path_with_position.convert_path(|path| {
let path_with_position = path_with_position.convert_path(|path| {
fs::canonicalize(&path)
.with_context(|| format!("path {path:?} canonicalization"))
})
})?;
Ok(path_with_position.to_string(|path| path.display().to_string()))
})
.collect::<Result<_>>()?,
wait: args.wait,