Skip to content

Add extension details button to Manage Trusted Extensions dialog #251510

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 4 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 15, 2025

This PR adds a new button to each extension item in the "Manage Trusted Extensions" dialog that allows users to quickly view extension details.

Problem

When managing trusted extensions for authentication accounts, users had no easy way to view extension details to help them make informed decisions about which extensions should have access to their accounts.

Solution

Added an eye icon button next to each extension in the dialog that executes workbench.extensions.search with an @id:extensionId query to open the Extensions view filtered to show the specific extension's details.

Changes

  • New button: Added eye icon (Codicon.eye) button with tooltip "View extension details"
  • Command integration: Button executes workbench.extensions.search @id:extensionId as requested
  • Preserved functionality: Existing settings gear button for account preferences remains unchanged
  • Minimal impact: Only modified button array and click handler logic

User Experience

Users now see two buttons per extension:

  • 👁️ Eye icon: View extension details (new functionality)
  • ⚙️ Gear icon: Manage account preferences (existing functionality)

Clicking the eye button opens the Extensions view with the specific extension displayed, helping users make informed decisions about extension permissions.

Fixes #204876.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • electronjs.org
    • Triggering command: node-gyp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


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

Copilot AI and others added 2 commits June 15, 2025 01:24
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Add a button that could take the user to the extension details Add extension details button to Manage Trusted Extensions dialog Jun 15, 2025
@Copilot Copilot AI requested a review from TylerLeonhardt June 15, 2025 01:31
Copilot finished work on behalf of TylerLeonhardt June 15, 2025 01:31
this._commandService.executeCommand('_manageAccountPreferencesForExtension', e.item.extension.id, providerId)
));
disposableStore.add(quickPick.onDidTriggerItemButton(e => {
const buttonIndex = e.button && e.item.buttons ? e.item.buttons.indexOf(e.button) : -1;
Copy link
Member

Choose a reason for hiding this comment

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

Instead of doing this check, save the button references as properties on the class and use those in the comparison

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! I've refactored the code to use class properties _viewDetailsButton and _managePreferencesButton and now use direct object comparison instead of indexOf. This is more efficient and cleaner. 98e4943

…omparison

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

Copilot AI commented Jun 15, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • electronjs.org
    • Triggering command: node-gyp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of TylerLeonhardt June 15, 2025 02:02
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.

Add a button that could take the user to the extension details
2 participants