Skip to content

fix: use two-segment URL path for VS Code marketplace#146

Merged
rhuanbarreto merged 2 commits into
mainfrom
fix/copilot-plugin-install
Mar 23, 2026
Merged

fix: use two-segment URL path for VS Code marketplace#146
rhuanbarreto merged 2 commits into
mainfrom
fix/copilot-plugin-install

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • VS Code's normalizeGitRepoPath in marketplaceReference.ts requires at least two path segments (owner/repo) in marketplace URLs
  • The previous URL https://plugins.archgate.dev/archgate-vscode.git has only one segment (/archgate-vscode.git), so VS Code silently rejects it with a debug-level log "Ignoring invalid marketplace entry"
  • Changed to https://plugins.archgate.dev/archgate/vscode.git which has two segments (/archgate/vscode.git) and passes validation

Files changed

  • src/helpers/plugin-install.ts — updated VSCODE_MARKETPLACE_URL constant
  • tests/helpers/plugin-install.test.ts — updated test expectations
  • docs/ — updated URL references in EN and PT-BR plugin guides and llms-full.txt

Companion PR

  • archgate/plugins — service route update: /archgate-vscode.git/*/archgate/vscode.git/*

Test plan

  • bun test tests/helpers/plugin-install.test.ts passes (21/21)
  • bun test tests/helpers/vscode-settings.test.ts passes
  • Deploy service route change first, then verify VS Code discovers the plugin after adding the marketplace URL

🤖 Generated with Claude Code

rhuanbarreto and others added 2 commits March 23, 2026 02:18
The copilot CLI `plugin install <url>` command expects plugin.json at the
repo root, but our repo is a marketplace (marketplace.json at root, plugins
nested under plugins/archgate/). This caused "No plugin.json found" errors.

Fix both the auto-install path and manual fallback to:
1. Use archgate-vscode.git URL (.github/plugin/ format copilot expects)
2. Run two-step marketplace add + install (matching the Claude Code pattern)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
VS Code's normalizeGitRepoPath requires at least two path segments
(owner/repo) in marketplace URLs. The previous single-segment URL
(/archgate-vscode.git) was silently rejected, causing the plugin
to never appear in the Extensions tab.

Change URL from:
  https://plugins.archgate.dev/archgate-vscode.git
To:
  https://plugins.archgate.dev/archgate/vscode.git

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd829f3
Status: ✅  Deploy successful!
Preview URL: https://d195cd77.archgate-cli.pages.dev
Branch Preview URL: https://fix-copilot-plugin-install.archgate-cli.pages.dev

View logs

@rhuanbarreto rhuanbarreto merged commit e995bd5 into main Mar 23, 2026
9 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/copilot-plugin-install branch March 23, 2026 02:14
@github-actions github-actions Bot mentioned this pull request Mar 23, 2026
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.

1 participant