Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
elibarzilay merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
sacgrover:extra-linesacgrover/TypeScript:extra-lineCopy head branch name to clipboard
Mar 12, 2020
Merged

fix(36102): fix extra new line in Organize Imports#36911
elibarzilay merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
sacgrover:extra-linesacgrover/TypeScript:extra-lineCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.