From 3e165fc25099d05aec098d2333773d80ce28d965 Mon Sep 17 00:00:00 2001 From: Parasaran Date: Tue, 29 Oct 2024 20:24:22 +0530 Subject: [PATCH] fix #227150, doing a recurse git clone instead of regular clone to clone the submodules as well --- extensions/git/package.nls.json | 2 +- .../welcomeGettingStarted/common/gettingStartedContent.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index 78a6b0f2e7a1f5..a77efcc49d23a8 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -334,7 +334,7 @@ ] }, "view.workbench.scm.empty": { - "message": "In order to use Git features, you can open a folder containing a Git repository or clone from a URL.\n[Open Folder](command:vscode.openFolder)\n[Clone Repository](command:git.clone)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).", + "message": "In order to use Git features, you can open a folder containing a Git repository or clone from a URL.\n[Open Folder](command:vscode.openFolder)\n[Clone Repository](command:git.cloneRecursive)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).", "comment": [ "{Locked='](command:vscode.openFolder'}", "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code", diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts b/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts index 9628466daaa4e7..923ed0512f19f8 100644 --- a/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts +++ b/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts @@ -158,7 +158,7 @@ export const startEntries: GettingStartedStartEntryContent = [ icon: Codicon.sourceControl, content: { type: 'startEntry', - command: 'command:git.clone', + command: 'command:git.cloneRecursive', } }, { @@ -536,7 +536,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [ { id: 'scmClone', title: localize('gettingStarted.scm.title', "Track your code with Git"), - description: localize('gettingStarted.scmClone.description.interpolated', "Set up the built-in version control for your project to track your changes and collaborate with others.\n{0}", Button(localize('cloneRepo', "Clone Repository"), 'command:git.clone')), + description: localize('gettingStarted.scmClone.description.interpolated', "Set up the built-in version control for your project to track your changes and collaborate with others.\n{0}", Button(localize('cloneRepo', "Clone Repository"), 'command:git.cloneRecursive')), when: 'config.git.enabled && !git.missing && workspaceFolderCount == 0', media: { type: 'svg', altText: 'Source Control view.', path: 'git.svg',