Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Move to new file" removes line separators #44230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OliverJAsh opened this issue May 24, 2021 · 0 comments Β· May be fixed by #53203
Open

"Move to new file" removes line separators #44230

OliverJAsh opened this issue May 24, 2021 · 0 comments Β· May be fixed by #53203
Labels
Bug A bug in TypeScript Domain: Refactorings e.g. extract to constant or function, rename symbol
Milestone

Comments

@OliverJAsh
Copy link
Contributor

Bug Report

πŸ”Ž Search Terms

empty new line format refactor quick fix vs code

Similar to #27294

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about refactorings

⏯ Playground Link

N/A

πŸ’» Code

const f = 1;

const g = 1;

export const result = f + g;
  1. Highlight both const f and const g and run "move to new file"

πŸ™ Actual behavior

New module:

export const f = 1;
export const g = 1;

πŸ™‚ Expected behavior

New module:

export const f = 1;

export const g = 1;
@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: Refactorings e.g. extract to constant or function, rename symbol labels May 27, 2021
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Refactorings e.g. extract to constant or function, rename symbol
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants