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

Suggestion: Sort autocomplete importable items by locality to current file #29434

Open
eppsilon opened this issue Jan 14, 2019 · 2 comments
Open
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript

Comments

@eppsilon
Copy link

I have the "locality bonus" setting turned on. When VS Code suggests symbols in other TypeScript files (that aren't imported yet), I'd like them to be ordered so that symbols in files nearer to the current one are first.

This would be helpful because my project has many interfaces with the same name (State) that only apply in particular areas. Most of the time I just want to import the interface defined in the same directory as the current file.

@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 15, 2019
@mjbvz mjbvz removed their assignment Jan 15, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Jan 15, 2019

Moving upstream as only the TS Server can determine the locality information properly

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript In Discussion Not yet reached consensus labels Jan 16, 2019
@RyanCavanaugh
Copy link
Member

Seems like a good idea and should be cheap to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants