Commit Graph

11 Commits

Author SHA1 Message Date
Fangrui Song
f7f7f5cc89 Add ReplyOnce::NotReady and error if didOpen is not seen
Use IgnoringDiagConsumer to override default TextDiagnosticPrinter
2018-12-02 23:22:21 -08:00
Fangrui Song
3fdcfb1f16 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-02 23:22:16 -08:00
Fangrui Song
b8c370ac9a Merge query.hh and query_util.hh 2018-11-27 21:34:33 -08:00
Fangrui Song
f415e5e47c codeAction: use codeActionProvider: CodeActionOptions and respect CodeActionParams::range 2018-11-27 21:34:33 -08:00
Fangrui Song
b84bd9d060 Make DocumentLink::range narrower
Thanks to Riatre #135
2018-11-27 21:34:33 -08:00
Fangrui Song
7ae32d740b hierarchicalDocumentSymbol: support SymbolKind::Function declaration and uniquify by range
Also ensure selectionRange is a subrange of range otherwise VSCode
won't show the item.
2018-11-17 16:13:17 -08:00
Fangrui Song
8e60ad4057 hierarchicalDocumentSymbol: display member function declarations 2018-11-13 20:25:59 -08:00
Fangrui Song
c0b612395c Remove ls prefix from many LSP interfaces
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
2018-11-05 14:13:16 -08:00
Fangrui Song
ec8731932b *.h -> *.hh 2018-10-28 21:33:19 -07:00
Fangrui Song
123f504d50 Refactor message handler and namespace ccls 2018-10-28 21:18:45 -07:00
Fangrui Song
323d2ec8bf Implement textDocument/documentLink 2018-10-24 20:14:53 -07:00