mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
misc
This commit is contained in:
parent
5408540158
commit
75b2db6dbf
22
src/query.h
22
src/query.h
@ -8,12 +8,6 @@ using Usr = std::string;
|
||||
// TODO: in types, store refs separately from irefs. Then we can drop
|
||||
// 'interesting' from location when that is cleaned up.
|
||||
|
||||
// TODO: Switch over to QueryableLocation. Figure out if there is
|
||||
// a good way to get the indexer using it. I don't think so
|
||||
// since we may discover more files while indexing a file.
|
||||
//
|
||||
// We could also reuse planned USR caching system for file
|
||||
// paths.
|
||||
struct QueryableLocation {
|
||||
Usr path;
|
||||
Range range;
|
||||
@ -230,18 +224,4 @@ struct QueryableDatabase {
|
||||
void ImportOrUpdate(const std::vector<QueryableTypeDef::DefUpdate>& updates);
|
||||
void ImportOrUpdate(const std::vector<QueryableFuncDef::DefUpdate>& updates);
|
||||
void ImportOrUpdate(const std::vector<QueryableVarDef::DefUpdate>& updates);
|
||||
};
|
||||
|
||||
|
||||
|
||||
// TODO: For supporting vscode, lets'
|
||||
// - have our normal daemon system
|
||||
// - have frontend --language-server which accepts JSON RPC language server in stdin and emits language server
|
||||
// JSON in stdout. vscode extension will run the executable this way. it will connect to daemon as normal.
|
||||
// this means that vscode instance can be killed without actually killing core indexer process.
|
||||
// $ indexer --language-server
|
||||
// - maybe? have simple front end which lets user run
|
||||
// $ indexer --action references --location foo.cc:20:5
|
||||
//
|
||||
//
|
||||
// https://github.com/Microsoft/vscode-languageserver-node/blob/master/client/src/main.ts
|
||||
};
|
Loading…
Reference in New Issue
Block a user