You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using "Organize Imports", import "groups" are ignored. Instead, each group should be treated individually, retaining import grouping.
Comments separating groups are removed if the import following the comment is removed (it seems as if comments were assumed to be associated with the following import - that may be how some / many people work, but others use lines with only a comment as a "section title" and would add comments behind the code related to. Maybe this should be a setting?)
Steps to Reproduce:
In a TS source with a few imports, create 2+ groups of imports (separating them by an empty line)
Add a comment on the line above an unused import (add one if there is none)
Run "Organize Imports"
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.
@mjbvz I'm afraid I don't quite understand, isn't the functionality (as it is) part of the core? And if it is, can it easily be changed by an extension (if so, would you know of an example of an extension doing a similar thing)? And if not, are you suggesting reimplementing the functionality?
Versions:
Description:
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: