Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

When a workspace contains devproxyrc.json or devproxyrc.jsonc, prompt users to add the extension to .vscode/extensions.json recommendations. This improves contributor onboarding by surfacing the toolkit to team members.

Changes

  • New utility module workspace-recommendations.ts:

    • hasDevProxyConfig() - searches workspace for config files using vscode.workspace.findFiles
    • isExtensionRecommended() - parses existing .vscode/extensions.json if present
    • addExtensionToRecommendations() - creates/updates recommendations array
    • promptForWorkspaceRecommendation() - orchestrates check-prompt-update flow with global state tracking
  • Extension activation: Added non-blocking call to promptForWorkspaceRecommendation() after other initialization

  • Constants: Added Extension object with extension ID and paths

Behavior

Prompt shown once per workspace (state stored in global storage with sanitized fsPath key). Creates .vscode/ directory and extensions.json if missing. Handles parse errors and missing workspaces gracefully.

// User sees: "This workspace contains Dev Proxy configuration files. 
// Would you like to add the Dev Proxy Toolkit extension to workspace recommendations?"
// [Yes] [No]

// If Yes, creates/updates:
{
  "recommendations": [
    "garrytrinder.dev-proxy-toolkit"
  ]
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Prompt to recommend Dev Proxy Toolkit extension in .vscode/extensions.json when devproxyrc.json or devproxyrc.jsonc is detected</issue_title>
<issue_description>## Problem
When a devproxyrc.json or devproxyrc.jsonc file is detected in the current workspace, the toolkit should help projects recommend the Dev Proxy Toolkit extension for contributors.

Proposed Enhancement

  • When detecting a devproxyrc.json or devproxyrc.jsonc in the workspace:
    1. Check if .vscode/extensions.json exists.
    2. If it exists, check if garrytrinder.dev-proxy-toolkit is included in the recommendations array.
    3. If the extension is not present in the array, or if the file does not exist, prompt the user asking if they want to add garrytrinder.dev-proxy-toolkit to the project's extension recommendations.

Benefits

  • Ensures contributors are aware of and prompted to install the Dev Proxy Toolkit extension when working on relevant projects.
  • Improves onboarding and reduces setup friction for new contributors.

Acceptance Criteria

  • On detection of devproxyrc.json or devproxyrc.jsonc, checks for .vscode/extensions.json and presence of the extension in recommendations.
  • If missing, prompts the user to optionally add the extension to recommendations.
  • Minimal disruption to the user experience (no intrusive popups).
    </issue_description>

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


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add prompt to recommend Dev Proxy Toolkit extension Prompt to add extension to workspace recommendations when Dev Proxy config detected Jan 20, 2026
Copilot AI requested a review from garrytrinder January 20, 2026 09:43
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.

Prompt to recommend Dev Proxy Toolkit extension in .vscode/extensions.json when devproxyrc.json or devproxyrc.jsonc is detected

2 participants