Skip to content

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

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

fix(36102): fix extra new line in Organize Imports#36911
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 sandersn added the For Milestone Bug PRs that fix a bug with a specific milestone label Mar 2, 2020
@sandersn sandersn requested a review from elibarzilay March 2, 2020 20:15
@sandersn

sandersn commented Mar 2, 2020

Copy link
Copy Markdown
Member

@elibarzilay mind taking a look at this PR?

@sandersn

sandersn commented Mar 2, 2020

Copy link
Copy Markdown
Member

@andrewbranch is this related to #36688 ?

@andrewbranch

Copy link
Copy Markdown
Member

It is not.

@elibarzilay elibarzilay left a comment

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 elibarzilay merged commit bff0ddc into microsoft:master Mar 12, 2020
@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