CodeSnap
CodeSnap copied to clipboard
CTR+C (Copy to clipboard)
Nothing happend, only error "Can't open display". Tested on linux and windows. Whats wrong?
Same here, I use VSCode + WSL. Even tried installing xclip to WSL.
Also the same problem, works fine without a remote connection, but the following error when in a WSL remote connection:

Our current method of copying to clipboard does not seem to be compatible with WSL... It's possible this could be worked around in the future, but it not working with WSL is expected at the moment.
I like it more as it is currently, just by right clicking it copies to the clipboard, I prefer that to having to select and copy with the classic Ctrl + C method
I had the same issue with a remote headless centos vm from Windows. Probably because it needs to output to a display.... 🤷♂️ So, I don't know if it has already been mentioned, but you can force Codesnap to install locally instead of remotely (WSL, SSH, ...). In vscode settings, add:
"remote.extensionKind": {
"adpyke.codesnap": [ "ui" ],
}
Then... hum... I disabled the extension, restarted vscode, and it proposed me to install it locally. I did, then enabled it and restarted (not sure all of this is necessary). Now It works as it uses the host, Windows for me, to copy.
Can someone verify if the issue persists as of v1.3.4?