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

Method setPassword

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

Source from the content-addressed store, hash-verified

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({

Callers 1

setUsernameMethod · 0.95

Calls 2

setPortMethod · 0.95
showInputBoxMethod · 0.80

Tested by

no test coverage detected