@@ -147,6 +147,7 @@ const DebugLogNotification: NotificationType<OutputNotificationBody, void> = ne
147147const InactiveRegionNotification : NotificationType < InactiveRegionParams , void > = new NotificationType < InactiveRegionParams , void > ( 'cpptools/inactiveRegions' ) ;
148148const CompileCommandsPathsNotification : NotificationType < CompileCommandsPaths , void > = new NotificationType < CompileCommandsPaths , void > ( 'cpptools/compileCommandsPaths' ) ;
149149const UpdateClangFormatPathNotification : NotificationType < string , void > = new NotificationType < string , void > ( 'cpptools/updateClangFormatPath' ) ;
150+ const UpdateIntelliSenseCachePathNotification : NotificationType < string , void > = new NotificationType < string , void > ( 'cpptools/updateIntelliSenseCachePath' ) ;
150151
151152class BlockingTask < T > {
152153 private dependency : BlockingTask < any > ;
@@ -414,7 +415,7 @@ class DefaultClient implements Client {
414415 intelliSenseEngine : settings . intelliSenseEngine ,
415416 intelliSenseEngineFallback : settings . intelliSenseEngineFallback ,
416417 intelliSenseCacheDisabled : intelliSenseCacheDisabled ,
417- intelliSenseCachePath : settings . intelliSenseCachePath ,
418+ intelliSenseCachePath : util . resolveVariables ( settings . intelliSenseCachePath , this . AdditionalEnvironment ) ,
418419 intelliSenseCacheSize : settings . intelliSenseCacheSize ,
419420 autocomplete : settings . autoComplete ,
420421 errorSquiggles : settings . errorSquiggles ,
@@ -476,6 +477,10 @@ class DefaultClient implements Client {
476477 let settings : CppSettings = new CppSettings ( this . RootUri ) ;
477478 this . languageClient . sendNotification ( UpdateClangFormatPathNotification , util . resolveVariables ( settings . clangFormatPath , this . AdditionalEnvironment ) ) ;
478479 }
480+ if ( changedSettings [ "intelliSenseCachePath" ] ) {
481+ let settings : CppSettings = new CppSettings ( this . RootUri ) ;
482+ this . languageClient . sendNotification ( UpdateIntelliSenseCachePathNotification , util . resolveVariables ( settings . intelliSenseCachePath , this . AdditionalEnvironment ) ) ;
483+ }
479484 this . configuration . onDidChangeSettings ( ) ;
480485 telemetry . logLanguageServerEvent ( "CppSettingsChange" , changedSettings , null ) ;
481486 }
0 commit comments