mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Encode filepaths with whitespace in links (#179167)
This commit is contained in:
parent
20aee57124
commit
602c01b268
|
@ -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(permalink);
|
||||
return vscode.env.clipboard.writeText(encodeURI(permalink));
|
||||
}
|
||||
} catch (err) {
|
||||
vscode.window.showErrorMessage(err.message);
|
||||
|
|
Loading…
Reference in a new issue