You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hediet, I thought you might be referring to #136579, so I was trying to test this out in case my branch broke something. I'm having a little difficulty duplicating this. Maybe I have the wrong settings. I have typescript.format.enable and editor.formatOnPaste disabled.
However, I do notice something odd about copying from the code in your GitHub comment. If I manually copy and paste it, I don't see what you do. However, if I use the copy icon GitHub provides, the copied text includes an extra newline at the top.
If I paste that in the current VS Code version or Insider, I see what you're seeing, but also that line 1 is a blank line.
I think what might be happening is that GitHub is not properly displaying your code. I'm guessing the code you actually wrote includes a blank line above it, but GitHub won't render it.
Since I see this in version 1.73.1, I don't think it's my branch that causes this, but please let me know if you want me to try to track down the issue here.
Copy this TS code:
Create an new TS file, disable all auto formatters and paste the copied source.
Actual result:
Expected result: Indentation should be preserved.
Maybe this was caused by a community PR that changed how enter rules are applied to pasted text.
The text was updated successfully, but these errors were encountered: