Don't encode paths

This commit is contained in:
Matt Bierner
2022-04-14 15:00:00 -07:00
parent ac2a7cb126
commit 08e838cba3

View File

@@ -52,7 +52,7 @@ export function registerDropIntoEditor(selector: vscode.DocumentSelector) {
const snippet = new vscode.SnippetString();
uris.forEach((uri, i) => {
const mdPath = document.uri.scheme === uri.scheme
? encodeURIComponent(path.relative(URI.Utils.dirname(document.uri).fsPath, uri.fsPath))
? encodeURI(path.relative(URI.Utils.dirname(document.uri).fsPath, uri.fsPath))
: uri.toString(false);
const ext = URI.Utils.extname(uri).toLowerCase();