Organize Imports should used case-insenstive sort for imports #23366
Labels
Domain: Organize Imports
Issues with the organize imports feature
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
From @MichaelRBond on April 12, 2018 11:23
Issue Type: Bug
When running
Organize Imports
on the following line:import {abc, Xyz} from "./foo";
the command changes the import sort order fromabc, Xyz
toXyz, abc
. This causes a tslint error, because tslint expects it to sort alphabetically regardless of case.Steps to reproduce:
Organize Imports
Expected Result:
sorted order of imports is the same as tslints expected sort order.
import { abc, Xyz } from "./foo";
VS Code version: Code 1.22.1 (950b8b0d37a9b7061b6f0d291837ccc4015f5ecd, 2018-04-06T00:21:13.607Z)
OS version: Darwin x64 17.4.0
System Info
Extensions (25)
(1 theme extensions excluded)
Copied from original issue: microsoft/vscode#47734
The text was updated successfully, but these errors were encountered: