Skip to content

Feature Request: Allow outline panel to show access specifier (i.e. private, public, protected) #7120

Closed

Description

@YalandHong

I found #3117 and microsoft/vscode#113845 discussing similar problem. Actually I only want some extra small, grey text showing private or public beside the names of class members, just like what "declaration" does now.

Screenshots
Screenshot from 2021-03-05 21-02-02

Displaying other keywords, such as override, virtual would also be helpful.

Originally posted by YalandHong in #7112

Activity

  1. sean-mcmanus commented on Mar 8, 2021

    @sean-mcmanus
    Contributor

    Looks like the private/public data isn't immediately available with our current implementation so we'd have to investigate how to get that from our database.

  2. added this to the Triage milestone on Mar 11, 2021
  3. github-actions commented on May 11, 2021

    @github-actions

    This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.

  4. HO-COOH commented on May 18, 2021

    @HO-COOH

    It's kind of related to #1955

    In VS, there will be a lock icon on private/protected member, in both the object view and the auto completion pop-up.
    image

    Would be nice to see in vscode too.

  5. modified the milestones: Triage, Backlog on May 19, 2021
  6. removed
    more votes neededIssues that have been postponed until more community members upvote it
    on May 19, 2021
  7. github-actions commented on May 19, 2021

    @github-actions

    This feature request has received enough votes to be added to our backlog.

  8. sean-mcmanus commented on May 20, 2021

    @sean-mcmanus
    Contributor

    HO-COOH Thanks for you comment -- it made me realize that VS had it, so the data must be easily obtainable in our database, and I was able to locate it when I looked again.

    image

    Icons are being tracked by microsoft/vscode#113845

  9. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on May 25, 2021
  10. sean-mcmanus commented on May 26, 2021

    @sean-mcmanus
    Contributor

    private/protected labels are shown with https://github.com/microsoft/vscode-cpptools/releases/tag/1.4.0-insiders3 (public is the default and is not shown).

  11. sean-mcmanus commented on May 27, 2021

    @sean-mcmanus
    Contributor

    FYI, this only works in the definition of the class/struct, and the scope modifiers don't appear in the implementation of methods that are in a separate .cpp file (handling that case would probably be a VS bug since they don't even support that).

  12. locked and limited conversation to collaborators on Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Document SymbolOutline view and breadcrumbsLanguage ServiceWorks in VSSo we'd need to fix it for VS Code to reach parity.enhancementImprovement to an existing featurefixedCheck the Milestone for the release in which the fix is or will be available.quick fix

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions