Skip to content

Commit 180f909

Browse files
authored
Avoid double encoding vscode.dev links (microsoft#181002)
1 parent d6290ef commit 180f909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/github/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function copyVscodeDevLink(gitAPI: GitAPI, useSelection: boolean, context:
1717
try {
1818
const permalink = getLink(gitAPI, useSelection, getVscodeDevHost(), 'headlink', context, includeRange);
1919
if (permalink) {
20-
return vscode.env.clipboard.writeText(encodeURI(permalink));
20+
return vscode.env.clipboard.writeText(permalink);
2121
}
2222
} catch (err) {
2323
vscode.window.showErrorMessage(err.message);

0 commit comments

Comments
 (0)