feat: Add support for the 'zed' URL scheme

This commit is contained in:
Ali Houssain Sareini 2024-10-14 19:36:51 -04:00
parent dcf645da6c
commit 4daeb53dba

View File

@ -6,7 +6,7 @@ use url::Url;
pub(crate) fn open_that(path: &str) -> anyhow::Result<()> {
let target_url = Url::parse(path).with_context(|| format!("Invalid path format: '{path}'"))?;
if !["http", "https", "mailto", "vscode", "vscodium"].contains(&target_url.scheme()) {
if !["http", "https", "mailto", "vscode", "vscodium", "zed"].contains(&target_url.scheme()) {
bail!("Invalid path scheme: {}", target_url.scheme());
}