(input: MultiStepInput, state: Partial<ConnectionState>)
| 232 | } |
| 233 | |
| 234 | async setDisplayName(input: MultiStepInput, state: Partial<ConnectionState>) { |
| 235 | state.label = await input.showInputBox({ |
| 236 | title: this.TITLE, |
| 237 | step: input.CurrentStepNumber, |
| 238 | totalSteps: this.TotalSteps, |
| 239 | prompt: 'The display name of the database connection', |
| 240 | placeholder: 'ex. My Local DB (optional)', |
| 241 | ignoreFocusOut: true, |
| 242 | value: (typeof state.label === 'string') ? state.label : '', |
| 243 | validate: async (value) => '' // empty error message (no error) |
| 244 | }); |
| 245 | } |
| 246 | |
| 247 | } |
| 248 |
no test coverage detected