Problem
When copying text from the Copilot Chat panel using rich text copy (default behavior), file references that the agent formats as workspace-relative markdown links (e.g., [src/file.ts](src/file.ts#L10)) get converted to vscode://file/... URIs in the clipboard HTML.
These vscode:// links don't work when pasted into:
- Azure DevOps wikis/work items
- Microsoft Teams
- Outlook emails
- Confluence/Notion/other documentation tools
- Any context outside VS Code
Expected behavior
When rich-copying from Chat, file links should be converted to either:
- OS file paths (e.g.,
C:\src\project\src\file.ts) — universally understandable
- Workspace-relative paths as plain text (e.g.,
src/file.ts:10) — portable and readable
- Or at minimum, the
vscode:// scheme should be a clickable protocol handler that actually opens the file when clicked from outside VS Code
Current workaround
Setting "chat.richTextCopy.enabled": false gives plain markdown, but loses all formatting (headers, bold, code blocks, tables).
Reproduction
- Open VS Code with Copilot Chat
- Ask Copilot a question that references files in your workspace (e.g., "explain this file")
- Copilot responds with clickable file links in the chat panel
- Select the response text and copy (Ctrl+C)
- Paste into any external tool (Teams, ADO, Outlook, Notion, etc.)
- File links appear as
vscode://file/... URIs that don't resolve
Environment
- VS Code: 1.99+
- OS: Windows 11
- Copilot Chat: built-in (GitHub Copilot extension)
Problem
When copying text from the Copilot Chat panel using rich text copy (default behavior), file references that the agent formats as workspace-relative markdown links (e.g.,
[src/file.ts](src/file.ts#L10)) get converted tovscode://file/...URIs in the clipboard HTML.These
vscode://links don't work when pasted into:Expected behavior
When rich-copying from Chat, file links should be converted to either:
C:\src\project\src\file.ts) — universally understandablesrc/file.ts:10) — portable and readablevscode://scheme should be a clickable protocol handler that actually opens the file when clicked from outside VS CodeCurrent workaround
Setting
"chat.richTextCopy.enabled": falsegives plain markdown, but loses all formatting (headers, bold, code blocks, tables).Reproduction
vscode://file/...URIs that don't resolveEnvironment