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

Add "Organize Imports" command #669

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

camerondubas
Copy link
Contributor

As requested here #635 (comment), this adds a Glint: Organize Imports command. This is a destructive version of the "Sort Imports" command as it removes unused imports while also sorting.

These commands are analogous to the TS LSP's Sort/Organize commands.

This was just a matter of passing skipDestructiveCodeActions: false to the organizeImports language service method. As such, I've standardized on using organizeImports instead sortImports in the vscode extension.

@camerondubas camerondubas changed the title Add destructive "Organize Imports" command Add "Organize Imports" command Jan 5, 2024
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.

1 participant