Skip to content

Add configuration prompt when no issues found in completion#7260

Merged
alexr00 merged 2 commits intomainfrom
copilot/fix-7259
Jul 9, 2025
Merged

Add configuration prompt when no issues found in completion#7260
alexr00 merged 2 commits intomainfrom
copilot/fix-7259

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jul 8, 2025

When typing # to trigger issue completion and no issues are found, users previously saw an empty completion list with no guidance on how to configure their issue queries. This made the feature less discoverable and left users unsure how to set up issue completion.

Changes Made

Added a helpful configuration prompt that appears when no issues are found:

  • New completion item: "Configure issue queries..." with detail text "No issues found. Set up queries to see relevant issues."
  • Direct settings access: Selecting the prompt opens VS Code settings filtered to @ext:GitHub.vscode-pull-request-github githubIssues.queries
  • No text insertion: The prompt doesn't insert any text, preserving the user's input

Behavior

Before:

# (typing # shows empty completion list)

After:

# (typing # shows configuration prompt when no issues found)
┌─────────────────────────────────────────────────┐
│ 📝 Configure issue queries...                  │
│    No issues found. Set up queries to see rel... │
└─────────────────────────────────────────────────┘

Implementation Details

  • Uses existing workbench.action.openSettings command pattern found throughout the codebase
  • Properly localized with vscode.l10n.t() for all user-facing strings
  • Handles all edge cases: no queries configured, queries returning empty results, and issues filtered out by owner/repo
  • Preserves existing behavior when issues are available
  • Maintains markdown header detection and other existing completion logic

The prompt only appears when completionItems.size === 0, ensuring it doesn't interfere with normal issue completion when issues are available.

Fixes #7259.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] When there are no issues in the issue suggestion when typing #, we should show a prompt to configure your issue queries Add configuration prompt when no issues found in completion Jul 8, 2025
Copilot AI requested a review from alexr00 July 8, 2025 10:42
@alexr00 alexr00 marked this pull request as ready for review July 9, 2025 09:15
@alexr00 alexr00 enabled auto-merge (squash) July 9, 2025 09:15
@vs-code-engineering vs-code-engineering bot added this to the July 2025 milestone Jul 9, 2025
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jul 9, 2025

@benibenj Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub.

You can ask me to try again later by mentioning me in a new comment.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 09173bef-ff18-4213-995f-05c3f3fc2801

Sorry for the inconvenience!

@alexr00 alexr00 merged commit 45999b7 into main Jul 9, 2025
3 checks passed
@alexr00 alexr00 deleted the copilot/fix-7259 branch July 9, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When there are no issues in the issue suggestion when typing #, we should show a prompt to configure your issue queries

4 participants