glideapps / quicktype-vscode

VS Code extension to convert JSON to TypeScript, C#, Go, and many more
https://marketplace.visualstudio.com/items?itemName=quicktype.quicktype
Apache License 2.0
230 stars 28 forks source link

Paste JSON as Code could not get clipboard contents #29

Open doggy8088 opened 4 years ago

doggy8088 commented 4 years ago

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.

halink0803 commented 4 years ago

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.

apoorvHearth commented 4 years ago

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.

paul-vd commented 3 years ago

The same issue on wsl.

doggy8088 commented 3 years ago

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 commented 3 years ago

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!