mushanshitiancai / vscode-paste-image

paste image from clipboard to markdown/asciidoc directly!
MIT License
426 stars 129 forks source link

Pasted Images Do Not Appear in Specified Folder When Using VSCode Remote on Ubuntu from MacOS #135

Open SKDDJ opened 6 months ago

SKDDJ commented 6 months ago

Steps to Reproduce:

Expected Behavior:

After pasting an image into a project directory, the image should be saved in the specified folder, and its path should be automatically pasted.

Current Behavior:

When an image is pasted from local MacOS while using VSCode connected to an remote Ubuntu to paste, the image does not appear in the specified saved folder on Ubuntu( though the saved folder was created correctly). Furthermore, the image is not automatically pasted as expected in Ubuntu.

Environment: OS: MacOS (SSH to remote Ubuntu) VSCode Version: Version: 1.87.2 (Universal)

This issue significantly disrupts workflow, especially when dealing with LaTeX files where images need to be referenced frequently. Any insights or workarounds would be greatly appreciated.

SKDDJ commented 6 months ago

Extension Paste Image is not working#25902 @mushanshitiancai I have noticed a similar problem, and a developer mentioned that "Visual Studio Code's API offers access to the local clipboard but only supports text content, not images".

Can you provide suggestions on how to connect a local laptop to a remote Linux host to write LaTeX pasting images from local to remote? :)