mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
fix(git-ext): fix limitWarning block the git status progress (#226577)
This commit is contained in:
@@ -2359,24 +2359,26 @@ export class Repository implements Disposable {
|
||||
const yes = { title: l10n.t('Yes') };
|
||||
const no = { title: l10n.t('No') };
|
||||
|
||||
const result = await window.showWarningMessage(`${gitWarn} ${addKnown}`, yes, no, neverAgain);
|
||||
if (result === yes) {
|
||||
this.ignore([Uri.file(folderPath)]);
|
||||
} else {
|
||||
window.showWarningMessage(`${gitWarn} ${addKnown}`, yes, no, neverAgain).then(result => {
|
||||
if (result === yes) {
|
||||
this.ignore([Uri.file(folderPath)]);
|
||||
} else {
|
||||
if (result === neverAgain) {
|
||||
config.update('ignoreLimitWarning', true, false);
|
||||
}
|
||||
|
||||
this.didWarnAboutLimit = true;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const ok = { title: l10n.t('OK') };
|
||||
window.showWarningMessage(gitWarn, ok, neverAgain).then(result => {
|
||||
if (result === neverAgain) {
|
||||
config.update('ignoreLimitWarning', true, false);
|
||||
}
|
||||
|
||||
this.didWarnAboutLimit = true;
|
||||
}
|
||||
} else {
|
||||
const ok = { title: l10n.t('OK') };
|
||||
const result = await window.showWarningMessage(gitWarn, ok, neverAgain);
|
||||
if (result === neverAgain) {
|
||||
config.update('ignoreLimitWarning', true, false);
|
||||
}
|
||||
|
||||
this.didWarnAboutLimit = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user