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
Does this issue occur when all extensions are disabled?: Yes/No
Yes
VS Code Version: 1.99.2 (user setup)
OS Version: Windows_NT x64 10.0.26100
Steps to Reproduce:
With "source.OrganizeImports" = "explicit" exports of a TypeScript file are also affected.
I set up an example that looks like this:
import sample1 from './sampleImports/sample1'
import sample10 from './sampleImports/sample10'
import sample11 from './sampleImports/sample11'
import sample12 from './sampleImports/sample12'
import sample13 from './sampleImports/sample13'
import sample2 from './sampleImports/sample2'
import sample3 from './sampleImports/sample3'
import sample4 from './sampleImports/sample4'
import sample5 from './sampleImports/sample5'
import sample6 from './sampleImports/sample6'
import sample7 from './sampleImports/sample7'
import sample8 from './sampleImports/sample8'
import sample9 from './sampleImports/sample9'
export {
sample1,
sample2,
sample3,
sample4,
sample5,
sample6,
sample7,
sample8,
sample9,
sample10,
sample11,
sample12,
sample13,
}
When I add a newline and save the file it results in this:
import sample1 from './sampleImports/sample1'
import sample10 from './sampleImports/sample10'
import sample11 from './sampleImports/sample11'
import sample12 from './sampleImports/sample12'
import sample13 from './sampleImports/sample13'
import sample2 from './sampleImports/sample2'
import sample3 from './sampleImports/sample3'
import sample4 from './sampleImports/sample4'
import sample5 from './sampleImports/sample5'
import sample6 from './sampleImports/sample6'
import sample7 from './sampleImports/sample7'
import sample8 from './sampleImports/sample8'
import sample9 from './sampleImports/sample9'
export {
sample1, sample10,
sample11,
sample12,
sample13, sample2,
sample3,
sample4,
sample5,
sample6,
sample7,
sample8,
sample9
}
I expect the order of the exports to be untouched.
We are using an EsLint Plugin to sort the exports alphabetically (which is not happy with the result of the import organization), but the issue stems from the setting. Launching VS Code without any extension produces the same result.
The example can be found here: https://github.com/Zitrooone/vscode-organizeImports-test
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Yes/No
Yes
Steps to Reproduce:
With
"source.OrganizeImports" = "explicit"
exports of a TypeScript file are also affected.I set up an example that looks like this:
When I add a newline and save the file it results in this:
I expect the order of the exports to be untouched.
We are using an EsLint Plugin to sort the exports alphabetically (which is not happy with the result of the import organization), but the issue stems from the setting. Launching VS Code without any extension produces the same result.
The example can be found here: https://github.com/Zitrooone/vscode-organizeImports-test
The text was updated successfully, but these errors were encountered: