Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e2488a

Browse files
fix config name UI error (microsoft#6783)
1 parent2a94a2b commit3e2488a

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
privateisConfigNameUnique(configName:string):string|undefined{
13771377
leterrorMsg:string|undefined;
1378+
// TODO: make configName non-case sensitive.
13781379
constoccurrences:number|undefined=this.ConfigurationNames?.filter(function(name):boolean{returnname===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
returnerrorMsg;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp