Skip to content

Commit 6e60876

Browse files
author
Elaheh Rashedi
authored
which.sync modified (#6073)
1 parent c752e31 commit 6e60876

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
@@ -1424,7 +1424,7 @@ export class CppProperties {
14241424
&& compilerPathAndArgs.compilerPath.includes(" ");
14251425
resolvedPath = compilerPathAndArgs.compilerPath;
14261426

1427-
if (!compilerPathNeedsQuotes && which.sync(resolvedPath)) {
1427+
if (!compilerPathNeedsQuotes && which.sync(resolvedPath, {nothrow: true})) {
14281428
continue; // Don't squiggle if compiler path is resolving with environment path.
14291429
}
14301430
}

0 commit comments

Comments
 (0)