diff --git a/query.h b/query.h index b173f52d..94bbe53d 100644 --- a/query.h +++ b/query.h @@ -231,4 +231,18 @@ struct QueryableDatabase { void Update(const std::vector& updates); void Update(const std::vector& updates); void Update(const std::vector& updates); -}; \ No newline at end of file +}; + + + +// 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