mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add dependent field provider to resource deployment (#13664)
* Add dependent field provider to resource deployment * Change name to value provider service * Add error handling * providerId -> id * Set dropdown value correctly * missed id * back to providerId * fix updating missed id * remove placeholder
This commit is contained in:
@@ -17,12 +17,17 @@ declare module 'resource-deployment' {
|
||||
name = 'Microsoft.resource-deployment'
|
||||
}
|
||||
export interface IOptionsSourceProvider {
|
||||
readonly optionsSourceId: string,
|
||||
readonly id: string,
|
||||
getOptions(): Promise<string[] | azdata.CategoryValue[]> | string[] | azdata.CategoryValue[];
|
||||
getVariableValue?: (variableName: string, input: string) => Promise<string> | string;
|
||||
getIsPassword?: (variableName: string) => boolean | Promise<boolean>;
|
||||
}
|
||||
|
||||
export interface IValueProvider {
|
||||
readonly id: string,
|
||||
getValue(triggerValue: string): Promise<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Covers defining what the resource-deployment extension exports to other extensions
|
||||
*
|
||||
@@ -31,6 +36,7 @@ declare module 'resource-deployment' {
|
||||
*/
|
||||
|
||||
export interface IExtension {
|
||||
registerOptionsSourceProvider(provider: IOptionsSourceProvider): void
|
||||
registerOptionsSourceProvider(provider: IOptionsSourceProvider): void,
|
||||
registerValueProvider(provider: IValueProvider): void
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user