Describe compilationDatabaseDirectory initialization option

Denis 2019-08-22 12:51:14 +03:00 committed by Fangrui Song
parent ab5b117e3f
commit 0eb303a8fe

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