Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

Adds a settings gear icon next to the "DESCRIPTION" label in the create PR view to make the githubPullRequests.pullRequestDescription setting more discoverable.

Changes

Webview UI (webviews/createPullRequestViewNew/app.tsx)

  • Added gear icon button positioned right of "DESCRIPTION" label
  • Handler posts pr.openDescriptionSettings message on click/Enter/Space
  • Used semantic <button> with aria-label for accessibility

Extension (src/github/createPRViewProvider.ts)

  • Added message handler that executes workbench.action.openSettings with the setting name

Styling (webviews/createPullRequestViewNew/index.css)

  • Added group-description-header flex container for label + icon
  • Icon at 70% opacity, 100% on hover/focus with smooth transitions

Screenshot

Description gear icon

The gear icon opens VS Code settings focused on githubPullRequests.pullRequestDescription, following the same pattern as the sparkle icon on the Title field.

Original prompt

This section details on the original issue you should resolve

<issue_title>Make githubPullRequests.pullRequestDescription more discoverable</issue_title>
<issue_description>We could have something in the Create webview to suggest this setting

cc @hediet </issue_description>

<agent_instructions>Add a gear icon button to the right of "DESCRIPTION" in the create view, which opens the settings editor with the setting.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@alexr00 Can be addressed in conjunciton with https://github.com//issues/4403 to prevent too many changes to the create view.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits December 9, 2025 12:05
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
…n settings

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Add gear icon for pull request description settings Add gear icon to Description label that opens pullRequestDescription setting Dec 9, 2025
Copilot AI requested a review from alexr00 December 9, 2025 12:33
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.

Make githubPullRequests.pullRequestDescription more discoverable

2 participants