File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -987,7 +987,7 @@ export class CppProperties {
987
987
}
988
988
989
989
if ( configuration . includePath ) {
990
- configuration . includePath = configuration . includePath . map ( ( path : string ) => this . resolvePath ( path , this . isWin32 ) ) ;
990
+ configuration . includePath = configuration . includePath . map ( ( path : string ) => this . resolvePath ( path , this . isWin32 , false ) ) ;
991
991
}
992
992
}
993
993
@@ -1377,7 +1377,7 @@ export class CppProperties {
1377
1377
return success ;
1378
1378
}
1379
1379
1380
- public resolvePath ( input_path : string | undefined , isWindows : boolean ) : string {
1380
+ public resolvePath ( input_path : string | undefined , isWindows : boolean , replaceAsterisks : boolean = true ) : string {
1381
1381
if ( ! input_path || input_path === "${default}" ) {
1382
1382
return "" ;
1383
1383
}
@@ -1397,7 +1397,7 @@ export class CppProperties {
1397
1397
if ( result . includes ( "${vcpkgRoot}" ) && util . getVcpkgRoot ( ) ) {
1398
1398
result = result . replace ( "${vcpkgRoot}" , util . getVcpkgRoot ( ) ) ;
1399
1399
}
1400
- if ( result . includes ( "*" ) ) {
1400
+ if ( replaceAsterisks && result . includes ( "*" ) ) {
1401
1401
result = result . replace ( / \* / g, "" ) ;
1402
1402
}
1403
1403
You can’t perform that action at this time.
0 commit comments