git: improve promptToSaveFilesBeforeCommit message

This commit is contained in:
Joao Moreno
2019-08-08 11:22:52 +02:00
parent d69616088c
commit f7fd6b34ba

View File

@@ -1242,7 +1242,7 @@ export class CommandCenter {
if (documents.length > 0) {
const message = documents.length === 1
? localize('unsaved files single', "The following staged file is unsaved: {0}.\n\nWould you like to save it before committing?", path.basename(documents[0].uri.fsPath))
? localize('unsaved files single', "The following staged file is unsaved and will not be included in the commit if you proceed: {0}.\n\nWould you like to save it before committing?", path.basename(documents[0].uri.fsPath))
: localize('unsaved files', "There are {0} unsaved staged files.\n\nWould you like to save them before committing?", documents.length);
const saveAndCommit = localize('save and commit', "Save All & Commit");
const commit = localize('commit', "Commit Anyway");