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.
As requested here https://github.com/typed-ember/glint/pull/635#issuecomment-1827566067, 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 theorganizeImports
language service method. As such, I've standardized on using organizeImports instead sortImports in the vscode extension.