cquery-project / vscode-cquery

cquery plugin for Visual Studio Code
54 stars 16 forks source link

Multiple project roots #63

Open ajdavis opened 5 years ago

ajdavis commented 5 years ago

I'm working on a project with some handwritten C++ files and some C++ files that are generated by a code-generation tool. They are both specified in compile_commands.json like:

"file": "a/b/file.cpp"

... but in some cases the file is actually located in:

"generated-files/a/b/file.cpp"

Cquery cannot find the generated files. Is there a way to specify multiple project roots? Then I could have two roots: one is the real top project directory, and the other is the "generated-files" directory.

The cquery emacs integration has this feature, is it possible with this VSCode extension?