Repository navigation
Organize Imports should used case-insenstive sort for imports #23366
Copy link
Copy link
Closed
Labels
Domain: LS: Organize ImportsIssues with the organize imports featureIssues with the organize imports featureFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
Activity
- changed the title
[-]Organize Imports does not alphabetically sort the same way as tslint[/-][+]Organize Imports should used case-insenstive sort for imports[/+]on Apr 12, 2018 - addedVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
on Apr 12, 2018 - addedSuggestionAn idea for TypeScriptAn idea for TypeScriptAwaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureDomain: LS: Organize ImportsIssues with the organize imports featureIssues with the organize imports feature
on Apr 12, 2018 would love to see this fix.
This is also conflicting with an existing ts-lint rule, see #23888
- removedAwaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this feature
on May 4, 2018 - addedFixedA PR has been merged for this issueA PR has been merged for this issue
on May 11, 2018 - locked and limited conversation to collaborators
on Jul 31, 2018
Metadata
Metadata
Assignees
Labels
Domain: LS: Organize ImportsIssues with the organize imports featureIssues with the organize imports featureFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
From Michael Bond (@MichaelRBond) on April 12, 2018 11:23
Issue Type: Bug
When running
Organize Importson the following line:import {abc, Xyz} from "./foo";the command changes the import sort order fromabc, XyztoXyz, abc. This causes a tslint error, because tslint expects it to sort alphabetically regardless of case.Steps to reproduce:
Organize ImportsExpected 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