Skip to content

organizeImports needs to be called twice to be stable #57030

@iteriani

Description

@iteriani

🔎 Search Terms

organizeImports

🕗 Version & Regression Information

  • I was unable to test this on prior versions because this seems to be a tooling issue.

⏯ Playground Link

No response

💻 Code

import {abc, Abc} from 'b';
import {
  I,
  R,
  M,
} from 'a';

🙁 Actual behavior

This needs to be organized twice in order to be stable. The first time we get

import {I, M, R} from 'a';
import {abc, Abc} from 'b';

and the second time we get

import {I, M, R} from 'a';
import {Abc, abc} from 'b';

🙂 Expected behavior

I'd expect

import {I, M, R} from 'a';
import {Abc, abc} from 'b';

the first time around

Additional information about the issue

No response

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions