quicktype-vscode icon indicating copy to clipboard operation
quicktype-vscode copied to clipboard

Paste JSON as Code could not get clipboard contents

Open doggy8088 opened this issue 4 years ago • 5 comments

Moved from https://github.com/quicktype/quicktype/issues/1532

When I open VSCode from my WSL using Remote - WSL, I can't use Paste JSON as Code command. It shows Code could not get clipboard contents like below:

image

This is unlikely to be a remote issue. It can refer the extension author to this extension guide: https://code.visualstudio.com/api/advanced-topics/remote-extensions

It looks like is not using the VS Code clipboard API. If they have further issues, they can raise it here for discussion.

doggy8088 avatar Jul 31 '20 02:07 doggy8088

I also got this problem. It will be great if you guys could support remote develop with this. It seems the problem is when I copy something, it will go to the local machine clipboard instead of remote machine clipboard.

halink0803 avatar Oct 02 '20 10:10 halink0803

Even if the content is getting copied to the local machine clipboard, I believe that WSL remote machine and the local windows machine share the clipboard as I am able to copy/paste freely from and to the WSL console.

and yeah, I am also facing the same issue.

apoorvHearth avatar Nov 04 '20 08:11 apoorvHearth

The same issue on wsl.

paul-vd avatar May 27 '21 10:05 paul-vd

I think this issue has been fixed by this PR from the master branch, but the VSCode extension never released after 9/20/2018. Don't know why?! It could be losting account credential to update it. :(

doggy8088 avatar May 27 '21 23:05 doggy8088

I decided to take over this project. I already had a fork and published Paste JSON as Code (Refresh) ​extension to the VSCode Marketplace.

@quicktype If this is inappropriate, please let me know. Thanks!

doggy8088 avatar May 28 '21 01:05 doggy8088