Skip to content
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

Move to new file misses line breaks #75493

Closed
JohannesDeml opened this issue Jun 14, 2019 · 1 comment
Closed

Move to new file misses line breaks #75493

JohannesDeml opened this issue Jun 14, 2019 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@JohannesDeml
Copy link

When using move to a new file all previously made formatting (e.g. line breaks) are lost. I like the workflow of writing a class in an already existing file and then just pushing it to a new one, but losing line breaks is quite annoying and also unexpected.

Information about Visual Studio Code version:
Version: 1.35.1 (user setup)
Commit: c7d83e5
Date: 2019-06-12T14:30:02.622Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.18362

File type: .ts

Requested behaviour:
Copy all text from the class from the class beginning to the class end as is without reformatting the code (by removing line breaks).

@vscodebot vscodebot bot added the editor-clipboard Editor clipboard issues label Jun 14, 2019
@Tyriar Tyriar removed the editor-clipboard Editor clipboard issues label Jun 14, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 14, 2019

Tracked upstream by microsoft/TypeScript#27294

@mjbvz mjbvz closed this as completed Jun 14, 2019
@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jun 14, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants