Skip to content

web config codelens does not appear immediately #1925

Closed

Description

@martinlippert

If you apply the quick fix to adjust or create a web config (e.g. to configure web API versioning), the code lens for the web config summary does not appear immediately at the top of the controller class (assuming you are currently editing source in the controller class).

The reason is probably that code lenses are not re-computed once the quick fix is executed (probably because the quick fix does not change the current source, but different files in the project). Most likely we need to tell the LSP client to refresh the code lenses in order to immediately show the updated web config summary code lens.

The next associated question is how and when we should trigger this. We most likely don't want to refresh code lenses every single time a quick fix is being executed. The interesting piece here is that the concrete quick fix for this case modifies other files, and that requires a code lens in the current source to be updated. We probably need a flag somewhere, so that quick fixes can indicate whether to request a code lens refresh afterwards or not.

Activity

  1. added this to the 5.4.0.RELEASE milestone on Jul 1, 2026
  2. added
    for: eclipse
    for: vscode
    on Jul 1, 2026
  3. added a commit that references this issue on Aug 13, 2026
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

    for: eclipsefor: vscodetype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions