feat(vcs): redesign the Clone Repository dialog and support shallow clones (#866)

Clone Repository gets IntelliJ's layout: a source list on the left, a version-control selector, URL history, a directory picker, and a shallow-clone option (history truncated to N commits, git clone --depth N). Entries for hosting platforms without backend support were removed.

Co-authored-by: whyareyouserious <[email protected]>
Цей коміт міститься в:
whyareyouserious authored and GitHub committed 2026-11-03 23:21:53 +08:00
1 джерело f5e12238bb
коміт 09402e3e95
9 files changed
+424 -84

No files matched your search

+2 -1
Переглянути файл
@@ -355,9 +355,10 @@ pub async fn vcs_clone(
request: RequestId,
url: String,
dest: PathBuf,
depth: Option<u32>,
on_output: Channel<String>,
) -> IdeResult<()> {
ide_host::ops::vcs::vcs_clone(&state.host, "", request, url, dest, crate::commands::sender(on_output)).await
ide_host::ops::vcs::vcs_clone(&state.host, "", request, url, dest, depth, crate::commands::sender(on_output)).await
}
/// `git init` in `dir` (File › New Project… "Create Git repository").