Skip to content

Commit 653f529

Browse files
committed
Add auth docs button and make error dialog modal
1 parent d3978e1 commit 653f529

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/authentication/authentication.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,13 @@ export default class GitpodAuthenticationProvider extends Disposable implements
256256
this.telemetryService.sendUserFlowStatus('login_cancelled', flow);
257257
throw e;
258258
}
259-
this.notificationService.showErrorMessage(`Sign in failed: ${e}`, { flow, id: 'login_failed' });
259+
const showDocs = 'Show Documentation';
260+
this.notificationService.showErrorMessage(`Sign in failed: ${e}`, { flow, id: 'login_failed', modal: true })
261+
.then(action => {
262+
if (action === showDocs) {
263+
vscode.env.openExternal(vscode.Uri.parse('https://www.gitpod.io/docs/references/ides-and-editors/vscode#prerequisites'));
264+
}
265+
});
260266
this.logService.error(e);
261267
throw e;
262268
}

0 commit comments

Comments
 (0)