mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Don't encode paths
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user