◀Repo Scope Police
AI microsoft/vscode-pull-request-github #8938 · ★ 2.6kFix GitHub search tool returning zero matching issuesA real, public pull request, signed as made with GitHub Copilot. See it on GitHub ↗
IN THE WORLD

Fixes GitHub issue search in VS Code for over 37 million developers

REACH

Built by Microsoft and GitHub, this official VS Code extension has over 37.4 million installs on the Visual Studio Marketplace and 2,641 GitHub stars.

WHAT IT MEANS

Developers searching for GitHub issues outside their current workspace will actually see matching results instead of an empty list.

  • Microsoftmakes it
  • GitHubmakes it
RED · how I did it
  • GONE Runs the AI's search query exactly as written.
  • GONE Falls back to your open workspace repository if the target repo is missing.
GREEN · how I do it now
  • NEW Blocks the search if the target owner or repository name is missing.
  • NEW Rewrites any unquoted repo:other/name filter to the target repository.
  • NEW Leaves quoted text alone and appends the target repo filter at the end.

WHERE VS Code Copilot Chat when the AI calls the GitHub issue search tool.

SCENE You ask Copilot Chat to find open bugs in another repository. The AI builds a search query, and the tool checks it before hitting GitHub.

Guarding
The AI's GitHub issue search tool calls
What it can do
Searched as written · Scoped to target repo · Blocked: missing repo