telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
135 stars 41 forks source link

Adding WSL Support + Refactor #54

Closed vezaynk closed 2 years ago

vezaynk commented 2 years ago

Accessing clipboard from WSL is done the exact same way as in windows, the only thing to be careful with are that the paths must be converted to window's format.

Tests:

I'm not sure how to setup automated cross-platform tests (especially for WSL). I tested it for WSL, I'll need help testing it for other platforms.

WSL:

Windows 10:

Windows 32:

Darwin (Seems to be missing scripts across the board, no way for it to work):

vezaynk commented 2 years ago

@telesoho Ready for review. I need some help testing it, but I'm fairly confident that everything should just work.

telesoho commented 2 years ago

@knyzorg Great job! Thank you. I'm also not sure how to setup cross-platform tests too. Anyway, I published it so that other people can help.