Skip to content

Commit 3e2488a

Browse files
fix config name UI error (#6783)
1 parent 2a94a2b commit 3e2488a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,9 @@ export class CppProperties {
13751375

13761376
private isConfigNameUnique(configName: string): string | undefined {
13771377
let errorMsg: string | undefined;
1378+
// TODO: make configName non-case sensitive.
13781379
const occurrences: number | undefined = this.ConfigurationNames?.filter(function (name): boolean { return name === configName; }).length;
1379-
if (occurrences) {
1380+
if (occurrences && occurrences > 1) {
13801381
errorMsg = localize('duplicate.name', "{0} is a duplicate. The configuration name should be unique.", configName);
13811382
}
13821383
return errorMsg;

0 commit comments

Comments
 (0)