Create Pull Request Suggestion confirmation dialog is hard to parse (#6201)
Fixes #6189
This commit is contained in:
Родитель
61bb6eeb70
Коммит
fcdb14f0e3
|
@ -1122,7 +1122,7 @@ ${contents}
|
|||
*/
|
||||
telemetry.sendTelemetryEvent('pr.deleteComment');
|
||||
const deleteOption = vscode.l10n.t('Delete');
|
||||
const shouldDelete = await vscode.window.showWarningMessage(vscode.l10n.t('Delete comment?'), { modal: true }, deleteOption);
|
||||
const shouldDelete = await vscode.window.showWarningMessage(vscode.l10n.t('Are you sure you want to delete this comment?'), { modal: true }, deleteOption);
|
||||
|
||||
if (shouldDelete === deleteOption) {
|
||||
const handler = resolveCommentHandler(comment.parent);
|
||||
|
|
|
@ -799,7 +799,7 @@ export class ReviewManager {
|
|||
}));
|
||||
});
|
||||
if (!hasError) {
|
||||
const checkoutAllFilesResponse = vscode.l10n.t('Checkout all files');
|
||||
const checkoutAllFilesResponse = vscode.l10n.t('Reset all changes');
|
||||
vscode.window.showInformationMessage(vscode.l10n.t('All changes have been converted to suggestions.'), { modal: true, detail: vscode.l10n.t('Do you want to reset your local changes?') }, checkoutAllFilesResponse).then((response) => {
|
||||
if (response === checkoutAllFilesResponse) {
|
||||
return Promise.all(convertedFiles.map(changeFile => this._folderRepoManager.repository.checkout(changeFile.fsPath)));
|
||||
|
|
Загрузка…
Ссылка в новой задаче