fix: use two-segment URL path for VS Code marketplace#146
Merged
Conversation
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>
Deploying archgate-cli with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
normalizeGitRepoPathinmarketplaceReference.tsrequires at least two path segments (owner/repo) in marketplace URLshttps://plugins.archgate.dev/archgate-vscode.githas only one segment (/archgate-vscode.git), so VS Code silently rejects it with a debug-level log"Ignoring invalid marketplace entry"https://plugins.archgate.dev/archgate/vscode.gitwhich has two segments (/archgate/vscode.git) and passes validationFiles changed
src/helpers/plugin-install.ts— updatedVSCODE_MARKETPLACE_URLconstanttests/helpers/plugin-install.test.ts— updated test expectationsdocs/— updated URL references in EN and PT-BR plugin guides andllms-full.txtCompanion PR
/archgate-vscode.git/*→/archgate/vscode.git/*Test plan
bun test tests/helpers/plugin-install.test.tspasses (21/21)bun test tests/helpers/vscode-settings.test.tspasses🤖 Generated with Claude Code