Update api to pass more detailed error messaging from azurecore (#22003)

* update api to pass more detailed error messaging from azurecore

* fix formatting

* fix buid error

* fix pr comments

* move to azdata.proposed.d.ts

* pr comments

* Update extensions/azurecore/src/account-provider/auths/azureAuth.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* refactor

* pr comments

* Update src/sql/workbench/services/accountManagement/browser/accountManagementService.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* pr comments

* Update src/sql/azdata.proposed.d.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* Update extensions/azurecore/src/account-provider/auths/azureAuth.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* fix formatting

* fix compile error

* fix compile error

* pr comments

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Christopher Suh
2023-02-23 13:00:18 -08:00
committed by GitHub
parent 85056fb1b7
commit b7e0bbb64a
3 changed files with 42 additions and 18 deletions

View File

@@ -432,6 +432,18 @@ declare module 'azdata' {
azurePortalEndpoint?: string;
}
export interface PromptFailedResult {
/**
* Error code used for non-user cancelled sign in errors
*/
errorCode?: string;
/**
* Error message used for non-user cancelled sign in errors
*/
errorMessage?: string;
}
export namespace diagnostics {
/**
* Represents a diagnostics provider of accounts.