diff --git a/extensions/git/package.json b/extensions/git/package.json index e6e7d350c45..9bbce1ea371 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -609,10 +609,10 @@ "description": "%config.ignoreLimitWarning%", "default": false }, - "git.cloneDirectory": { + "git.defaultCloneDirectory": { "type": "string", "default": null, - "description": "%config.cloneDirectory%" + "description": "%config.defaultCloneDirectory%" } } } diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index 270283993d4..81188ab18a3 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -38,5 +38,5 @@ "config.checkoutType": "Controls what type of branches are listed when running `Checkout to...`. `all` shows all refs, `local` shows only the local branchs, `tags` shows only tags and `remote` shows only remote branches.", "config.ignoreLegacyWarning": "Ignores the legacy Git warning", "config.ignoreLimitWarning": "Ignores the warning when there are too many changes in a repository", - "config.cloneDirectory": "When cloning a new repository, the default location will be set to this directory" + "config.defaultCloneDirectory": "The default location where to clone a git repository" } \ No newline at end of file diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index a938cb31197..5f2ea323c1c 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -203,11 +203,11 @@ export class CommandCenter { } const config = workspace.getConfiguration('git'); - const cloneDirectory = config.get('cloneDirectory') || os.homedir(); + const value = config.get('defaultCloneDirectory') || os.homedir(); const parentPath = await window.showInputBox({ prompt: localize('parent', "Parent Directory"), - value: cloneDirectory, + value, ignoreFocusOut: true }); diff --git a/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts b/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts index 0bdf195f96c..e35495db433 100644 --- a/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts +++ b/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts @@ -235,11 +235,6 @@ export function registerContributions(): void { enum: ['all', 'local', 'tags', 'remote'], default: 'all', description: nls.localize('checkoutType', "Controls what type of branches are listed."), - }, - 'git.cloneDirectory': { - type: 'string', - default: null, - description: nls.localize('cloneDirectory', "When cloning a new repository, the default location will be set to this directory."), } } });