Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow client setting to sort the plugin names in autocompletion based on user preference #1150

Open
ganeshrn opened this issue Oct 13, 2021 · 0 comments

Comments

@ganeshrn
Copy link
Member

ganeshrn commented Oct 13, 2021

Problem

Currently the sort preference for auto completion is hardcoded.
Reference https://github.com/ansible/ansible-language-server/blob/main/src/providers/completionProvider.ts#L148

Allow user setting to provide a preference for sort order. For example

 "ansible.autoComplete.sortOrder": ["plugin", "fqcn", "collection", "namespace"]

Linked comment: ansible/ansible-language-server#57 (review)

Solution

Allow user setting to provide a preference for sort order. For example

 "ansible.autoComplete.sortOrder": ["plugin", "fqcn", "collection", "namespace"]

Alternatives

No response

Additional context

No response

@ganeshrn ganeshrn changed the title Allow client setting to sort the plugin names based on preference Allow client setting to sort the plugin names in autocompletion based on preference Oct 13, 2021
@ganeshrn ganeshrn changed the title Allow client setting to sort the plugin names in autocompletion based on preference Allow client setting to sort the plugin names in autocompletion based on user preference Oct 13, 2021
@ssbarnea ssbarnea transferred this issue from ansible/ansible-language-server Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant