@@ -145,8 +145,8 @@ export class Core {
145145 this . messenger ,
146146 ) ;
147147
148- MCPManagerSingleton . getInstance ( ) . onConnectionsRefreshed = async ( ) => {
149- await this . configHandler . reloadConfig ( ) ;
148+ MCPManagerSingleton . getInstance ( ) . onConnectionsRefreshed = ( ) => {
149+ void this . configHandler . reloadConfig ( ) ;
150150 } ;
151151
152152 this . codeBaseIndexer = new CodebaseIndexer (
@@ -156,24 +156,26 @@ export class Core {
156156 this . globalContext . get ( "indexingPaused" ) ,
157157 ) ;
158158
159- this . configHandler . onConfigUpdate ( async ( result ) => {
160- const serializedResult = await this . configHandler . getSerializedConfig ( ) ;
161- this . messenger . send ( "configUpdate" , {
162- result : serializedResult ,
163- profileId :
164- this . configHandler . currentProfile ?. profileDescription . id || null ,
165- organizations : this . configHandler . getSerializedOrgs ( ) ,
166- selectedOrgId : this . configHandler . currentOrg . id ,
167- } ) ;
168-
169- // update additional submenu context providers registered via VSCode API
170- const additionalProviders =
171- this . configHandler . getAdditionalSubmenuContextProviders ( ) ;
172- if ( additionalProviders . length > 0 ) {
173- this . messenger . send ( "refreshSubmenuItems" , {
174- providers : additionalProviders ,
159+ this . configHandler . onConfigUpdate ( ( result ) => {
160+ void ( async ( ) => {
161+ const serializedResult = await this . configHandler . getSerializedConfig ( ) ;
162+ this . messenger . send ( "configUpdate" , {
163+ result : serializedResult ,
164+ profileId :
165+ this . configHandler . currentProfile ?. profileDescription . id || null ,
166+ organizations : this . configHandler . getSerializedOrgs ( ) ,
167+ selectedOrgId : this . configHandler . currentOrg . id ,
175168 } ) ;
176- }
169+
170+ // update additional submenu context providers registered via VSCode API
171+ const additionalProviders =
172+ this . configHandler . getAdditionalSubmenuContextProviders ( ) ;
173+ if ( additionalProviders . length > 0 ) {
174+ this . messenger . send ( "refreshSubmenuItems" , {
175+ providers : additionalProviders ,
176+ } ) ;
177+ }
178+ } ) ( ) ;
177179 } ) ;
178180
179181 // Dev Data Logger
0 commit comments