Skip to content

LSP diagnostic for recursive handler warning #5728

Open
@ceedubs

Description

@ceedubs

Describe and demonstrate the bug

Recently @dolio added a warning for suspicious looking handlers that might result in quadratic behavior. The error message starts with:

  The recursive occurrences of the handler are called at a subset
  of the declared abilities, which might indicate that a separate
  handler is installed for each recursive call.
  
  To avoid performance problems, each handler should be installed
  only once.

It would be great if this resulted in LSP diagnostic warnings similarly to how unused local variables do.

Environment (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions