"Move to a new file" refactoring removes all blank lines from JS code #66794
Labels
editor-code-actions
Editor inplace actions (Ctrl + .)
editor-find
Editor find operations
javascript
JavaScript support issues
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Summary
For some reason, VS Code removes all blank lines from Javascript code when using the "Refactor..." –> "Move to a new file" feature.
Versions
Steps to Reproduce:
abc
function.Expected result:
Blank lines inside and between functions are preserved when moving the code to a new file.
Actual result:
Blank lines are stripped from the code when moving to a new file.
Does this issue occur when all extensions are disabled?
Yes, tried it with
--disable-extensions
and a brand new user data dir.The text was updated successfully, but these errors were encountered: