mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-20 23:53:05 +00:00
diagnostics
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.
|
||||
|
||||
## `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
|
||||
|
||||
If `index.threads` is 0, use `std::thread::hardware_concurrency()`. If you want to control peak memory usage, set it to a small integer.
|
||||
|
Loading…
Reference in New Issue
Block a user