Skip to content

Lombok generated code by annotation not showing in outline #4084

Closed

Description

@Mortinke

When I add Lombok annotations to a Java entity class, I expect to see the generated code (constructors, getters, setters, etc.) appear in the outline view — just like it does in NetBeans, Eclipse, Intellij. See also microsoft/vscode#239634

Activity

  1. rgrunber commented on Jun 24, 2025

    @rgrunber
    Member

    This seems pretty reasonable. The only reason for us not having done this that I can think of is conceptual. We use the language server integration in VS Code to generate the outline view. It's connected to textDocument/documentSymbol. The spec makes reference to the idea that these should represent symbols present in the document. The generated content by Lombok for a given source file doesn't quite match that.

    However, we ran into an even more annoying case. Most IDEs have a way to show inherited symbols in the same outline view. In that case we did it in the quick-open as that seemed more useful (See #2590 ).

  2. fbricon commented on Oct 20, 2025

    @fbricon
    Collaborator

    This is weird, the generated builder is shown in the outline, but not the other generated code. @snjeza any idea why?

    Image
  3. changed the title [-]Lombok generated code by antotation not showing in outline[/-] [+]Lombok generated code by annotation not showing in outline[/+] on Oct 20, 2025
  4. fbricon commented on Oct 20, 2025

    @fbricon
    Collaborator

    @snjeza ok so we might want to expose a setting to show generated symbols in the outline. So that we can keep it fast by default and users who really want it can toggle them on

  5. fbricon commented on Oct 20, 2025

    @fbricon
    Collaborator

    and that also means #2452 did not cover the case of generated classes, only methods.

  6. hannah23280 commented on Jan 31, 2026

    @hannah23280

    Has this been implemented?

  7. robruijter-tangelo commented on Feb 4, 2026

    @robruijter-tangelo

    also waiting for this

  8. added this to the End February 2026 milestone on Feb 12, 2026
  9. assigned and unassigned on Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions