Skip to content

Commit 79e3f6a

Browse files
vijayupadyavijay upadya
andauthored
Add friendly title for PR link (#7837)
* Add friendly title for PR link * Make msg more generic --------- Co-authored-by: vijay upadya <vj@example.com>
1 parent 22e3be7 commit 79e3f6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/github/copilotRemoteAgent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,8 @@ export class CopilotRemoteAgentManager extends Disposable {
920920
const tooltip = await issueMarkdown(pullRequest, this.context, this.repositoriesManager);
921921

922922
const uri = await toOpenPullRequestWebviewUri({ owner: pullRequest.remote.owner, repo: pullRequest.remote.repositoryName, pullRequestNumber: pullRequest.number });
923-
const description = new vscode.MarkdownString(`[#${pullRequest.number}](${uri.toString()})`); // pullRequest.base.ref === defaultBranch ? `PR #${pullRequest.number}`: `PR #${pullRequest.number} → ${pullRequest.base.ref}`;
923+
const prLinkTitle = vscode.l10n.t('Open pull request in VS Code');
924+
const description = new vscode.MarkdownString(`[#${pullRequest.number}](${uri.toString()} "${prLinkTitle}")`); // pullRequest.base.ref === defaultBranch ? `PR #${pullRequest.number}`: `PR #${pullRequest.number} → ${pullRequest.base.ref}`;
924925
return {
925926
id: `${pullRequest.number}`,
926927
label: pullRequest.title || `Session ${pullRequest.number}`,

0 commit comments

Comments
 (0)