Add githubIssues.showIssueNumberInTree setting#8814
Merged
Conversation
…n tree Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for displaying issue numbers in GitHub Issues tree
Add githubIssues.showIssueNumberInTree setting
Jun 30, 2026
alexr00
marked this pull request as ready for review
July 16, 2026 10:56
alexr00
approved these changes
Jul 16, 2026
alexr00
enabled auto-merge (squash)
July 16, 2026 10:56
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new user setting to optionally display GitHub issue numbers in the Issues tree, aligning the experience with the existing pull request number display option.
Changes:
- Introduces
githubIssues.showIssueNumberInTree(default:false) and localizes its description. - Updates the Issues tree item label rendering to prefix
#<number>:when enabled (including the “current issue” label). - Refreshes relevant trees when the setting toggles (Issues tree, and Notifications tree label formatting where applicable).
Show a summary per file
| File | Description |
|---|---|
| src/notifications/notificationsManager.ts | Refreshes the Notifications tree on relevant setting changes and prefixes notification labels with #<number>: when configured. |
| src/issues/issuesView.ts | Reads the new setting and conditionally prefixes issue tree labels (including current/checked-out issue rendering). |
| src/common/settingKeys.ts | Adds the SHOW_ISSUE_NUMBER_IN_TREE setting key constant. |
| package.nls.json | Adds localized description text for the new setting. |
| package.json | Declares the new githubIssues.showIssueNumberInTree configuration property. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Low
dbaeumer
approved these changes
Jul 16, 2026
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.
Issues in the GitHub Issues tree show only their title, with no way to surface the issue number — unlike pull requests, which already support
githubPullRequests.showPullRequestNumberInTree. This adds the equivalent setting for issues.Changes
githubIssues.showIssueNumberInTreeboolean (defaultfalse), declared inpackage.json/package.nls.jsonwith the keySHOW_ISSUE_NUMBER_IN_TREEinsettingKeys.ts.issuesView.ts) — When enabled, prefix issue labels with#<number>:, matching the PR tree format. Applied to both the default label and the current/checked-out issue label.onDidChangeConfigurationhandler so the tree refreshes on toggle.With the setting enabled: