Skip to content

Follow the XDG Base Directory Specification #167

@danth

Description

@danth

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:

java/src/jdtls.rs

Lines 325 to 327 in b68357e

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions