diff --git a/src/vs/workbench/api/browser/mainThreadAuthentication.ts b/src/vs/workbench/api/browser/mainThreadAuthentication.ts index b4a775a15d1..0a485d797f5 100644 --- a/src/vs/workbench/api/browser/mainThreadAuthentication.ts +++ b/src/vs/workbench/api/browser/mainThreadAuthentication.ts @@ -322,13 +322,13 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu const { choice } = await this.dialogService.show( Severity.Info, nls.localize('confirmAuthenticationAccess', "The extension '{0}' wants to access the {1} account '{2}'.", extensionName, providerName, accountName), - [nls.localize('cancel', "Cancel"), nls.localize('allow', "Allow")], + [nls.localize('allow', "Allow"), nls.localize('cancel', "Cancel")], { - cancelId: 0 + cancelId: 1 } ); - const allow = choice === 1; + const allow = choice === 0; if (allow) { allowList.push({ id: extensionId, name: extensionName }); this.storageService.store(`${providerId}-${accountName}`, JSON.stringify(allowList), StorageScope.GLOBAL); @@ -341,13 +341,13 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu const { choice } = await this.dialogService.show( Severity.Info, nls.localize('confirmLogin', "The extension '{0}' wants to sign in using {1}.", extensionName, providerName), - [nls.localize('cancel', "Cancel"), nls.localize('allow', "Allow")], + [nls.localize('allow', "Allow"), nls.localize('cancel', "Cancel")], { - cancelId: 0 + cancelId: 1 } ); - return choice === 1; + return choice === 0; } async $setTrustedExtension(providerId: string, accountName: string, extensionId: string, extensionName: string): Promise {