Rework instructions for ccls.cacheDirectory

uıɐɾ ʞ ʇɐɯɐs 2019-02-08 21:42:23 -08:00 committed by Fangrui Song
parent 655269f1d2
commit e80455946a

@ -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.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`