From e80455946a2bb1ac609d3f8df61ef13bb4fcc7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?u=C4=B1=C9=90=C9=BE=20=CA=9E=20=CA=87=C9=90=C9=AF=C9=90s?= <_@skj.io> Date: Fri, 8 Feb 2019 21:42:23 -0800 Subject: [PATCH] Rework instructions for ccls.cacheDirectory --- Visual-Studio-Code.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Visual-Studio-Code.md b/Visual-Studio-Code.md index d86cbeb..5980407 100644 --- a/Visual-Studio-Code.md +++ b/Visual-Studio-Code.md @@ -15,10 +15,23 @@ To load vscode-ccls without installing: To tell the extension where to find ccls, either add ccls to your `PATH` or set "ccls.launch.command" in User Settings to the absolute path pointing to ccls. ```json -{ - "ccls.launch.command": "/path/to/ccls/Release/ccls", - "ccls.cacheDirectory": "/tmp/.ccls-cache/" -} +"ccls.launch.command": "/path/to/ccls/Release/ccls", +``` + +### `ccls.cacheDirectory` + +By default, ccls will store indexes in `.ccls-cache` of the workspace (more technically, the current working directory of ccls, which may not be what you think is the workspace root). + +You can set: + +```javascript +"ccls.cacheDirectory": "${workspaceFolder}/.ccls-cache/" +``` + +or use a global cache directory: + +```javascript +"ccls.cacheDirectory": "/tmp/ccls-cache/" ``` ### `ccls.clang.extraArgs`