mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Properly encode markdown file path for open links
Fixes #59523 Double encode the path so that `Uri.parse`'s decoding only strips out the first level of encoding
This commit is contained in:
@@ -25,7 +25,7 @@ export class OpenDocumentLinkCommand implements Command {
|
||||
path: string,
|
||||
fragment: string
|
||||
): vscode.Uri {
|
||||
return vscode.Uri.parse(`command:${OpenDocumentLinkCommand.id}?${encodeURIComponent(JSON.stringify({ path, fragment }))}`);
|
||||
return vscode.Uri.parse(`command:${OpenDocumentLinkCommand.id}?${encodeURIComponent(JSON.stringify({ path: encodeURIComponent(path), fragment }))}`);
|
||||
}
|
||||
|
||||
public constructor(
|
||||
|
||||
Reference in New Issue
Block a user