-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add header search paths to c_cpp_properties.json #22
Comments
I strongly wish to have greater support for tools to automatically consume information from the build system. For example, I work on many projects at both work and home that have drastically variable include paths and compiler options/definitions. It would be great to have my tools automatically pick up the appropriate flags. This is possible for me to implement; however: I have an open pull request open with Unfortunately, As for |
@vector-of-bool that plugin should be built using language server feature and not as a plain plugin. You'll see completions lagging with a large code. |
Ping for this. |
Maybe are a better option after all, https://github.com/llvm-mirror/clang-tools-extra/tree/master/clangd/clients/clangd-vscode |
There is a thread on the MS C/C++ extension issues list on how to notify the C/C++ extension of header files and how the IntelliSense engine pick up modification automatically. See here. |
Allow me to ping this topic with the addition that it is not just the |
@MathiasMagnus, you should be able to use a (Unfortunately, there's still quite a few things I haven't documented in full, although all features are at least touched on in the changelog when they were added) |
We have committed to support reading from the compile_commands.json file in the Microsoft C/C++ extension. Would adding a property to the c_cpp_properties.json file where you can direct the extension to find your compile_commands.json file be sufficient to resolve this issue? Or would it more align with your expectations to add a new workspace setting in settings.json where you could tell us where the file is? Do you ever expect to have more than one compile_commands.json file per workspace? |
@vector-of-bool did you see @bobbrow's comment? |
@a-teammate, yes. The cpptools extension added support for compilation databases a while ago, although not in full. Development is ongoing on both sides. If compilation database support reaches a certain threshold of support, having CMake Tools manipulate c_cpp_properties.json will be unnecessary. |
ping |
@loaden, MS has been working on compilation database support and even recently released a few more bugfixes/improvements. What are you "ping"-ing about in particular? |
It's been a long time. But I have good news. Keep an eye out for 1.1.0. |
good |
Currently we need to manually add the search paths to c_cpp_properties.json but it would be nice if this could be done automatically based on what cmake discovers during configure.
The text was updated successfully, but these errors were encountered: