Merge branch 'main' into kvark-linux
This commit is contained in:
commit
3a53db6502
78 changed files with 1509 additions and 387 deletions
|
@ -1,5 +1,6 @@
|
|||
use std::{
|
||||
borrow::Cow,
|
||||
cmp::Ordering,
|
||||
fmt::{self, Debug},
|
||||
hash::{Hash, Hasher},
|
||||
sync::Arc,
|
||||
|
@ -18,6 +19,18 @@ impl<'a, T: ?Sized + PartialEq> PartialEq for ArcCow<'a, T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, T: ?Sized + PartialOrd> PartialOrd for ArcCow<'a, T> {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
self.as_ref().partial_cmp(other.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T: ?Sized + Ord> Ord for ArcCow<'a, T> {
|
||||
fn cmp(&self, other: &Self) -> Ordering {
|
||||
self.as_ref().cmp(other.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T: ?Sized + Eq> Eq for ArcCow<'a, T> {}
|
||||
|
||||
impl<'a, T: ?Sized + Hash> Hash for ArcCow<'a, T> {
|
||||
|
|
|
@ -22,6 +22,11 @@ lazy_static::lazy_static! {
|
|||
} else {
|
||||
CONFIG_DIR.join("support")
|
||||
};
|
||||
pub static ref EXTENSIONS_DIR: PathBuf = if cfg!(target_os="macos") {
|
||||
HOME.join("Library/Application Support/Zed")
|
||||
} else {
|
||||
CONFIG_DIR.join("extensions")
|
||||
};
|
||||
pub static ref PLUGINS_DIR: PathBuf = if cfg!(target_os="macos") {
|
||||
HOME.join("Library/Application Support/Zed/plugins")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue