From 0eb303a8fe77a62a7bc23f2019e0e768ab0cece1 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 22 Aug 2019 12:51:14 +0300 Subject: [PATCH] Describe `compilationDatabaseDirectory` initialization option --- Customization.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Customization.md b/Customization.md index ce8db50..52f5389 100644 --- a/Customization.md +++ b/Customization.md @@ -159,6 +159,16 @@ supports LSP snippets but you don't like them, set the option to `false`. Example: `{"client": {"snippetSupport": false}}` +#### `compilationDatabaseDirectory` + +Default: `""` + +If not empty, look for `compile_commands.json` in it, otherwise the file is retrieved in the project root. + +Useful when using out-of-tree builds with the compilation database being generated in the build directory. + +Example: `{"compilationDatabaseDirectory": "out/release"}` + #### `diagnostics.onOpen` / `diagnostics.onChange` / `diagnostics.onSave` Default: `onOpen`: `0` / `onChange`: `1000` / `onSave`: `0`