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

Sort ShowCompletions results #11861

Closed
1 task done
Spoutnik97 opened this issue May 15, 2024 · 3 comments
Closed
1 task done

Sort ShowCompletions results #11861

Spoutnik97 opened this issue May 15, 2024 · 3 comments
Labels
autocompletions Feedback for code completions in the editor enhancement [core label]

Comments

@Spoutnik97
Copy link

Check for existing issues

  • Completed

Describe the feature

Is it possible to sort completions results ?

For example when I tap ctrl+space I get this pop up menu for my React App, but I don't use HTMLOptGroupElement at all and need to scroll down up to my local components in the "#shared" directory.

image

The problem is that I need to scroll for each import, and most of the time I tap "enter" on the wrong import because it is the first one.

I already added "autoImportFileExcludePatterns": ["**/node_modules/@mantine/core"]to my settings in lsp.typescript-language-server.initialization_options.preferences to ignore some imports, but would like to avoid adding the whole list. Moreover I think that HTMLOptGroupElement is from the HTML language, what I can't exclude

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@Spoutnik97 Spoutnik97 added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels May 15, 2024
@JosephTLyons JosephTLyons added autocompletions Feedback for code completions in the editor and removed triage Maintainer needs to classify the issue admin read Pending admin review labels May 15, 2024
@JosephTLyons
Copy link
Collaborator

@Spoutnik97
Copy link
Author

Yes, it is quite the same.

If there is an option to choose the order, it could be better

@notpeter
Copy link
Member

I'm going to close this issue in favor of the more general:

Please 👍 vote on those to increase visibility and subscribe to track their progress.

Thanks for reporting @Spoutnik97!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletions Feedback for code completions in the editor enhancement [core label]
Projects
None yet
Development

No branches or pull requests

3 participants