File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+   "type"  : " bugfix"  ,
3+   "description"  : " Fix LinkageError while attempting to do Amazon Q inline suggestions in certain environments" 
4+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ junit5 = "5.11.0"
2222kotlin  = " 2.0.0" 
2323#  set in <root>/settings.gradle.kts
2424kotlinCoroutines  = " 1.8.0" 
25+ lsp4j  = " 0.24.0" 
2526mockito  = " 5.12.0" 
2627mockitoKotlin  = " 5.4.0" 
2728mockk  = " 1.13.17" 
@@ -105,6 +106,7 @@ kotlin-coroutinesTest = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-tes
105106kotlin-reflect  = { module  = " org.jetbrains.kotlin:kotlin-reflect"  , version.ref  = " kotlin"   }
106107kotlin-stdLibJdk8  = { module  = " org.jetbrains.kotlin:kotlin-stdlib-jdk8"  , version.ref  = " kotlin"   }
107108kotlin-test  = { module  = " org.jetbrains.kotlin:kotlin-test-junit"  , version.ref  = " kotlin"   }
109+ lsp4j  = { module  = " org.eclipse.lsp4j:org.eclipse.lsp4j"  , version.ref  = " lsp4j"   }
108110mockito-core  = { module  = " org.mockito:mockito-core"  , version.ref  = " mockito"   }
109111mockito-junit-jupiter  = { module  = " org.mockito:mockito-junit-jupiter"  , version.ref  = " mockito"   }
110112mockito-kotlin  = { module  = " org.mockito.kotlin:mockito-kotlin"  , version.ref  = " mockitoKotlin"   }
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ dependencies {
3636    implementation(project(" :plugin-amazonq:codewhisperer"  ))
3737    implementation(project(" :plugin-amazonq:mynah-ui"  ))
3838    implementation(project(" :plugin-amazonq:shared"  ))
39+     implementation(libs.lsp4j)
3940
4041    testImplementation(project(" :plugin-core"  ))
4142}
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ import software.aws.toolkits.jetbrains.core.credentials.profiles.ProfileWatcher
2323import  software.aws.toolkits.jetbrains.core.credentials.sso.bearer.BearerTokenProviderListener 
2424import  software.aws.toolkits.jetbrains.services.amazonq.CodeWhispererFeatureConfigService 
2525import  software.aws.toolkits.jetbrains.services.amazonq.gettingstarted.QActionGroups.Q_SIGNED_OUT_ACTION_GROUP 
26+ import  software.aws.toolkits.jetbrains.services.amazonq.profile.QRegionProfile 
2627import  software.aws.toolkits.jetbrains.services.amazonq.profile.QRegionProfileManager 
28+ import  software.aws.toolkits.jetbrains.services.amazonq.profile.QRegionProfileSelectedListener 
2729import  software.aws.toolkits.jetbrains.services.codewhisperer.customization.CodeWhispererCustomizationListener 
2830import  software.aws.toolkits.jetbrains.services.codewhisperer.customization.CodeWhispererModelConfigurator 
2931import  software.aws.toolkits.jetbrains.services.codewhisperer.explorer.QStatusBarLoggedInActionGroup 
@@ -77,6 +79,20 @@ class CodeWhispererStatusBarWidget(project: Project) :
7779                }
7880            }
7981        )
82+ 
83+         ApplicationManager .getApplication().messageBus.connect(this ).subscribe(
84+             QRegionProfileSelectedListener .TOPIC ,
85+             object  :  QRegionProfileSelectedListener  {
86+                 override  fun  onProfileSelected (
87+                     project :  Project ,
88+                     profile :  QRegionProfile ? ,
89+                 ) {
90+                     if  (project ==  this @CodeWhispererStatusBarWidget.project) {
91+                         statusBar.updateWidget(ID )
92+                     }
93+                 }
94+             }
95+         )
8096    }
8197
8298    override  fun  ID (): String  =  ID 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments