-
Notifications
You must be signed in to change notification settings - Fork 32.8k
TypeScript (and emmet) suggestions show up in the wrong order #145877
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
Comments
Thanks for the repo @jasonwilliams! @jrieken I believe the suggestions are sorted like this due to the prefix match. However for This behavior makes sense once I understood it but feels confusing as a user. Any ideas on how we can work around this? |
Emmet shouldn't be showing up there. |
@jodymgustafson I think in your case those completions are from another extension, meaning you'll have to file a separate issue at that extension's GitHub repository. |
I believe the worst offender here is the Emmet suggestion, and will close this issue in favour of the Emmet-specific issue #51537 |
Does this issue occur when all extensions are disabled?: Yes/No
Version: 1.65.2
Commit: c722ca6
Date: 2022-03-10T14:33:49.188Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0
When using import statement completions the suggestions which come back are not always in a great order, meaning I need to cycle down a couple of times until i get what I need. This makes the development process a bit degraded compared to others IDEs.
An example is this:

In the image above, i want
ContentType
but the suggestions I get back areContentTypeHeaderStories
and an emmet suggestion. The one i want is on the 3rd row down.I don't want to swtich emmet off but I don't think emmet should be prioritised so high above TypeScript suggestions, especially when (in this case) it's being used as a "catch all".
Secondly (and this may be more for @andrewbranch) I would expect the default export
ContentTypeHeaderStories
to be belowContentType
and only be higher when I typeContentTypeH..
.Steps to Reproduce:
The text was updated successfully, but these errors were encountered: