diagnostics

Fangrui Song 2018-09-08 16:16:29 -07:00
parent 1585432eb1
commit 9e0df6a5b4

@ -14,6 +14,20 @@ If empty, cache will be stored in memory.
Additional arguments or excluded arguments for `compile_commands.json` entries. Additional arguments or excluded arguments for `compile_commands.json` entries.
## `diagnostics.onOpen: true` `diagnostics.onChange: true` `diagnostics.onSave: false`
By default, diagnostics are emitted when opening a document or a change is made.
Diagnostics require parsing the document. If it is slow for you, consider:
```javascript
{
"diagnostics": {
"onChange": false,
"onSave": true
}
}
```
## `index.threads`: number of indexer threads ## `index.threads`: number of indexer threads
If `index.threads` is 0, use `std::thread::hardware_concurrency()`. If you want to control peak memory usage, set it to a small integer. If `index.threads` is 0, use `std::thread::hardware_concurrency()`. If you want to control peak memory usage, set it to a small integer.