telesoho / vscode-markdown-paste-image

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

files being saved to incorrect location #42

Closed mivanit closed 3 years ago

mivanit commented 3 years ago

When pasting a file, if the path is set to F:/foo/img/my_image.png, the image is instead saved to C:/foo/img/my_image.png, and the path is also changed to C:/foo/img/my_image.png.

Bug occurs a windows 10 machine, using a fresh install (as of 2021-07-29) of the extension from marketplace.

The image does in fact get saved to the given location.

mask2012 commented 3 years ago

the same problem happens to me, is there any temp solution? thanks!

mask2012 commented 3 years ago

another information is, it's working fine about half month ago, and suddenly changed it's action. I'm not sure if it's caused by vscode version update or something else?

telesoho commented 3 years ago

While input values contain driver character, vscode.Uri.parse().fsPath will get a file path with no driver character. Maybe it is a bug: `

vscode.Uri.parse("f:/test/images").fsPath '/test/images' vscode.Uri.parse("file:///f:/test/images").fsPath 'f:/test/image' ` I have fixed it in new release 0.13.4.