File tree Expand file tree Collapse file tree
Extension/src/LanguageServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1036,7 +1036,7 @@ export class CppProperties {
10361036 // Error when the compiler's path has spaces without quotes but args are used.
10371037 // Except, exclude cl.exe paths because it could be for an older preview build.
10381038 let compilerPathNeedsQuotes : boolean =
1039- compilerPathAndArgs . additionalArgs &&
1039+ ( compilerPathAndArgs . additionalArgs && compilerPathAndArgs . additionalArgs . length > 0 ) &&
10401040 ! resolvedCompilerPath . startsWith ( '"' ) &&
10411041 compilerPathAndArgs . compilerPath !== undefined &&
10421042 compilerPathAndArgs . compilerPath . includes ( " " ) ;
@@ -1315,7 +1315,7 @@ export class CppProperties {
13151315 continue ;
13161316 }
13171317 // Squiggle when the compiler's path has spaces without quotes but args are used.
1318- compilerPathNeedsQuotes = compilerPathAndArgs . additionalArgs
1318+ compilerPathNeedsQuotes = ( compilerPathAndArgs . additionalArgs && compilerPathAndArgs . additionalArgs . length > 0 )
13191319 && ! resolvedPath . startsWith ( '"' )
13201320 && compilerPathAndArgs . compilerPath . includes ( " " ) ;
13211321 resolvedPath = compilerPathAndArgs . compilerPath ;
You can’t perform that action at this time.
0 commit comments