Skip to content

Commit 012abee

Browse files
committed
PR feedback
1 parent 7d6657c commit 012abee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ export class CppProperties {
16191619
const compilerPathAndArgs: util.CompilerPathAndArgs = util.extractCompilerPathAndArgs(!!settings.legacyCompilerArgsBehavior, resolvedCompilerPath);
16201620

16211621
// compilerPath + args in the same string isn't working yet.
1622-
const skipFullCommandString = !compilerPathAndArgs.compilerName && resolvedCompilerPath.indexOf(" ") >= 0;
1622+
const skipFullCommandString = !compilerPathAndArgs.compilerName && resolvedCompilerPath.includes(" ");
16231623
if (resolvedCompilerPath
16241624
&& !skipFullCommandString
16251625
// Don't error cl.exe paths because it could be for an older preview build.

0 commit comments

Comments
 (0)