Skip to content

web config codelens does not appear immediately #1925

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions