Skip to content

fix(36102): fix extra new line in Organize Imports - #36911

Merged
Eli Barzilay (elibarzilay) merged 1 commit into
microsoft:masterfrom
sacgrover:extra-line
Mar 12, 2020
Merged

fix(36102): fix extra new line in Organize Imports#36911
Eli Barzilay (elibarzilay) merged 1 commit into
microsoft:masterfrom
sacgrover:extra-line

Conversation

@sacgrover

Copy link
Copy Markdown
Contributor

Organize Imports was inserting extra newline.

Fixes #36102

@sandersn

Copy link
Copy Markdown
Member

Eli Barzilay (@elibarzilay) mind taking a look at this PR?

@sandersn

Copy link
Copy Markdown
Member

Andrew Branch (@andrewbranch) is this related to #36688 ?

@andrewbranch

Copy link
Copy Markdown
Member

It is not.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another thing is to add tests (but TBH when I looked at that the tests I've seen compare lists of imports rather than the generated text).

Comment thread src/services/textChanges.ts Outdated
Organize Imports was inserting extra newline.

Fixes microsoft#36102
@elibarzilay
Eli Barzilay (elibarzilay) merged commit bff0ddc into microsoft:master Mar 12, 2020
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

TypeScript Organize Imports inserts extra newline

5 participants