Skip to content

Commit dff6f56

Browse files
authored
GitHub - fix dialog when user does not have permissions to commit (microsoft#166595)
1 parent a24677d commit dff6f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/github/src/pushErrorHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export function isInCodespaces(): boolean {
1818
async function handlePushError(repository: Repository, remote: Remote, refspec: string, owner: string, repo: string): Promise<void> {
1919
const yes = l10n.t('Create Fork');
2020
const no = l10n.t('No');
21-
const askFork = l10n.t('You don\'t have permissions to push to "{0}/{1}" on GitHub.Would you like to create a fork and push to it instead?', owner, repo);
21+
const askFork = l10n.t('You don\'t have permissions to push to "{0}/{1}" on GitHub. Would you like to create a fork and push to it instead?', owner, repo);
2222

23-
const answer = await window.showInformationMessage(askFork, yes, no);
23+
const answer = await window.showWarningMessage(askFork, { modal: true }, yes, no);
2424
if (answer !== yes) {
2525
return;
2626
}

0 commit comments

Comments
 (0)