File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/core/src/codewhisperer/region Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ export class RegionProfileManager {
351351 }
352352 }
353353
354+ // TODO: Should maintain sdk client in a better way
354355 async createQClient ( profile : RegionProfile ) : Promise < CodeWhispererUserClient > {
355356 const conn = this . connectionProvider ( )
356357 if ( conn === undefined || ! isSsoConnection ( conn ) ) {
@@ -363,6 +364,7 @@ export class RegionProfileManager {
363364 return this . _createQClient ( profile . region , endpoint , conn )
364365 }
365366
367+ // Visible for testing only, do not use this directly, please use createQClient(profile)
366368 async _createQClient ( region : string , endpoint : string , conn : SsoConnection ) : Promise < CodeWhispererUserClient > {
367369 const token = ( await conn . getToken ( ) ) . accessToken
368370 const serviceOption : ServiceOptions = {
You can’t perform that action at this time.
0 commit comments