Skip to content

source.organizeImports causing extra blank line #48126

Open
@clabough

Description

@clabough

TS Template added by @mjbvz

TypeScript Version: 4.6.2

Search Terms

  • organize imports
  • source action

Issue Type: Bug

source.organizeImports is adding an extra blank line at the end when the typescript file only has exports. If there are any other lines (e.g. code) after the exports, then the extra line does not get added.

VS Code version: Code 1.65.0 (b5205cc8eb4fbaa726835538cd82372cc0222d43, 2022-03-02T11:12:08.962Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

Extensions: none

In this project, I've created a new default Angular project and added an index.ts to show the issue.

VSCode-OrganizeImports

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions