diff --git a/FAQ.md b/FAQ.md index 8f8cf28..f1c324a 100644 --- a/FAQ.md +++ b/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