Skip to content

Commit 5c8fdab

Browse files
authored
rename files.associations.autoAdd setting (#1452)
1 parent 2f10eb8 commit 5c8fdab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Extension/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Fix tag parser failing (and continuing to fail after edits) when it shouldn't. [#1367](https://github.com/Microsoft/vscode-cpptools/issues/1367)
55
* Fix tag parser taking too long due to redundant processing. [#1288](https://github.com/Microsoft/vscode-cpptools/issues/1288)
66
* Fix debugging silently failing the 1st time if a C/C++ file isn't opened. [#1366](https://github.com/Microsoft/vscode-cpptools/issues/1366)
7-
* Skip automatically adding to `files.associations` if it matches an existing glob pattern or if `C_Cpp.files.associations.autoAdd` is `false`. [#722](https://github.com/Microsoft/vscode-cpptools/issues/722)
7+
* Skip automatically adding to `files.associations` if it matches an existing glob pattern or if `C_Cpp.autoAddFileAssociations` is `false`. [#722](https://github.com/Microsoft/vscode-cpptools/issues/722)
88
* The debugger no longer requires an extra reload. [#1362](https://github.com/Microsoft/vscode-cpptools/issues/1362)
99
* Fix incorrect "Warning: Expected file ... is missing" message after installing on Linux. [#1334](https://github.com/Microsoft/vscode-cpptools/issues/1334)
1010
* Fix "Include file not found" messages not re-appearing after settings changes. [#1363](https://github.com/Microsoft/vscode-cpptools/issues/1363)

Extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"description": "The verbosity of logging in the Output Panel. The order of levels from least verbose to most verbose is: None < Error < Warning < Information.",
168168
"scope": "resource"
169169
},
170-
"C_Cpp.files.associations.autoAdd": {
170+
"C_Cpp.autoAddFileAssociations": {
171171
"type": "boolean",
172172
"default": true,
173173
"description": "Controls whether files are automatically added to files.associations when they are the target of a navigation operation from a C/C++ file.",

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ class DefaultClient implements Client {
521521
let cppSettings: CppSettings = new CppSettings(this.RootUri);
522522

523523
// TODO: Move this code to a different place?
524-
if (cppSettings.filesAssociationsAutoAdd && payload.navigation.startsWith("<def")) {
524+
if (cppSettings.autoAddFileAssociations && payload.navigation.startsWith("<def")) {
525525
this.addFileAssociations(payload.navigation.substr(4));
526526
return;
527527
}

Extension/src/LanguageServer/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class CppSettings extends Settings {
4141
public get autoComplete(): string { return super.Section.get<string>("autocomplete"); }
4242
public get loggingLevel(): string { return super.Section.get<string>("loggingLevel"); }
4343
public get navigationLength(): number { return super.Section.get<number>("navigation.length", 60); }
44-
public get filesAssociationsAutoAdd(): boolean { return super.Section.get<boolean>("files.associations.autoAdd"); }
44+
public get autoAddFileAssociations(): boolean { return super.Section.get<boolean>("autoAddFileAssociations"); }
4545
public get workspaceParsingPriority(): boolean { return super.Section.get<boolean>("workspaceParsingPriority"); }
4646
public get exclusionPolicy(): boolean { return super.Section.get<boolean>("exclusionPolicy"); }
4747

0 commit comments

Comments
 (0)