We only need to wait on the input box for un-supported environments (#157157)

we only need to wait on the input box for un-supported environments
This commit is contained in:
Tyler James Leonhardt
2022-08-04 14:55:51 -07:00
committed by GitHub
parent 0d5d5a0fb5
commit d859b334cb

View File

@@ -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);
}