vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Add missing include should properly take into account the include path when putting together the correct path for the #include string

Open browntarik opened this issue 2 years ago • 0 comments

image

There's a bug in which it's not properly taking into account the include path when putting together the correct path for the #include string. The bug repros in VS too. The repro is when "dir/foo2.h" also exists in an earlier (high priority in the list) include path directory so it can't be used directly (or the wrong file gets referenced which doesn't have dirfoo2) and instead it needs to reference the commented out path "dir/../../test36/dir/foo2.h"

browntarik avatar Oct 23 '23 23:10 browntarik