mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-27 02:37:26 +01:00
Merge branch 'ihalip-git-default-branch-directory'
This commit is contained in:
@@ -608,6 +608,11 @@
|
||||
"type": "boolean",
|
||||
"description": "%config.ignoreLimitWarning%",
|
||||
"default": false
|
||||
},
|
||||
"git.defaultCloneDirectory": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"description": "%config.defaultCloneDirectory%"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user