diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index d9ffb29c3913c61fb3238d1ebc1e50960dfb20c5..0770918120e01a119bf14655737c7e75df5decf4 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -1071,7 +1071,10 @@ struct Args { fn parse_url_arg(arg: &str, cx: &AppContext) -> Result { match std::fs::canonicalize(Path::new(&arg)) { - Ok(path) => Ok(format!("file://{}", path.to_string_lossy())), + Ok(path) => Ok(format!( + "file://{}", + path.to_string_lossy().trim_start_matches(r#"\\?\"#) + )), Err(error) => { if arg.starts_with("file://") || arg.starts_with("zed-cli://")