Reload grammars in extensions when they are updated on disk (#7531)
Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
parent
f2a4dbaf7f
commit
7b03e977e4
6 changed files with 111 additions and 57 deletions
|
@ -23,15 +23,10 @@ lazy_static::lazy_static! {
|
|||
CONFIG_DIR.join("support")
|
||||
};
|
||||
pub static ref EXTENSIONS_DIR: PathBuf = if cfg!(target_os="macos") {
|
||||
HOME.join("Library/Application Support/Zed")
|
||||
HOME.join("Library/Application Support/Zed/extensions")
|
||||
} else {
|
||||
CONFIG_DIR.join("extensions")
|
||||
};
|
||||
pub static ref PLUGINS_DIR: PathBuf = if cfg!(target_os="macos") {
|
||||
HOME.join("Library/Application Support/Zed/plugins")
|
||||
} else {
|
||||
CONFIG_DIR.join("plugins")
|
||||
};
|
||||
pub static ref LANGUAGES_DIR: PathBuf = if cfg!(target_os="macos") {
|
||||
HOME.join("Library/Application Support/Zed/languages")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue