From d70769d0df6153ca3f52937db1fd7fb3395a3428 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 25 May 2019 18:39:39 -0700 Subject: [PATCH] initialWhitelist --- Customization.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Customization.md b/Customization.md index 2be33b1..ef0b28d 100644 --- a/Customization.md +++ b/Customization.md @@ -240,7 +240,7 @@ Example: `{"index": {"multiVersion": 1, "multiVersionBlacklist": ["^/usr/include #### `index.initialBlacklist` -Default: _empty_ +Default: `[]` A list of regular expressions matching files that should not be indexed when the `ccls` server starts up, but will still be indexed if a client opens them. @@ -253,7 +253,9 @@ parsing operations when performing quick edits on large projects. Be aware that you will not have access to full cross-referencing information in this situation. -Example: `{"index": {"initialBlacklist": "."}}` (matches all files) +If `index.initialWhitelist` is also specified, the whitelist takes precedence. + +Example: `{"index": {"initialBlacklist": ["."]}}` (matches all files) #### `index.onChange`