Chat: Render pasted GitHub issue links - #334068
Merged
Megan Rogge (meganrogge) merged 4 commits intoSep 2, 2026
Merged
Conversation
Fixes #334061 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Megan Rogge (meganrogge)
September 2, 2026 17:59
View session
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Invalid zero-valued issue and pull-request paths are incorrectly recognized as GitHub links.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
src/vs/workbench/contrib/chat/browser/widget/input/editor/chatPasteProviders.ts — This also recognizes /issues/0 and /pull/00, even though GitHub issue and pull-request numbers… |
What changed in this PR
Converts pasted GitHub issue and pull-request URLs into concise Markdown links in chat inputs.
Changes:
- Detects GitHub issue and pull-request URLs during paste.
- Adds coverage for issue, pull-request, and non-GitHub URLs.
| File | Description |
|---|---|
chatPasteProviders.ts |
Adds GitHub URL recognition and Markdown insertion. |
chatPasteProviders.test.ts |
Tests the new paste behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Display pasted GitHub issue and pull request URLs as clickable inline references while preserving the full URL in the prompt and avoiding context attachments. Add a default-on setting and keep plain paste behavior for unsupported inputs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
roblourens
approved these changes
Sep 2, 2026
Megan Rogge (meganrogge)
deleted the
agents/clickable-github-links-in-issues
branch
September 2, 2026 19:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #334061
Summary
owner/repo#numberreferences in regular Chat and the Agents new-session composer.chat.pasteGitHubLinksAsReferencessetting and preserve reference ranges through prompt substitution, history/draft restoration, and replacement undo/redo.Testing
npm run transpile-client./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/attachments/chatVariables.test.ts --run src/vs/workbench/contrib/chat/test/browser/widget/input/editor/chatPasteProviders.test.ts --run src/vs/sessions/contrib/chat/test/browser/newChatInputPaste.test.ts --run src/vs/sessions/contrib/chat/test/browser/newChatInput.test.ts(37 passing)npm run typecheck-clientnpm run valid-layers-check