feat(plugins): add clone sources to the Clone Repository dialog (#7948)

[[contributes.cloneSources]] (API 1.21) adds an entry to the Get from VCS source list whose required web page lists repositories and hands the chosen one to the dialog with {"op": "clone-url", "url": …}. The page is served and messaged like other plugin web UI under the key cloneSources/<id>; the dialog fills its URL and directory and git only runs what the user confirms. The standalone Get from VCS window registers only this contribution point. plugin_web_page and plugin_view_event now also run in projectless windows (outside_restricted); Restricted Mode still runs no plugin UI or code. Docs list the point under API 1.21.

Fixes #5572

Co-authored-by: arookieofc-ai <[email protected]>
Цей коміт міститься в:
arookieofc-ai[bot]таarookieofc-ai authored and GitHub committed 2026-12-04 20:46:11 +08:00
1 джерело 896ec3b924
коміт 67c00a986a
21 files changed
+480 -14

No files matched your search

+1
Переглянути файл
@@ -90,6 +90,7 @@ const TEXT_KEYS: Record<string, readonly string[]> = {
iconThemes: ["label"],
themes: ["name"],
secrets: ["label", "description"],
cloneSources: ["label"],
};
function localizeDecl(decl: unknown, keys: readonly string[], t: PluginTranslate): unknown {