Public members of private base class show in autocomplete list #13215
Labels
bug
Feature: Auto-complete
Language Service
Works in VS
So we'd need to fix it for VS Code to reach parity.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When the autocomplete list for members of a class shows while typing, public members (fields, methods, enums, etc.) from private base classes will show in the list as if the the base class was public, despite them being inaccessible outside of the derived class.
Steps to reproduce:
.cpp
file without any extension or workplace-specific settings..
after the name.Expected behavior:
Public members of a private base class should not appear in the autocomplete list in a scope where they can't be used, just like how is done with normal private/protected members.
Configuration and Logs
"C_Cpp.autoAddFileAssociations": false,
Other Extensions
Issue persists after disabling all other extensions and reloading window.
Additional context
No response
The text was updated successfully, but these errors were encountered: