telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
134 stars 40 forks source link

Not work in WSL mode, showing "Clipboard Type Unknown" #121

Closed JerryZhongJ closed 1 year ago

JerryZhongJ commented 1 year ago

To reproduce:

  1. open vscode in wsl mode in windows, open any documents.
  2. copy an image in windows, and ctrl+alt+v or use the command palette.
  3. open output palette, and select 'Markdown Paste'. Here is what I get:
[05-11 11:29:38] Clipboard Type:
[05-11 11:29:38] -1
[05-11 11:29:38] Unknown type
JerryZhongJ commented 1 year ago

By the way, I have tried re-installing the extension, but still doesn't work.

jgehrcke commented 1 year ago

Same here:

[05-14 17:53:10] "vscode-markdown-paste" is now active!
[05-14 17:53:10] Clipboard Type:
[05-14 17:53:10] -1
[05-14 17:53:10] Unknown type
[05-14 17:53:15] Clipboard Type:
[05-14 17:53:15] -1
[05-14 17:53:15] Unknown type
[05-14 17:53:45] Clipboard Type:
[05-14 17:53:45] -1
[05-14 17:53:45] Unknown type
[05-14 17:54:03] Clipboard Type:
[05-14 17:54:03] -1
[05-14 17:54:03] Unknown type

I tried this because of the following comment: https://github.com/mushanshitiancai/vscode-paste-image/issues/56#issuecomment-1000976847

This repository has not seen any activity in over 3 years. There is an actively maintained fork here: https://github.com/telesoho/vscode-markdown-paste-image -- I added WSL support to it yesterday, do take a look.

@dzylikecode tried to help with https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image

JerryZhongJ commented 1 year ago

@jgehrcke this extension works, great thanks.