mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Don't encode paths
This commit is contained in:
parent
ac2a7cb126
commit
08e838cba3
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue