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

Add #include "file.h" is incorrectly suggested instead of <file.h> for subDir/file.h

Open sean-mcmanus opened this issue 1 year ago • 2 comments

See the screenshot -- test2 is on the includePath and the current file is at the root, so it should be suggesting <file.h> since file.h is not in the same folder as the source file.

image

The issue in inherited from Visual Studio (shared code).

It was found after adding a test case for https://github.com/microsoft/vscode-cpptools/issues/11989

sean-mcmanus avatar Feb 22 '24 22:02 sean-mcmanus

@sean-mcmanus . Hey, have you found a solution for this yet? I have been experiencing a similar problem and it really bugs me off

Image

emanuel-engineer avatar May 27 '25 12:05 emanuel-engineer

@emanuel-engineer Your issue is unrelated. This issue is specifically with the Add include path code action that appears for missing symbols. Can you file a new issue with more repro details?

sean-mcmanus avatar Jun 06 '25 21:06 sean-mcmanus