bmalehorn / vscode-fish

Fish syntax highlighting and formatting
MIT License
62 stars 6 forks source link

Extra newline on paste #21

Closed PatrickF1 closed 2 years ago

PatrickF1 commented 3 years ago

Whenever I paste into VSCode with this extension enabled, a newline is inserted right after whenever I pasted.

For example, say I have this text

echo "hi"<CURSOR>

if I copy "something" and hit paste, my buffer becomes

echo "hi"something
<CUROSOR>

Version: 1.0.22 Resolution steps tried

bmalehorn commented 3 years ago

@PatrickF1 This doesn't happen for me:

Screen Recording 2021-06-07 at 3 28 12 PM

If you uninstall vscode-fish and reload, does it still happen?

PatrickF1 commented 3 years ago

Hi, thanks for getting back to me! Yes, that was one of the resolution steps I tried :(

bmalehorn commented 3 years ago

@PatrickF1 Does this only happen in fish files, or does it happen in any other types of files?

And to be clear, when you uninstall vscode-fish and reload, does it still have an extra newline on paste or does it not happen anymore?

PatrickF1 commented 3 years ago

Does this only happen in fish files, or does it happen in any other types of files?

Only fish files

when you uninstall vscode-fish and reload, does it still have an extra newline on paste or does it not happen anymore?

It stops after I uninstall it.

PatrickF1 commented 2 years ago

I figured this out. It was some bug with Prettier. I uninstalled it and the re-installed it and now this issue is gone. Whew...

PatrickF1 commented 2 years ago

Actually it came back. FWIW I tried zgm.vscode-fish as well and it had the same bug.