Skip to content

Make max number of autoimport suggestions configurable #653

Description

@kldtz

Problem: Currently the maximum number of results for autoimport completions and code actions is hard-coded:

MAX_RESULTS_COMPLETIONS = 1000
MAX_RESULTS_CODE_ACTIONS = 5

For the completions it's not an issue because the number is large enough, but for code actions it often cuts off useful suggestions. I first thought that something was broken until I found these constants in the code.

Solution: I'd like to add two optional settings for these values. The default would be the current values, so it'd be a non-breaking change. I could open a PR for this.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions