Show modal error when git protocol clone fails (#160350)

This commit is contained in:
Joyce Er
2022-09-07 15:12:49 -07:00
committed by GitHub
parent 9e0db45b1e
commit 6d08356a85

View File

@@ -74,7 +74,7 @@ export class GitProtocolHandler implements UriHandler {
const errorMessage = localize('no git', 'Could not clone your repository as Git is not installed.');
const downloadGit = localize('download git', 'Download Git');
if (await window.showErrorMessage(errorMessage, downloadGit) === downloadGit) {
if (await window.showErrorMessage(errorMessage, { modal: true }, downloadGit) === downloadGit) {
commands.executeCommand('vscode.open', Uri.parse('https://aka.ms/vscode-download-git'));
}