-
Notifications
You must be signed in to change notification settings - Fork 10
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
configuration provider for cpptools / IntelliSense #22
Comments
Thank you for this input. We will have a look into it and it would be a great addon to our Plugin. |
I'd say this is currently the biggest productivity blocker for me when using VS Code and Conan together. Do you know any workaround that's possible today that let's you use IntelliSense correctly with headers from Conan dependencies? I tried a few things a while ago, also with this (no longer maintained) alternative plugin. If I remember correctly, I could partially get it to work but some manual configuration of include paths was needed and it wasn't easy to set up. If this plugin could make that process automated and works stable for both Conan packages in the cache and editable packages, that would be a big step forward in improving the Conan experience in VS Code! |
Here is one way that seems to work to get IntelliSense for Conan dependencies. It is assumed that you build manually using
You should now be able to get IntelliSense for functions/types defined in Conan dependencies. When you create new source files or add/change Conan dependencies, make sure to rebuild your project so that |
@chausner. Currently I am using the same approach as you mention, with exporting compile_commands.json from CMake. But I agree it would be a great help to integrate cpptools into the conan plugin. It will be my next task. |
|
Hi,
it would be awesome if this extension would serve as a configuration provider for cpptools / IntelliSense.
Most importanly provide the include paths for all the consumed conan packages dynamically.
Docu: https://github.com/Microsoft/vscode-cpptools-api#readme
Example: https://github.com/microsoft/vscode-cmake-tools/blob/develop/src/cpptools.ts
Cheers
The text was updated successfully, but these errors were encountered: