(input: MultiStepInput, state: Partial<ConnectionState>)
| 91 | } |
| 92 | |
| 93 | async setPassword(input: MultiStepInput, state: Partial<ConnectionState>) { |
| 94 | state.password = await input.showInputBox({ |
| 95 | title: this.TITLE, |
| 96 | step: input.CurrentStepNumber, |
| 97 | totalSteps: this.TotalSteps, |
| 98 | prompt: 'The password of the PostgreSQL user', |
| 99 | placeholder: '', |
| 100 | ignoreFocusOut: true, |
| 101 | password: true, |
| 102 | value: (typeof state.password === 'string') ? state.password : '', |
| 103 | validate: async (value) => '' |
| 104 | }); |
| 105 | return (input: MultiStepInput) => this.setPort(input, state); |
| 106 | } |
| 107 | |
| 108 | async setPort(input: MultiStepInput, state: Partial<ConnectionState>) { |
| 109 | state.port = await input.showInputBox({ |
no test coverage detected