Skip to content

Open created issues in editor instead of browser#7046

Merged
alexr00 merged 5 commits intomainfrom
copilot/fix-7034
Jun 25, 2025
Merged

Open created issues in editor instead of browser#7046
alexr00 merged 5 commits intomainfrom
copilot/fix-7034

Conversation

Copy link
Contributor

Copilot AI commented Jun 20, 2025

When creating a new issue through the GHPRI extension, users receive a notification with "Copy Issue Link" and "Open Issue" buttons. Previously, clicking "Open Issue" would open the issue in the browser, but since VS Code can now display issues directly in the editor, this should provide a more integrated experience.

Issue created notification

Changes Made

  • Modified notification behavior: The "Open Issue" button now opens the issue in the VS Code editor using IssueOverviewPanel.createOrShow() instead of opening it externally in the browser
  • Updated tooltip text: Changed from "browser" to "editor" to reflect the new behavior
  • Added proper imports: Added IssueOverviewPanel import to issueFeatureRegistrar.ts
  • Type safety: Added null check for folderManager parameter

User Experience

  • Before: Click "Open Issue" → Opens in browser
  • After: Click "Open Issue" → Opens in VS Code editor
  • Unchanged: "Copy Issue Link" still copies the URL for browser access

The change follows the same pattern used elsewhere in the codebase for opening issues in the editor and maintains all existing functionality while providing a better integrated experience.

Fixes #7034.


💡 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 2 commits June 20, 2025 13:49
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] Expect option to Open issue in editor after creating new issue Open created issues in editor instead of browser Jun 20, 2025
Copilot AI requested a review from alexr00 June 20, 2025 13:53
*--------------------------------------------------------------------------------------------*/

import { AssistantMessage, BasePromptElementProps, PromptElement, UserMessage } from "@vscode/prompt-tsx";
import { AssistantMessage, BasePromptElementProps, PromptElement, UserMessage } from '@vscode/prompt-tsx';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot, this change isn't related to fixing the issue.

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot, undo the changes to participantsPrompt.tsx

@alexr00
Copy link
Member

alexr00 commented Jun 23, 2025

@copilot, undo the changes to participantsPrompt.tsx

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jun 23, 2025

@copilot, undo the changes to participantsPrompt.tsx

Done. The unrelated formatting changes to participantsPrompt.tsx have been reverted in commit 93e6eb9.

@copilot, undo the changes to participantsPrompt.tsx

The changes to participantsPrompt.tsx have been reverted in commit 93e6eb9.

Copilot AI requested a review from alexr00 June 23, 2025 13:26
@alexr00 alexr00 marked this pull request as ready for review June 25, 2025 13:38
@alexr00 alexr00 enabled auto-merge (squash) June 25, 2025 13:38
@vs-code-engineering vs-code-engineering bot added this to the June 2025 milestone Jun 25, 2025
@alexr00 alexr00 merged commit 5174de3 into main Jun 25, 2025
3 checks passed
@alexr00 alexr00 deleted the copilot/fix-7034 branch June 25, 2025 17:16
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.

Expect option to Open issue in editor after creating new issue

4 participants