-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Filter unnecessary type suggestions in completion list #15750
Comments
JSDoc should still be considered a type location. We probably should also do a quick pass over gotodef and find all refs, to make sure we are filtering the results in the same way. |
To clarify, this issue tracks filtering the entries in the completion list based on the location where the completion is requested. i.e. in a value postilion, type names are not returned, and in a type position, values names are not returned |
I know this was marked as |
this is not fixed. still see interface suggestions. Thats sucks and annoying |
We believe this is fixed. if you are still running into issues, please file a new issue, give us the version you are using and enough context to be able to diagnose it. commenting on an old and closed issue does not really help much. |
From microsoft/vscode#26340
Problem
When working in JavaScript files, we currently show the same suggestions as we do in TypeScript files. These suggestions include many interfaces and types that JavaScript users usually do not care about:
Proposed Fix
Suggestions for interfaces and types should only be returned in JavaScript contexts where they are actually useful, such as inside JSDoc
The text was updated successfully, but these errors were encountered: