Skip to content

Commit

Permalink
Default cache uses XDG_CACHE_HOME default (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Dec 5, 2023
1 parent c7256a2 commit 0c8abe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def base_dir
# in specs.
ENV['SOLARGRAPH_CACHE'] ||
ENV['XDG_CACHE_HOME'] ? File.join(ENV['XDG_CACHE_HOME'], 'solargraph') :
File.join(Dir.home, '.solargraph', 'cache')
File.join(Dir.home, '.cache', 'solargraph')
end

# The working directory for the current Ruby and Solargraph versions.
Expand Down

0 comments on commit 0c8abe9

Please sign in to comment.