MCPcopy Create free account
hub / github.com/Borvik/vscode-postgres / setDisplayName

Method setDisplayName

src/commands/addConnection.ts:234–245  ·  view source on GitHub ↗
(input: MultiStepInput, state: Partial<ConnectionState>)

Source from the content-addressed store, hash-verified

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

Callers 1

setDatabaseMethod · 0.95

Calls 1

showInputBoxMethod · 0.80

Tested by

no test coverage detected