@@ -1819,9 +1819,13 @@ export class DefaultClient implements Client {
18191819 }
18201820 this . configStateReceived . configProviders . push ( provider ) ;
18211821 const selectedProvider : string | undefined = this . configuration . CurrentConfigurationProvider ;
1822- if ( ! selectedProvider ) {
1822+ if ( ! selectedProvider || this . showConfigureIntelliSenseButton ) {
18231823 this . handleConfigStatusOrPrompt ( "configProviders" ) ;
1824- } else if ( isSameProviderExtensionId ( selectedProvider , provider . extensionId ) ) {
1824+ if ( ! selectedProvider ) {
1825+ return ;
1826+ }
1827+ }
1828+ if ( isSameProviderExtensionId ( selectedProvider , provider . extensionId ) ) {
18251829 this . onCustomConfigurationProviderRegistered ( provider ) ;
18261830 telemetry . logLanguageServerEvent ( "customConfigurationProvider" , { "providerId" : provider . extensionId } ) ;
18271831 } else if ( selectedProvider === provider . name ) {
@@ -2674,7 +2678,9 @@ export class DefaultClient implements Client {
26742678 }
26752679 const rootFolder : vscode . WorkspaceFolder | undefined = this . RootFolder ;
26762680 const settings : CppSettings = new CppSettings ( this . RootUri ) ;
2677- const configProviderNotSet : boolean = ! settings . defaultConfigurationProvider && ! this . configuration . CurrentConfiguration ?. configurationProvider && ! this . configuration . CurrentConfiguration ?. configurationProviderInCppPropertiesJson ;
2681+ const configProviderNotSet : boolean = ! settings . defaultConfigurationProvider && ! this . configuration . CurrentConfiguration ?. configurationProvider &&
2682+ ! this . configuration . CurrentConfiguration ?. configurationProviderInCppPropertiesJson &&
2683+ ( this . lastCustomBrowseConfigurationProviderId === undefined || this . lastCustomBrowseConfigurationProviderId . Value === undefined ) ;
26782684 const compileCommandsNotSet : boolean = ! settings . defaultCompileCommands && ! this . configuration . CurrentConfiguration ?. compileCommands && ! this . configuration . CurrentConfiguration ?. compileCommandsInCppPropertiesJson ;
26792685
26802686 // Handle config providers
0 commit comments