Closed v-ericawu closed 1 week ago
Thank you for reporting this issue. This behavior is actually by design as we only want to suggest this code action for headers that are supported by vcpkg.
This does however bring to light a bug where this code action is not appearing even for such headers like #include <zlib.h>
.
It looks like we were incorrectly parsing our vcpkg header database. Please keep tracking this issue to be notified when a fix is checked in.
@sean-mcmanus Verified on C/C++ 1.21.1(pre-release) still repro this issue, so could you help to re-confirm it?
Hi @v-ericawu . To clarify, you wouldn't get that option for "xxxxx.h". The feature applies only if the header is from a library supported by vcpkg. Try geos.h
:
@Colengms @sean-mcmanus Thanks for your confirmation! using ''geos.h'' will bring up the 'Learn how to install a library for this header with vcpkg' option:
Environment
Bug Summary and Steps to Reproduce
Bug Summary: The 'Learn how to install a library for this header with vcpkg' option has disappeared
Steps to reproduce:
Expected behavior: 'Learn how to install a library for this header with vcpkg' option appear![image](https://github.com/microsoft/vscode-cpptools/assets/78774400/51e45fd0-58fb-46c6-bd64-ba5aad241309)
Actual behavior: 'Learn how to install a library for this header with vcpkg' option has disappeared from C/C++ extension 1.17.2
Latest C/C++ extension version: 1.20.5![image](https://github.com/microsoft/vscode-cpptools/assets/78774400/26c2d252-7050-4712-8bde-85d1a08f5540)
C/C++ extension 1.17.2:![image](https://github.com/microsoft/vscode-cpptools/assets/78774400/ad797a97-bb8d-47a9-9626-934f9f1cad51)
Configuration and Logs
Other Extensions
/
Additional context
No response