mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
FAQ: reload methods
parent
c7cc9e6c44
commit
b4ebdd641d
6
FAQ.md
6
FAQ.md
@ -317,6 +317,12 @@ Sample requests:
|
||||
{"jsonrpc":"2.0","id":3,"method":"$ccls/member","params":{"textDocument":{"uri":"file:///tmp/c/a.cc"},"position":{"line":0,"character":7},"kind":2}}
|
||||
```
|
||||
|
||||
## Reload
|
||||
|
||||
* Notification `$ccls/reload`: reset global index and reload index files. This is useful if you have modified a common header file and you expect all opened files to be re-indexed. Note, this doesn't reload project files (`compile_commands.json` and `.ccls`).
|
||||
* Notification `workspace/didChangeConfiguration`: reload project files and re-index if necessary.
|
||||
* Restart the ccls process. Some language clients can restart the language server (e.g. lsp-mode `lsp-restart-workspace`).
|
||||
|
||||
## Cases
|
||||
|
||||
On a laptop with one (i7-6600U CPU @ 2.60GHz, hyper-threading, `nproc`=4), 4
|
||||
|
Loading…
Reference in New Issue
Block a user