What happened?
My home directory is on a network drive, so I have $XDG_CACHE_HOME pointing to a different filesystem that is stored locally, for performance reasons.
However, this extension currently ignores that environment variable and hardcodes its default value:
|
Os::Linux => env_iter |
|
.find(|(k, _)| k == "HOME") |
|
.map(|(_, v)| PathBuf::from(v).join(".cache")), |
What did you expect to happen?
I would expect this extension to follow the XDG Base Directory Specification, which the main Zed editor already does.
This simply means checking for $XDG_CACHE_HOME, and if it's set, using that path rather than $HOME/.cache.
Environment
Zed: 0.217.3
Platform: NixOS Xantusia 25.11.20251226.f560cce (Linux 6.12.63)
What happened?
My home directory is on a network drive, so I have
$XDG_CACHE_HOMEpointing to a different filesystem that is stored locally, for performance reasons.However, this extension currently ignores that environment variable and hardcodes its default value:
java/src/jdtls.rs
Lines 325 to 327 in b68357e
What did you expect to happen?
I would expect this extension to follow the XDG Base Directory Specification, which the main Zed editor already does.
This simply means checking for
$XDG_CACHE_HOME, and if it's set, using that path rather than$HOME/.cache.Environment
Zed: 0.217.3
Platform: NixOS Xantusia 25.11.20251226.f560cce (Linux 6.12.63)