Merge branch 'ihalip-git-default-branch-directory'

This commit is contained in:
Joao Moreno
2017-05-04 16:05:34 +02:00
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -608,6 +608,11 @@
"type": "boolean",
"description": "%config.ignoreLimitWarning%",
"default": false
},
"git.defaultCloneDirectory": {
"type": "string",
"default": null,
"description": "%config.defaultCloneDirectory%"
}
}
}
+2 -1
View File
@@ -37,5 +37,6 @@
"config.countBadge": "Controls the git badge counter. `all` counts all changes. `tracked` counts only the tracked changes. `off` turns it off.",
"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.ignoreLimitWarning": "Ignores the warning when there are too many changes in a repository",
"config.defaultCloneDirectory": "The default location where to clone a git repository"
}
+4 -1
View File
@@ -202,9 +202,12 @@ export class CommandCenter {
return;
}
const config = workspace.getConfiguration('git');
const value = config.get<string>('defaultCloneDirectory') || os.homedir();
const parentPath = await window.showInputBox({
prompt: localize('parent', "Parent Directory"),
value: os.homedir(),
value,
ignoreFocusOut: true
});