agent2: Add custom UI for resource link content blocks (#36005)

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
This commit is contained in:
Danilo Leal 2025-08-12 12:39:27 -03:00 committed by GitHub
parent d2162446d0
commit b105028c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 192 additions and 114 deletions

View file

@ -19,7 +19,10 @@ impl MentionUri {
if let Some(fragment) = url.fragment() {
Ok(Self::Symbol(path.into(), fragment.into()))
} else {
Ok(Self::File(path.into()))
let file_path =
PathBuf::from(format!("{}{}", url.host_str().unwrap_or(""), path));
Ok(Self::File(file_path))
}
}
"zed" => {