@@ -43,7 +43,7 @@ const endpoints = createConstantMap({
4343} )
4444
4545/**
46- * 'user' -> users change the profile through Q menu`
46+ * 'user' -> users change the profile through Q menu
4747 * 'auth' -> users change the profile through webview profile selector page
4848 * 'update' -> plugin auto select the profile on users' behalf as there is only 1 profile
4949 * 'reload' -> on plugin restart, plugin will try to reload previous selected profile
@@ -53,7 +53,7 @@ export type ProfileSwitchIntent = 'user' | 'auth' | 'update' | 'reload'
5353// Only "valid" state will have non null profiles
5454type CachedApiResultWithLock = {
5555 // Lock
56- isAcquired : boolean
56+ locked : boolean
5757 // Metadata
5858 result : SuccessResult | FailureResult | undefined
5959}
@@ -167,7 +167,7 @@ export class RegionProfileManager {
167167 )
168168
169169 // Release lock so that other ide instances can continue
170- await this . releaeLock ( cached )
170+ await this . releaesLock ( cached )
171171
172172 if ( cached . result . type === 'success' ) {
173173 availableProfiles . push ( ...( cached . result as SuccessResult ) . profiles )
@@ -463,10 +463,10 @@ export class RegionProfileManager {
463463 const cachedValue = globals . globalState . tryGet < CachedApiResultWithLock > (
464464 'aws.amazonq.regionProfiles.cachedResult' ,
465465 Object ,
466- { isAcquired : false , result : undefined }
466+ { locked : false , result : undefined }
467467 )
468468
469- if ( ! cachedValue . isAcquired ) {
469+ if ( ! cachedValue . locked ) {
470470 await globals . globalState . update ( 'aws.amazonq.regionProfiles.cachedResult' , {
471471 ...cachedValue ,
472472 isAcquired : true ,
@@ -477,7 +477,7 @@ export class RegionProfileManager {
477477 return undefined
478478 }
479479
480- private async releaeLock ( cached : CachedApiResultWithLock ) {
480+ private async releaesLock ( cached : CachedApiResultWithLock ) {
481481 await globals . globalState . update ( 'aws.amazonq.regionProfiles.cachedResult' , {
482482 ...cached ,
483483 isAcquired : false ,
@@ -491,7 +491,7 @@ export class RegionProfileManager {
491491 timestamp : now ( ) ,
492492 }
493493 const pojo : CachedApiResultWithLock = {
494- isAcquired : false , // release the lock
494+ locked : false , // release the lock
495495 result : result ,
496496 }
497497 await globals . globalState . update ( 'aws.amazonq.regionProfiles.cachedResult' , pojo )
@@ -504,7 +504,7 @@ export class RegionProfileManager {
504504 timestamp : now ( ) ,
505505 }
506506 const pojo : CachedApiResultWithLock = {
507- isAcquired : false , // release the lock
507+ locked : false , // release the lock
508508 result : result ,
509509 }
510510 await globals . globalState . update ( 'aws.amazonq.regionProfiles.cachedResult' , pojo )
0 commit comments