mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-28 18:41:57 +00:00
Clarify index.trackDependency
parent
7251220599
commit
0c099d647f
@ -123,11 +123,13 @@ This is best used in conjunction with empty `cacheDirectory` to avoid writing ca
|
||||
|
||||
Default: 2
|
||||
|
||||
If `a.h` has been changed, when you open `a.cc` which includes `a.h`, an index request will be sent and `a.cc` will be reparsed.
|
||||
This options controls whether a file should be re-indexed when any of its dependencies changes timestamp.
|
||||
|
||||
If set to 0, `a.cc` will not be reparsed because its dependencies (included files) have changed timestamps.
|
||||
If `a.h` has been changed, when you open `a.cc` which includes `a.h`, an index request will be sent.
|
||||
|
||||
1 sits between the two cases: the 2 behavior (default) is used before the initial load while the 0 behavior is used afterwards.
|
||||
* 0: no re-indexing unless `a.cc` itself changes timestamp.
|
||||
* 2: the index of `a.cc` is considered stale and it should be re-indexed.
|
||||
* 1: before the initial load, the behavior of 2 is used, otherwise the behavior of 0 is used.
|
||||
|
||||
## `completion.filterAndSort`: completion filtering and sorting
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user