diff --git a/extensions/microsoft-authentication/src/AADHelper.ts b/extensions/microsoft-authentication/src/AADHelper.ts index 4c3b9f2a38e..45e0f9a89f0 100644 --- a/extensions/microsoft-authentication/src/AADHelper.ts +++ b/extensions/microsoft-authentication/src/AADHelper.ts @@ -369,7 +369,7 @@ export class AzureActiveDirectoryService { existingPromise = this.handleCodeResponse(scopeData); } else { inputBox = vscode.window.createInputBox(); - existingPromise = Promise.race([this.handleCodeInputBox(inputBox, codeVerifier, scopeData), this.handleCodeResponse(scopeData)]); + existingPromise = this.handleCodeInputBox(inputBox, codeVerifier, scopeData); } this._codeExchangePromises.set(scopeData.scopeStr, existingPromise); }