Skip to content

Commit a501657

Browse files
authored
Incorrect dialog message (#6183)
Fixes #6164
1 parent e33ec65 commit a501657

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/view/reviewManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,10 @@ export class ReviewManager {
782782
return Promise.all(convertedFiles.map(changeFile => this._folderRepoManager.repository.checkout(changeFile.fsPath)));
783783
}
784784
});
785+
} else if (convertedFiles.length) {
786+
vscode.window.showWarningMessage(vscode.l10n.t('Not all changes could be converted to suggestions.'), { detail: vscode.l10n.t('Some of the changes may be outside of commenting ranges.\nYour changes are still available locally.'), modal: true });
785787
} else {
786-
vscode.window.showWarningMessage(vscode.l10n.t('Not all changes could be converted to suggestions.'), { detail: vscode.l10n.t('Some of the changes may be outside of commenting ranges.'), modal: true });
788+
vscode.window.showWarningMessage(vscode.l10n.t('No changes could be converted to suggestions.'), { detail: vscode.l10n.t('All of the changes are outside of commenting ranges.'), modal: true });
787789
}
788790
}
789791

0 commit comments

Comments
 (0)