Skip to content

Commit cba7177

Browse files
committed
Show logs when no keys found
1 parent 4cc5882 commit cba7177

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/remoteConnector.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,10 @@ export default class RemoteConnector extends Disposable {
621621
private async showSSHPasswordModal(password: string) {
622622
const maskedPassword = '•'.repeat(password.length - 3) + password.substring(password.length - 3);
623623

624-
const copy = 'Copy';
625-
const configureSSH = 'Configure SSH';
626-
const action = await vscode.window.showWarningMessage(`You don't have registered any SSH public key for this machine in your Gitpod account.\nAlternatively, copy and use this temporary password until workspace restart: ${maskedPassword}`, { modal: true }, copy, configureSSH);
624+
const copy: vscode.MessageItem = { title: 'Copy' };
625+
const configureSSH: vscode.MessageItem = { title: 'Configure SSH' };
626+
const showLogs: vscode.MessageItem = { title: 'Show logs', isCloseAffordance: true };
627+
const action = await vscode.window.showWarningMessage(`You don't have registered any SSH public key for this machine in your Gitpod account.\nAlternatively, copy and use this temporary password until workspace restart: ${maskedPassword}`, { modal: true }, copy, configureSSH, showLogs);
627628
if (action === copy) {
628629
await vscode.env.clipboard.writeText(password);
629630
return;
@@ -633,6 +634,7 @@ export default class RemoteConnector extends Disposable {
633634
throw new Error(`SSH password modal dialog, ${configureSSH}`);
634635
}
635636

637+
this.logger.show();
636638
throw new Error('SSH password modal dialog, Canceled');
637639
}
638640

0 commit comments

Comments
 (0)