mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* Improved behavior for accepting EULA. (#12453) * working version of overloading "select" button * promptForEula to use showErrorMessage * make parameter optional in promptForEula * remove test code * PR feedback * eula to EULA * minor fix * Fix compile error Co-authored-by: Arvind Ranasaria <ranasaria@outlook.com>
This commit is contained in:
13
extensions/azdata/src/typings/azdata-ext.d.ts
vendored
13
extensions/azdata/src/typings/azdata-ext.d.ts
vendored
@@ -240,6 +240,19 @@ declare module 'azdata-ext' {
|
||||
|
||||
export interface IExtension {
|
||||
azdata: IAzdataApi;
|
||||
|
||||
/**
|
||||
* returns true if AZDATA CLI EULA has been previously accepted by the user.
|
||||
*/
|
||||
isEulaAccepted(): boolean;
|
||||
|
||||
/**
|
||||
* Prompts user to accept EULA. Stores and returns the user response to EULA prompt.
|
||||
* @param requireUserAction - if the prompt is required to be acted upon by the user. This is typically 'true' when this method is called to address an Error when the EULA needs to be accepted to proceed.
|
||||
*
|
||||
* pre-requisite, the calling code has to ensure that the EULA has not yet been previously accepted by the user. The code can use @see isEulaAccepted() call to ascertain this.
|
||||
* returns true if the user accepted the EULA.
|
||||
*/
|
||||
promptForEula(requireUserAction?: boolean): Promise<boolean>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user