Skip to content

Commit eb976d5

Browse files
authored
Merge branch 'master' into taraj/box-sample
2 parents b0c2d54 + d5a902e commit eb976d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const DebugLogNotification: NotificationType<OutputNotificationBody, void> = ne
147147
const InactiveRegionNotification: NotificationType<InactiveRegionParams, void> = new NotificationType<InactiveRegionParams, void>('cpptools/inactiveRegions');
148148
const CompileCommandsPathsNotification: NotificationType<CompileCommandsPaths, void> = new NotificationType<CompileCommandsPaths, void>('cpptools/compileCommandsPaths');
149149
const UpdateClangFormatPathNotification: NotificationType<string, void> = new NotificationType<string, void>('cpptools/updateClangFormatPath');
150+
const UpdateIntelliSenseCachePathNotification: NotificationType<string, void> = new NotificationType<string, void>('cpptools/updateIntelliSenseCachePath');
150151

151152
class 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

Comments
 (0)