Skip to content

Symbols list: give declarations a different icon than definitions #3117

Closed as not planned

Description

@JeFrRe

In the symbols list, is it possible to give the declarations a different icon than the one for the definitions?

Or put the declaration marker (declaration) at the start of the line? Like it is done in the navigation list. (which would also be more consistent I think)

Activity

  1. sean-mcmanus commented on Jan 31, 2019

    @sean-mcmanus
    Contributor

    The fix for adding a declaration icon is being tracked by VS Code itself at microsoft/vscode#23927 .

    However, I believe we can move the (declaration) to the front.

    UPDATE: The fix was made, but the check in has been delayed till after the March release ships.

  2. JeFrRe commented on Jan 31, 2019

    @JeFrRe
    Author
  3. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Feb 6, 2019
  4. removed
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Mar 27, 2019
  5. sean-mcmanus commented on Mar 27, 2019

    @sean-mcmanus
    Contributor

    We decided not to fix this, because:

    1. It causes the declaration and definition to not be sorted next to each other.
    2. We're concerned that non-English speakers might be confused by what "(declaration)" is if it's more visible on the left side.
    3. We were concerned that "(declaration) " was too long to be on the left and shorter things like "(decl)" or some symbol might not be understandable.
    4. You can hover over the symbol to see (declaration)-ness on the right side.

    If more people complain about this then we could reconsiders.

    Or VS Code could fix microsoft/vscode#23927 .

  6. 9 remaining items

  7. added this to the 1.2.0 milestone on Oct 20, 2020
  8. sean-mcmanus commented on Jan 4, 2021

    @sean-mcmanus
    Contributor

    Bob Brown (@bobbrow) VS Code didn't add a declaration enum/tag/icon (just "deprecated"). Should we file a new issue with VS Code or what?

  9. elahehrashedi commented on Apr 1, 2021

    @elahehrashedi
    Contributor

    follow from here: microsoft/vscode#113845

  10. mrx23dot commented on Jan 12, 2024

    @mrx23dot

    It's so annoying to see duplicates in C files

    image

    If implementation is in the file there is no point showing its prototype,
    but in header it's useful to show the prototype if no implementation.

    tl;dr only show one

  11. bobbrow commented on Jan 3, 2025

    @bobbrow
    Contributor

    VS Code did not add the feature we needed to implement this. I see that even TypeScript uses (get) and (set) as a modifier for their properties.

  12. removed this from the On Deck milestone on Jan 3, 2025
  13. mrx23dot commented on Jan 4, 2025

    @mrx23dot

    What about only showing one instance (see my comment above) and not changing icon?

  14. locked and limited conversation to collaborators on Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions