Skip to content

Typescript "Organize Imports" action inserts loads of blank lines in import statements #41417

Closed
@DanTup

Description

@DanTup

TS Template added by @mjbvz

TypeScript Version: 4.2.0-dev.20201103

Search Terms

  • organize imports
  • alias

When running TypeScript's "Organize Imports" action on this file from the LSP client:

https://github.com/microsoft/vscode-languageserver-node/blob/05fa3b55538acaa87647111d528d39ddbd86caa2/client/src/common/client.ts

It makes a mess of the file, inserting lots of blank lines in between each class:

Nov-05-2020 14-23-21

I've disabled all other extensions but it still occurs. It shows TS 4.0.3 in the status bar if that's important.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions