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

fmt: improve import processing, add test #21172

Merged
merged 7 commits into from
Apr 3, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Apr 2, 2024

While deciding not to follow through on removing unused imports (for comprehensible reasons), working on #21169 provided insights allowing for general improvements. Picking the cherries, they should be integrated with this PR. It should serve as a base for further fix ups.


The feature of removing unused imports can still become a thing. It would fit better as as an action that can be triggered by a language sever on demand instead of being part of a formatter.

@ttytm ttytm force-pushed the fmt/import-code-quality branch 14 times, most recently from 3679000 to 5f21631 Compare April 2, 2024 16:48
@ttytm ttytm changed the title fmt: improve import processing fmt: improve import processing, add test Apr 3, 2024
Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work. Thank you.

@spytheman spytheman merged commit 55cafa9 into vlang:master Apr 3, 2024
41 of 42 checks passed
@ttytm ttytm deleted the fmt/import-code-quality branch April 14, 2024 06:35
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.

None yet

2 participants