Plugin marketplace: add explicit update command and prevent shallow clone history accumulation
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Summary
Two minor feature gaps related to plugin marketplace management:
1. No explicit /plugin marketplace update command
Currently, the only way to update a marketplace is implicitly through /plugin marketplace browse, which triggers a git pull under the hood. This behavior is non-obvious and undocumented.
Current marketplace subcommands:
- /plugin marketplace add
- /plugin marketplace remove
- /plugin marketplace list
- /plugin marketplace browse
Suggestion: Add /plugin marketplace update (or update --all) as a dedicated subcommand so users can explicitly refresh marketplace catalogs without needing to browse.
2. Shallow clone history accumulates over time
When a marketplace is first added, it's cloned as a shallow clone (--depth 1). However, subsequent updates (triggered by browse) append new commits rather than re-shallowing. Over time, the local clone at ~\AppData\Local\copilot\marketplaces\\ grows
unbounded.
For a marketplace, only the latest state of the plugins/ directory matters — intermediate commit history is unnecessary.
Suggestion: Use git fetch --depth 1 (or equivalent) during updates to keep the clone minimal, rather than a standard git pull that accumulates history.
Impact
Neither issue is critical. Both are quality-of-life improvements — the first for discoverability, the second for disk efficiency on machines with many marketplaces or frequent updates.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Behandlung des Subcommands /plugin marketplace und den Browse-Pfad zu finden, der derzeit git-Updates durchführt. Verfolge, wie Marketplace-Klone im lokalen marketplaces-Verzeichnis aktualisiert werden. Erledigt ist die Aufgabe, wenn ein expliziter Update-Befehl verfügbar ist und wiederholte Updates nur eine flache Historie beibehalten und gleichzeitig den neuesten plugins/-Stand bewahren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, shell
- Bereich
- cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100