未验证 提交 d3cc58d9 编写于 作者: J Jonas Littorin 提交者: GitHub

Added a password attribute to input variable of type "promptString".

fixes #90481
上级 ddaa55ce
......@@ -259,6 +259,9 @@ export abstract class BaseConfigurationResolverService extends AbstractVariableR
if (info.default) {
inputOptions.value = info.default;
}
if (info.password) {
inputOptions.password = info.password;
}
return this.quickInputService.input(inputOptions).then(resolvedInput => {
return resolvedInput;
});
......
......@@ -49,6 +49,7 @@ export interface PromptStringInputInfo {
type: 'promptString';
description: string;
default?: string;
password?: boolean;
}
export interface PickStringInputInfo {
......
......@@ -44,6 +44,10 @@ export const inputsSchema: IJSONSchema = {
type: 'string',
description: defaultDescription
},
password: {
type: 'boolean',
description: nls.localize('JsonSchema.input.password', "Set to true to show a password prompt that will not show the typed value."),
},
}
},
{
......
......@@ -599,7 +599,8 @@ class MockInputsConfigurationService extends TestConfigurationService {
id: 'input3',
type: 'promptString',
description: 'Enterinput3',
default: 'default input3'
default: 'default input3',
password: true
},
{
id: 'input4',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册