vscode-copy-github-url icon indicating copy to clipboard operation
vscode-copy-github-url copied to clipboard

VSCode Remote is not supported

Open sequencer opened this issue 3 years ago • 3 comments

It seems in the remote machine, although this plugin is installed, it will still try to copy url to remote xsel rather than the local machine.

sequencer avatar Feb 04 '22 23:02 sequencer

Thanks for the info. No, this probably isn't supported yet, but will keep it in mind for future enhancement.

If you have an idea for how to add support for this, I'd appreciate any extra help you can provide. Thanks!

differentmatt avatar Mar 23 '22 05:03 differentmatt

As a fallback, could it open the URL with the system's default handler or open a new blank tab with the URL in it?

Also, IDK how it works in GitLens, but it does on my machine (windows 11 with VSC remote to an ubuntu machine): https://stackoverflow.com/a/63045264

acovrig avatar Mar 30 '22 18:03 acovrig

Using the vscode extension Clipboard API instead of node clipboardy might work

https://code.visualstudio.com/api/references/vscode-api#Clipboard https://github.com/differentmatt/vscode-copy-github-url/blob/b5d106bf7bd6debfb55a8fe56da3300077377615/src/extension.js#L3

rectalogic avatar Feb 04 '23 13:02 rectalogic