mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 20:43:37 +03:00
feat: Add support for the 'zed' URL scheme
This commit is contained in:
parent
dcf645da6c
commit
4daeb53dba
@ -6,7 +6,7 @@ use url::Url;
|
|||||||
|
|
||||||
pub(crate) fn open_that(path: &str) -> anyhow::Result<()> {
|
pub(crate) fn open_that(path: &str) -> anyhow::Result<()> {
|
||||||
let target_url = Url::parse(path).with_context(|| format!("Invalid path format: '{path}'"))?;
|
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());
|
bail!("Invalid path scheme: {}", target_url.scheme());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user