Change dialog style for Device code flow dialog (#23417)

This commit is contained in:
Cheena Malhotra
2023-07-07 22:28:50 -07:00
committed by GitHub
parent 41401cf671
commit 3f19d0026e
5 changed files with 23 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ export interface IAccountManagementService {
beginAutoOAuthDeviceCode(providerId: string, title: string, message: string, userCode: string, uri: string): Promise<void>;
endAutoOAuthDeviceCode(): void;
cancelAutoOAuthDeviceCode(providerId: string): void;
copyUserCodeAndOpenBrowser(userCode: string, uri: string): Promise<void>;
copyUserCodeAndOpenBrowser(userCode: string, uri: string): Promise<boolean>;
// SERVICE MANAGEMENT METHODS /////////////////////////////////////////
registerProvider(providerMetadata: azdata.AccountProviderMetadata, provider: azdata.AccountProvider): void;

View File

@@ -35,8 +35,8 @@ export class TestAccountManagementService implements IAccountManagementService {
return undefined;
}
async copyUserCodeAndOpenBrowser(userCode: string, uri: string): Promise<void> {
return;
async copyUserCodeAndOpenBrowser(userCode: string, uri: string): Promise<boolean> {
return true;
}
getAccountProviderMetadata(): Promise<azdata.AccountProviderMetadata[]> {