Ludovic Jozeau
0b57c9503d
remove part of macro expansion from ignore function
...
rename is_macro_expansion to isPartOfMacroExpansion
2021-05-10 16:20:14 +02:00
Ludovic Jozeau
5208eb6be6
remove document symbols from macro expansion
...
eg:
#define M \
namespace ns_name \
{ \
namespace ns_name_impl \
{ \
void f() {} \
} \
}
M;
2021-05-09 22:04:17 +02:00
Ludovic J
c018bce9af
hierarchicalDocumentSymbol: use a range based method to support
...
out-of-line class members (#674 )
2021-05-09 11:33:34 -07:00
Jan Lahoda
a2ecd9a8f0
textDocument/documentSymbol: support unopened files ( #548 )
2019-12-22 09:26:23 +01:00
Fangrui Song
61a1071634
💥 Rename FunctionName -> functionName, VarName -> var_name
2019-08-22 10:12:03 -07:00
Fangrui Song
5d27ac9f34
Add excludeRole to documentSymbol and override declaration's range/selectionRange with definition's
2019-03-08 23:37:08 -08:00
Fangrui Song
9ca095f49e
Misc
2019-03-02 18:18:02 -08:00
Fangrui Song
8835a555f8
Delay requests if the document has not not indexed ( #176 )
...
This fixes a plethora of "not indexed" errors when the document has not been indexed.
* Message handler throws NotIndexed if not overdue
* The message is put into backlog and tagged with backlog_path
* path2backlog[path] tracks backlog associated with document `path`
* The backlog is cleared when the index is merged
* backlog[0] is forced to run if it becomes overdue
2019-11-09 20:09:13 -08:00
Fangrui Song
a47fb42e30
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
2019-11-09 20:09:13 -08:00
Fangrui Song
a599aef482
Add ReplyOnce::NotReady and error if didOpen is not seen
...
Use IgnoringDiagConsumer to override default TextDiagnosticPrinter
2019-11-09 20:09:13 -08:00
Fangrui Song
9ad2450009
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.
2019-11-09 20:09:13 -08:00
Fangrui Song
880c515d64
Merge query.hh and query_util.hh
2019-11-09 20:09:13 -08:00
Fangrui Song
7f8f68c0b2
codeAction: use codeActionProvider: CodeActionOptions and respect CodeActionParams::range
2019-11-09 20:09:13 -08:00
Fangrui Song
19d38bc1d2
Make DocumentLink::range narrower
...
Thanks to Riatre #135
2019-11-09 20:09:13 -08:00
Fangrui Song
95bba3ed15
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'
2019-11-09 20:09:13 -08:00
Fangrui Song
d9a31a72bd
hierarchicalDocumentSymbol: display member function declarations
2019-11-09 20:09:13 -08:00
Fangrui Song
0d4f4b68c0
Remove ls
prefix from many LSP interfaces
...
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
2019-11-09 20:09:13 -08:00
Fangrui Song
bbce333042
*.h -> *.hh
2019-11-09 20:09:13 -08:00
Fangrui Song
3cd0ee2fc7
Refactor message handler and namespace ccls
2019-11-09 20:09:11 -08:00
Fangrui Song
8fa853c321
Implement textDocument/documentLink
2019-11-09 20:03:28 -08:00