Avoid double encoding vscode.dev links (#181002)

This commit is contained in:
Joyce Er 2023-04-26 23:48:29 -07:00 committed by GitHub
parent d6290ef658
commit 180f909fac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);