You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this issue. It looks like what you are experiencing is by-design behavior. Due to the limitations of what we can differentiate header files by, you can't use the filename as the relative path in this case. It would be more correct to provide the folder that each file resides in as well. See the example below:
@Saitama10000 To add more info, I believe it's caused by usage of "${workspaceFolder}/**" in which the include order is non-deterministic. You may be able to workaround the issue by adding a path to your include path before that to cause that path to get precedence.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Intellisense fails to distinguish same name files in different directories
Steps to reproduce:
cd build && cmake .. && cmake --build .
(build the repo to check that there are no errors from the compiler)./dir/dir0/src/main_0.cpp
and hover overtest_0_t
. Intellisense identifies it../dir/dir1/src/main_1.cpp
and hover overtest_1_t
. Intellisense doesn't identify it.Expected behavior:
6. open
./dir/dir1/src/main_1.cpp
and hover overtest_1_t
. Intellisense should identify it like it did formain_0.cpp
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: