Skip to content

Commit

Permalink
Avoid double encoding vscode.dev links (#181002)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl authored Apr 27, 2023
1 parent d6290ef commit 180f909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/github/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function copyVscodeDevLink(gitAPI: GitAPI, useSelection: boolean, context:
try {
const permalink = getLink(gitAPI, useSelection, getVscodeDevHost(), 'headlink', context, includeRange);
if (permalink) {
return vscode.env.clipboard.writeText(encodeURI(permalink));
return vscode.env.clipboard.writeText(permalink);
}
} catch (err) {
vscode.window.showErrorMessage(err.message);
Expand Down

0 comments on commit 180f909

Please sign in to comment.