Skip to content

organizeImports needs to be called twice to be stableΒ #57030

Closed
@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

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions