Fangrui Song
771b55e279
Refactor serializer
...
Delete virtual bases Reader & Writer
Delete unused MAKE_REFLECT_STRUCT_WRITER_AS_ARRAY
Merge serializers/{json,binary}.hh into serializer.{hh,cc}
MAKE_REFLECT_STRUCT => REFLECT_STRUCT
MAKE_REFLECT_TYPE_PROXY => REFLECT_UNDERLYING
2018-12-20 00:28:12 -08:00
Fangrui Song
717ccdc091
Add ReplyOnce::NotReady and error if didOpen is not seen
...
Use IgnoringDiagConsumer to override default TextDiagnosticPrinter
2018-12-20 00:28:12 -08:00
Fangrui Song
a02d3a47de
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-20 00:28:12 -08:00
Fangrui Song
c73dfddbed
Merge query.hh and query_util.hh
2018-12-20 00:28:12 -08:00
Fangrui Song
1200419303
codeAction: use codeActionProvider: CodeActionOptions and respect CodeActionParams::range
2018-12-20 00:28:12 -08:00
Fangrui Song
7d0f8989a0
Make DocumentLink::range narrower
...
Thanks to Riatre #135
2018-12-20 00:28:12 -08:00
Fangrui Song
da31c7d608
hierarchicalDocumentSymbol: support SymbolKind::Function declaration and uniquify by range
...
Also ensure selectionRange is a subrange of range, otherwise VSCode won't show the item.
Use detailed_name for 'detail'
2018-12-20 00:27:34 -08:00
Fangrui Song
1ab10322ec
hierarchicalDocumentSymbol: display member function declarations
2018-12-11 15:04:00 -08:00
Fangrui Song
8a68dfbf8f
Remove ls
prefix from many LSP interfaces
...
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
2018-12-11 15:04:00 -08:00
Fangrui Song
7817821959
*.h -> *.hh
2018-12-11 15:04:00 -08:00
Fangrui Song
77e1f354fd
Refactor message handler and namespace ccls
2018-12-11 15:03:56 -08:00
Fangrui Song
323d2ec8bf
Implement textDocument/documentLink
2018-10-24 20:14:53 -07:00