Add more azdata tests (#12902)

* Add more azdata tests

* fix build

* comments
This commit is contained in:
Charles Gagnon
2020-10-15 10:48:09 -07:00
committed by GitHub
parent c7e4cf7ca4
commit b460b7834c
7 changed files with 324 additions and 17 deletions

View File

@@ -13,7 +13,8 @@ export class ArcControllerConfigProfilesOptionsSource implements rd.IOptionsSour
readonly optionsSourceId = 'arc.controller.config.profiles';
constructor(private _azdataExtApi: azdataExt.IExtension) { }
async getOptions(): Promise<string[]> {
if (!this._azdataExtApi.isEulaAccepted()) { // if eula has not yet be accepted then give user a chance to accept it
const isEulaAccepted = await this._azdataExtApi.isEulaAccepted();
if (!isEulaAccepted) { // if eula has not yet be accepted then give user a chance to accept it
await this._azdataExtApi.promptForEula();
}
return (await this._azdataExtApi.azdata.arc.dc.config.list()).result;