mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-09 17:52:14 +00:00
Make cacheDirectory related to project root
This commit is contained in:
parent
b7ad7c110e
commit
b1492fedef
@ -282,7 +282,7 @@ void Initialize(MessageHandler *m, InitializeParam ¶m, ReplyOnce &reply) {
|
|||||||
|
|
||||||
if (g_config->cacheDirectory.size()) {
|
if (g_config->cacheDirectory.size()) {
|
||||||
SmallString<256> Path(g_config->cacheDirectory);
|
SmallString<256> Path(g_config->cacheDirectory);
|
||||||
sys::fs::make_absolute(Path);
|
sys::fs::make_absolute(project_path, Path);
|
||||||
g_config->cacheDirectory = Path.str();
|
g_config->cacheDirectory = Path.str();
|
||||||
EnsureEndsInSlash(g_config->cacheDirectory);
|
EnsureEndsInSlash(g_config->cacheDirectory);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user