This commit is contained in:
Jacob Dufault 2017-02-27 00:57:16 -08:00
parent 7192db6e32
commit a37d402ce2

16
query.h
View File

@ -231,4 +231,18 @@ struct QueryableDatabase {
void Update(const std::vector<QueryableTypeDef::DefUpdate>& updates);
void Update(const std::vector<QueryableFuncDef::DefUpdate>& updates);
void Update(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