Skip to content

Commit 614795b

Browse files
committed
update the settings wrapper
1 parent a79eef9 commit 614795b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/src/LanguageServer/devcmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function setEnvironment(context?: vscode.ExtensionContext) {
7575
context.environmentVariableCollection.replace(key, vars[key].replace(`%${key}%`, '${env:' + key + '}'));
7676
}
7777
context.environmentVariableCollection.description = localize('dev.env.for', '{0} developer environment for {1}', arch, vsDisplayNameWithSuffix(vs));
78-
context.environmentVariableCollection.persistent = settings.persistDevEnvironment;
78+
context.environmentVariableCollection.persistent = settings.persistVSDeveloperEnvironment;
7979

8080
return true;
8181
}

Extension/src/LanguageServer/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export class CppSettings extends Settings {
549549
&& this.intelliSenseEngine.toLowerCase() === "default" && vscode.workspace.getConfiguration("workbench").get<any>("colorTheme") !== "Default High Contrast";
550550
}
551551
public get sshTargetsView(): string { return this.getAsString("sshTargetsView"); }
552-
public get persistDevEnvironment(): boolean { return this.getAsBoolean("persistVsDeveloperEnvironment"); }
552+
public get persistVSDeveloperEnvironment(): boolean { return this.getAsBoolean("persistVsDeveloperEnvironment"); }
553553

554554
// Returns the value of a setting as a string with proper type validation and checks for valid enum values while returning an undefined value if necessary.
555555
private getAsStringOrUndefined(settingName: string): string | undefined {

0 commit comments

Comments
 (0)