Skip to content

Open created issues in editor instead of browser #7046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot 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 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 Copilot AI requested a review from alexr00 June 20, 2025 13:53
Copilot finished work on behalf of alexr00 June 20, 2025 13:53
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

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
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 Copilot AI requested a review from alexr00 June 23, 2025 13:26
Copilot finished work on behalf of alexr00 June 23, 2025 13:27
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
2 participants