-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Organize ImportsIssues with the organize imports featureIssues with the organize imports feature
Description
After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test:
/// <reference path="fourslash.ts" />
////import {
//// Type1,
//// Type2,
//// func4,
//// Type3,
//// Type4,
//// Type5,
//// Type7,
//// Type8,
//// Type9,
//// func1,
//// func2,
//// Type6,
//// func3,
//// func5,
//// func6,
//// func7,
//// func8,
//// func9,
////} from "foo";
////interface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}
////console.log(func1, func2, func3, func4, func5, func6, func7, func8, func9);
verify.organizeImports(
`import {
func1,
func2,
func3,
func4,
func5,
func6,
func7,
func8,
func9,
Type1,
Type2,
Type3,
Type4,
Type5,
Type6,
Type7,
Type8,
Type9,
} from "foo";
interface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}
console.log(func1, func2, func3, func4, func5, func6, func7, func8, func9);`
);
Organize imports gives:
import {
func1,
func2, func3, func4, func5,
func6,
func7,
func8,
func9, Type1,
Type2, Type3,
Type4,
Type5, Type6, Type7,
Type8,
Type9
} from "foo";
interface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}
console.log(func1, func2, func3, func4, func5, func6, func7, func8, func9)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Organize ImportsIssues with the organize imports featureIssues with the organize imports feature