Commit Graph

8 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
af4d81d387 Refactor ReplyOnce; error if InitializeParams.rootUri is null 2018-11-27 21:34:33 -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
53632bd920 Add pipeline::{Notify,Reply,ReplyError} and simplify message handling
Delete method.{cc,h}
Rename $ccls/setSkippedRanges to $ccls/publishSkippedRanges
Rename $ccls/publishSemanticHighlighting to $ccls/publishSemanticHighlight; stableId -> id
2018-10-16 01:14:43 -07:00
Fangrui Song
a127ca9b02 Support textDocument/{formatting,onTypeFormatting,rangeFormatting} 2018-09-28 10:18:04 -07:00