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
Describe the bug
When I run the extension in any file of my project, the extension does not sort the export statements! I have enabled the "configuration.formatExports": true, but still nothing changes.
However, it sorts the import statements very well!
To Reproduce
Go to settings.json
Add the following line: "tsImportSorter.configuration.formatExports": true
Go to an index.ts file of yours that exports lots of components or variables, and through the Command Palette run Sort Imports/Exports
See that the export statements remain in the same order, and don't change alphabetically
Expected behavior
I would expect that the export statements are sorted too, by their paths names.
Screenshots
Actual behavior
Expected behavior
OS (please complete the following information):
OS: Windows 11
Version: 22H2
VS Code (please complete the following information):
Details about how exports are formatted can be found #6 (comment). And sorting exports by paths is not supported yet because the requirement isn't clear.
Well, that is a reasonable question from your side.
I would use this feature (sorting exports) only on index.ts files, where I export only a chunk of various components/variables/types. Only in that case I would find it useful, as in the pictures above that I have attached. Otherwise, I believe it wouldn't matter to sort them.
Describe the bug
When I run the extension in any file of my project, the extension does not sort the
export
statements! I have enabled the"configuration.formatExports": true
, but still nothing changes.However, it sorts the
import
statements very well!To Reproduce
settings.json
"tsImportSorter.configuration.formatExports": true
index.ts
file of yours that exports lots of components or variables, and through theCommand Palette
runSort Imports/Exports
export
statements remain in the same order, and don't change alphabeticallyExpected behavior
I would expect that the
export
statements are sorted too, by theirpaths
names.Screenshots
Actual behavior
Expected behavior
OS (please complete the following information):
VS Code (please complete the following information):
package.json
tsconfig.json (if any)
.prettierrc/.prettierrc.js/prettier.config.js/.prettierrc.toml (if any)
filename: .prettierrc
The text was updated successfully, but these errors were encountered: