From f93c8dcdeaebc3cbcc3538a94951bfc5fcfb5983 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:28:26 +0000 Subject: [PATCH 1/3] Initial plan From 7444e5cd4f4c25a69eea665f52f920e6f99be324 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:32:41 +0000 Subject: [PATCH 2/3] Initial plan for fixing permalink markdown link text Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- src/@types/vscode.proposed.chatParticipantAdditions.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts index 71520fa1ec..aa7001a3d2 100644 --- a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts +++ b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts @@ -105,6 +105,7 @@ declare module 'vscode' { isComplete?: boolean; toolSpecificData?: ChatTerminalToolInvocationData; fromSubAgent?: boolean; + presentation?: 'hidden' | 'hiddenAfterComplete' | undefined; constructor(toolName: string, toolCallId: string, isError?: boolean); } From ddeebefbe63f96ac303e65e775a9b8a13188a8e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:35:04 +0000 Subject: [PATCH 3/3] Fix Share GitHub Permalink as Markdown to always use filename Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- src/issues/shareProviders.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/issues/shareProviders.ts b/src/issues/shareProviders.ts index 2b98217004..f652a0c9d2 100644 --- a/src/issues/shareProviders.ts +++ b/src/issues/shareProviders.ts @@ -218,27 +218,7 @@ export class GitHubPermalinkAsMarkdownShareProvider extends GitHubPermalinkShare } private async getMarkdownLinkText(item: vscode.ShareableItem): Promise { - const fileName = pathLib.basename(item.resourceUri.path); - - if (item.selection) { - const document = await vscode.workspace.openTextDocument(item.resourceUri); - - const editorSelection = item.selection.start === item.selection.end - ? item.selection - : new vscode.Range(item.selection.start, new vscode.Position(item.selection.start.line + 1, 0)); - - const selectedText = document.getText(editorSelection); - if (selectedText) { - return selectedText; - } - - const wordRange = document.getWordRangeAtPosition(item.selection.start); - if (wordRange) { - return document.getText(wordRange); - } - } - - return fileName; + return pathLib.basename(item.resourceUri.path); } }