ryu1kn / vscode-partial-diff

Visual Studio Code Extension. Take a diff of 2 parts of text(s)
https://marketplace.visualstudio.com/items?itemName=ryu1kn.partial-diff
MIT License
186 stars 16 forks source link

Clipboard diff does not work with VS code 3.15 in remote ssh #42

Closed FancyQian closed 4 years ago

FancyQian commented 5 years ago

Clipboard diff does not work with VS code 3.15 in remote ssh

yyb196 commented 5 years ago

+1, need this feature too

ryu1kn commented 5 years ago

Hi @WeiXiaoQian and @yyb196 , sorry somehow I overlooked this issue. Is remote ssh an extension? Could you provide the steps to reproduce?

FancyQian commented 5 years ago

Hi @ryu1kn,

  1. You should have a Linux server like Ubuntu, Centos.. with SSH open.
  2. Install https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh
  3. Use remote ssh extension connect your Linux host via SSH.
  4. Then the Clipboard diff does not work properly.

Thanks.

ryu1kn commented 4 years ago

Upon calling Compare Text with Clipboard

image

After installing xsel on SSH-ed machine

image

I wonder if replacing Clipboardy with VS Code's Clipboard API can solve the problem 🤔

ryu1kn commented 4 years ago

Memo: Used ubuntu-sshd to run a SSH daemon for testing.

ryu1kn commented 4 years ago

Promising https://code.visualstudio.com/blogs/2019/05/02/remote-development#_extension-authors

ryu1kn commented 4 years ago

Fixed in v1.4.1 ✅