Skip to content

Commit 85936c3

Browse files
author
Elaheh Rashedi
authored
dont squiggel for resolved compilerpath (#6057)
1 parent 61360a8 commit 85936c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,10 @@ export class CppProperties {
14231423
&& !resolvedPath.startsWith('"')
14241424
&& compilerPathAndArgs.compilerPath.includes(" ");
14251425
resolvedPath = compilerPathAndArgs.compilerPath;
1426+
1427+
if (!compilerPathNeedsQuotes && which.sync(resolvedPath)) {
1428+
continue; // Don't squiggle if compiler path is resolving with environment path.
1429+
}
14261430
}
14271431

14281432
const isWSL: boolean = isWindows && resolvedPath.startsWith("/");

0 commit comments

Comments
 (0)