We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a94a2b commit 3e2488aCopy full SHA for 3e2488a
Extension/src/LanguageServer/configurations.ts
@@ -1375,8 +1375,9 @@ export class CppProperties {
1375
1376
private isConfigNameUnique(configName: string): string | undefined {
1377
let errorMsg: string | undefined;
1378
+ // TODO: make configName non-case sensitive.
1379
const occurrences: number | undefined = this.ConfigurationNames?.filter(function (name): boolean { return name === configName; }).length;
- if (occurrences) {
1380
+ if (occurrences && occurrences > 1) {
1381
errorMsg = localize('duplicate.name', "{0} is a duplicate. The configuration name should be unique.", configName);
1382
}
1383
return errorMsg;
0 commit comments