Commit Graph

4 Commits

Author SHA1 Message Date
Fangrui Song
6223e400d3 Handle file deletion and register workspace/didChangeWatchedFiles
* In the "initialized" callback, send client/registerCapability with DidChangeWatchedFilesRegistrationOptions
* In workspace/didChangeWatchedFiles callback, call pipeline::Index
* In pipeline::Index, add a `deleted` status
2018-12-28 12:35:34 -08:00
Fangrui Song
9918246508 Make -v=1 work and log cflags for SemaManager session and Indexer 2018-12-28 12:35:34 -08:00
Fangrui Song
eb84991cb3 Rendezvous after receiving "exit" notification (#159) 2018-12-28 12:35:33 -08:00
Fangrui Song
c724779627 Refactor WorkingFiles and CompletionManager
* WorkingFiles::files : vector -> unordered_map
* Add timestamp to WorkingFile

* Rename "comp-preload" thread to "preamble"
* Rename CompletionManager to SemaManager as it is used by "diag" "comp" "preamble"
* Rename clang_complete.* to sema_manager.*
* Merge SemaManager::{preloads,sessions}
* Add initialization option session.maxNum
* In DiagnosticMain, if an included file was modified, cancel the DiagTask and create a PreambleTask instead. The task sets `from_diag` so as to trigger immediate DiagTask after the preamble is built.
2018-12-28 12:35:33 -08:00