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

Comment before imports is also removed for "Run on save" #30

Open
albertchen97 opened this issue Jul 3, 2023 · 1 comment
Open

Comment before imports is also removed for "Run on save" #30

albertchen97 opened this issue Jul 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@albertchen97
Copy link

albertchen97 commented Jul 3, 2023

When I enable "Run on save", it removes the comments before the line of removed import as well.

It might be handy if the comment is related to the removed import. But it can accidentally remove important comments at the beginning of the file as well.

Could you add a toggle for "removing the comment before the removed import"?

@kcmr
Copy link
Owner

kcmr commented Jul 3, 2023

Hi @albertchen97

Thank you for reporting this issue. It's not the intended behavior.
I'll try to investigate why the comments are removed (they shouldn't) and create a new version fixing it (I can't say an approximate date).

@kcmr kcmr added the bug Something isn't working label Jul 3, 2023
@kcmr kcmr self-assigned this Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants