Giter Club home page Giter Club logo

Comments (10)

RyanPersson avatar RyanPersson commented on May 27, 2024 2

[This doesn't seem to work after further experimentation, it doesn't seem to actually save the created image]

I was able to get a fork of this extension, telesoho/vscode-markdown-paste-image, to work with the wsl remote development suite, by forcing the extension to run on the ui/windows side where it has access to the clipboard.

I did this by adding:

    "remote.extensionKind": {
        "telesoho.vscode-markdown-paste-image": ["ui"],
    }

to settings.json.

Using:

    "remote.extensionKind": {
        "mushan.vscode-paste-image": ["ui"],
    }

may fix your issue.

from vscode-paste-image.

allamand avatar allamand commented on May 27, 2024 2

Still not working here, with the Error There is not an image in clipboard did you manage to paste images in remote vscode ?

from vscode-paste-image.

wdhongtw avatar wdhongtw commented on May 27, 2024 1

If my investigation is correct, the extension won't work on Visual Studio Code Remote Development mode. Because currently the extension use wrapper script to manage clipboard image on Remote OS, and the image we want to paste only exists in Local OS.

The potential solution metioned by @rhiswell will not help at this time. The Clipboard API Do sync the clipboard content from Local OS to Remote OS, but the API can only access text content.

There seems a clipboard API which will support arbitrary content type in the future, according to Expose Clipboard#read/write with data transfer · Issue #77790 · microsoft/vscode. Once the new API is ready and do support remote development mode, maybe we can change the implementation of this extension.

Disclaimer: I do not maintain this extension, just someone who also hope this feature come true. :D

from vscode-paste-image.

sakamoto66 avatar sakamoto66 commented on May 27, 2024 1

fix your issue.

https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image

this extention access local clipbord when use Remote Development mode.

from vscode-paste-image.

rhiswell avatar rhiswell commented on May 27, 2024

I also have this problem when installing the extension to remote side. Here is the potential solution:

https://code.visualstudio.com/api/advanced-topics/remote-extensions#using-the-clipboard

from vscode-paste-image.

GrayXu avatar GrayXu commented on May 27, 2024

same problem, TAT

from vscode-paste-image.

RyanPersson avatar RyanPersson commented on May 27, 2024

@sakamoto66 Works for me in WSL! Thank you!

Note: I had to disable other extensions which also use the Ctrl+Alt+v keybinding, in order for it to work. I thought it wasn't at first.

from vscode-paste-image.

sakamoto66 avatar sakamoto66 commented on May 27, 2024

@Ryanperson
feedback, thank you!

Note: I had to disable other extensions which also use the Ctrl+Alt+v keybinding, in order for it to work. I thought it wasn't at first.

That is the destiny of vscode.
You can find the measures here.

  1. Open Command Palet (Ctrl + Shift + P).
  2. Input "Open keyboard Shortcuts" on Command.
  3. Input "Ctrl Alt V" on filter.
  4. Disable keyboard shortcuts other than "Paste image of clipboard".

from vscode-paste-image.

pduchnovsky avatar pduchnovsky commented on May 27, 2024

fix your issue.

https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image

this extention access local clipbord when use Remote Development mode.

Unfortunately, this seems to be kind of broken, since I cannot use variables like ${currentFileNameWithoutExt}
Therefore I cannot put the images in to folders that are created specifically with my current file name without extension by Hexo.

This is my current structure of source directory, I created the test file, then pasted an image
it just created directory named ${currentFileNameWithoutExt}

source/
├─ _posts
├── ${currentFileNameWithoutExt}
└── test.md

from vscode-paste-image.

EDIflyer avatar EDIflyer commented on May 27, 2024

I'm using MkDocs-Material and have Paste Image nicely configured when working just on my local machine and pushing to Github, but would love to have it working when in VS Code remote development mode - I had the same issue as @pduchnovsky when it came to filenames though, has anyone found a good workaround?

from vscode-paste-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.