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 auto-imports by import symbol type #2198

Merged
merged 3 commits into from
Aug 17, 2021

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Aug 17, 2021

microsoft/pylance-release#1675
https://pycqa.github.io/isort/docs/configuration/options.html#order-by-type

I wasn't sure where or if I should add tests for it. Please let me know and I'd be happy to do them.

@erictraut
Copy link
Collaborator

Thanks for the contribution. Yeah, we'll need tests for this — something akin to completions.autoimport.*.fourslash.ts. If you want to take a crack at it, that'd be great. If not, we can help out. The fourslash test framework can be a bit hard to understand if you haven't used it before.

Copy link
Collaborator

@erictraut erictraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks!

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@erictraut erictraut merged commit 07e7319 into microsoft:main Aug 17, 2021
@cdce8p cdce8p deleted the auto-import-sorting branch August 17, 2021 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants