mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Git - improve unsafe repository message based on feedback (#167701)
Fix #167595
This commit is contained in:
parent
a1fc4e3739
commit
4934caaf88
|
@ -331,7 +331,7 @@
|
|||
"message": "Scanning workspace for git repositories..."
|
||||
},
|
||||
"view.workbench.scm.unsafeRepository": {
|
||||
"message": "The git repository in the following folder has been detected as potentially unsafe as the folder is owned by someone else other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repository?\n[Open Repository](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)",
|
||||
"message": "The git repository in the following folder is potentially unsafe as the folder is owned by someone other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repository?\n[Open Repository](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)",
|
||||
"comment": [
|
||||
"{Locked='](command:git.api.getUnsafeRepositories'}",
|
||||
"{Locked='](command:git.addSafeDirectoryAndOpenRepository'}",
|
||||
|
@ -340,7 +340,7 @@
|
|||
]
|
||||
},
|
||||
"view.workbench.scm.unsafeRepositories": {
|
||||
"message": "The git repositories in the following folders have been detected as potentially unsafe as the folder is owned by someone else other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repositories?\n[Open Repositories](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)",
|
||||
"message": "The git repositories in the following folders are potentially unsafe as the folders are owned by someone other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repositories?\n[Open Repositories](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)",
|
||||
"comment": [
|
||||
"{Locked='](command:git.api.getUnsafeRepositories'}",
|
||||
"{Locked='](command:git.addSafeDirectoryAndOpenRepository'}",
|
||||
|
|
|
@ -780,8 +780,8 @@ export class Model implements IRemoteSourcePublisherRegistry, IPostCommitCommand
|
|||
const unsafeRepositoryPathLabels = unsafeRepositoryPaths.sort().map(m => `"${m}"`).join(', ');
|
||||
|
||||
const message = unsafeRepositoryPaths.length === 1 ?
|
||||
l10n.t('The git repository in the following folder has been detected as potentially unsafe as the folder is owned by someone else other than the current user: {0}. Do you want to open the repository?', unsafeRepositoryPathLabels) :
|
||||
l10n.t('The git repositories in the following folders have been detected as potentially unsafe as the folder is owned by someone else other than the current user: {0}. Do you want to open the repositories?', unsafeRepositoryPathLabels);
|
||||
l10n.t('The git repository in the following folder is potentially unsafe as the folder is owned by someone other than the current user: {0}. Do you want to open the repository?', unsafeRepositoryPathLabels) :
|
||||
l10n.t('The git repositories in the following folders are potentially unsafe as the folders are owned by someone other than the current user: {0}. Do you want to open the repositories?', unsafeRepositoryPathLabels);
|
||||
|
||||
const openRepository = unsafeRepositoryPaths.length === 1 ? l10n.t('Open Repository') : l10n.t('Open Repositories');
|
||||
const learnMore = l10n.t('Learn More');
|
||||
|
|
Loading…
Reference in a new issue