Skip to content
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

#include "" completion doesn't show files in the current directory if the path isn't in the includePath #2031

Closed
sean-mcmanus opened this issue May 23, 2018 · 2 comments
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@sean-mcmanus
Copy link
Contributor

Without recursive includes, test.cpp and test.h are in the same folder, not in includePath, the #include "" won't show test.h in the completion list in test.cpp.

@sean-mcmanus sean-mcmanus added this to the 0.17.4 milestone May 23, 2018
@sean-mcmanus sean-mcmanus modified the milestones: 0.17.4, 0.17.5 May 31, 2018
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Jun 5, 2018
@momadacoding
Copy link

When the .h file and .cpp file is in the same folder, the .cpp file could not find the .h file.
Maybe the same as #994
I use the code in https://github.com/jjuiddong/Introduction-to-3D-Game-Programming-With-DirectX11 , and add the "${workspaceFolder}/Common/**" to the includePath
Anyway to add the current folder to includePath ?

@sean-mcmanus
Copy link
Contributor Author

sean-mcmanus commented Jun 25, 2018

This bug is just for #include completions. The IntelliSense engine already adds the current folder automatically so any file that uses #include "header.h" should find header.h if it's in the same directory as the source file. Recursive includes is only required if header.h is in a subfolder. It's possible that some required defines are missing. Which header file can't be found? It would be better if you opened a new issue for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

3 participants