diff --git a/Initialization-options.md b/Initialization-options.md index 4cb131f..5ba4c78 100644 --- a/Initialization-options.md +++ b/Initialization-options.md @@ -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