vscode.dev links should be head links (#179074)

This commit is contained in:
Joyce Er
2023-04-03 19:48:02 -07:00
committed by GitHub
parent c1fbc7cb3e
commit eb57ab314b
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ function getVscodeDevHost(): string {
async function copyVscodeDevLink(gitAPI: GitAPI, useSelection: boolean, context: LinkContext, includeRange = true) {
try {
const permalink = getLink(gitAPI, useSelection, getVscodeDevHost(), undefined, context, includeRange);
const permalink = getLink(gitAPI, useSelection, getVscodeDevHost(), 'headlink', context, includeRange);
if (permalink) {
return vscode.env.clipboard.writeText(permalink);
}